Skip to content
This repository has been archived by the owner on Aug 27, 2024. It is now read-only.

Does not send request to code server. #24

Open
Israr opened this issue Apr 12, 2023 · 6 comments
Open

Does not send request to code server. #24

Israr opened this issue Apr 12, 2023 · 6 comments

Comments

@Israr
Copy link

Israr commented Apr 12, 2023

I am trying to run it with turpopilot. I have turpopilot server running, and have configured fauxpilot to use it. But It does not work. I do not see any network packet going out to my turbopilot server

@voarsh2
Copy link

voarsh2 commented Apr 13, 2023

I get issues like this:
Error: getaddrinfo ENOTFOUND 32435
at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:71:26)

The URL to the server works in my browser and I get a response.......

@Venthe
Copy link
Owner

Venthe commented Apr 17, 2023

Can you please post your (relevant) settings for the fauxpilot extension?

@Israr
Copy link
Author

Israr commented Apr 18, 2023

i played around with suggestion delay.. currently it is set to zero, but still not packet going out of my machine, to server.

"fauxpilot.server": "http://192.168.128.4:18080/v1/engines",
"fauxpilot.enabled": true,
"fauxpilot.suggestionDelay": 0,
"fauxpilot.model": "codegen",

@Chapoly1305
Copy link

I would recommend you do the following to debug,

  1. restart your vscode after each time you make modification to the plug-in.
  2. install a wireshark, observe if there any request is made to the target server
    maybe feedback us the test result from steps above.

@timothedelion
Copy link

timothedelion commented Aug 3, 2023

I faced the same symptoms (nothing is sent to the turbopilot server).

And I found this error message happens in ~/Library/Application\ Support/Code/logs/<timestamp>/window1/exthost/ each time I hit a key.

2023-08-03 18:03:12.363 [error] [Venthe.fauxpilot] provider FAILED
2023-08-03 18:03:12.364 [error] Error: Illegal argument: line must be non-negative
	at v (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:7:1101)
	at new s (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:95:5076)
	at new t (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:95:6590)
	at a.FauxpilotCompletionProvider.getPrompt (/Users/timothedelion/.vscode/extensions/venthe.fauxpilot-1.1.6/dist/extension.js:2:75474)
	at a.FauxpilotCompletionProvider.provideInlineCompletionItems (/Users/timothedelion/.vscode/extensions/venthe.fauxpilot-1.1.6/dist/extension.js:2:74185)
	at pe.provideInlineCompletions (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:101:53402)
	at /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:101:71447
	at se.s (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:101:62833)
	at se.$provideInlineCompletions (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:101:71433)
	at t.N (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:111:11199)
	at t.M (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:111:10965)
	at t.H (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:111:10007)
	at t.G (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:111:9122)
	at i.value (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:111:7952)
	at p.w (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:60:1902)
	at p.fire (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:60:2119)
	at f.fire (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:76:13931)
	at i.value (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:127:30341)
	at p.w (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:60:1902)
	at p.fire (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:60:2119)
	at f.fire (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:76:13931)
	at MessagePortMain.<anonymous> (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:127:28621)
	at MessagePortMain.emit (node:events:513:28)
	at MessagePortMain._internalPort.emit (node:electron/js2c/utility_init:2:367)

If it can help

@ivantor0
Copy link

ivantor0 commented Oct 4, 2023

@timothedelion hi there! In your case the issue may be related to the latest update and specifically the newly added LEADING_LINES_PROP parameter, as the code block in FauxpilotCompletionProvider.getPrompt at extension.js:2:75474 derives the lines to be processed from t.LEADING_LINES_PROP*i and, as it seems, something can get broken here

Solution for your specific problem
If you encounter an error with line must be non-negative at extension.js:2:74185 and utility_init:2:367, try downgrading vscode-fauxpilot to version 1.1.5. I did that and the extension started working just fine

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants