Sarrus1 / sourcepawn-studio

VSCode extension for SourcePawn scripting
https://sarrus1.github.io/sourcepawn-studio/
MIT License
147 stars 23 forks source link

SourcePawn Language Server crashes immediately. #296

Closed relt-1 closed 1 year ago

relt-1 commented 1 year ago

Basic informations

Further Information

Every time the plugin starts, the plugin language server crashes because of an invalid argument.

To Reproduce

It seems to be an issue only for me, it happens when the plugins starts.

Expected behaviour

The language server should start.

Error messages

error: unexpected argument '-' found

Usage: sourcepawn_lsp.exe [OPTIONS]

For more information, try '--help'.
[Error - 4:46:56 PM] The SourcePawn Language Server server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information.
[Error - 4:46:56 PM] Server initialization failed.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Error - 4:46:56 PM] SourcePawn Language Server client: couldn't create connection to server.
  Message: Pending response rejected since connection got disposed
  Code: -32097
Sarrus1 commented 1 year ago

Hi, did you set the "trace setting" to off by any chance? I think this might come from here. This should be fixed of course, but setting it to something else could be a temporary solution.

Sarrus1 commented 1 year ago

Fixed in a0a2c503b89c6a40bd580feb4effc2f13aad9d09.