Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visual Studio Code plugin does not work #20

Closed
wrmbaron opened this issue Jul 26, 2024 · 3 comments
Closed

Visual Studio Code plugin does not work #20

wrmbaron opened this issue Jul 26, 2024 · 3 comments

Comments

@wrmbaron
Copy link

The Visual Studio Code plugin does not work. Here is the error output of the language server:

flag provided but not defined: -stdio
Usage of protobuf-language-server:
  -listen string
    	address on which to listen for remote connections
  -logs string
    	logs file path (default "C:\\Users\\itsame/.protobuf-language-server.log")
[Error - 4:28:46 PM] Server initialization failed.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Info  - 4:28:46 PM] Connection to server got closed. Server will restart.
true
[Error - 4:28:46 PM] protobuf-language-server client: couldn't create connection to server.
  Message: Pending response rejected since connection got disposed
  Code: -32097 

Apparently the server gets started with incompatible arguments.

I downloaded and installed everything fresh from Github (274197a) after the downloadable plugin from the registry did not work, but the effect is the same.

@lasorda
Copy link
Owner

lasorda commented Jul 31, 2024

#21 this commit fix vscode

@lasorda
Copy link
Owner

lasorda commented Jul 31, 2024

@BrotifyPacha check this

@BrotifyPacha
Copy link
Contributor

Yeah, your fix should do it.

Apparently vscode sends -stdio argument to language servers. It wasn’t an issue previously because main() wasn’t calling flag.Parse() before i refactored it.

@lasorda lasorda closed this as completed Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants