Sarrus1 / sourcepawn-lsp

Language Server Protocol implementation for the SourcePawn programming language written in Rust
GNU General Public License v3.0
12 stars 0 forks source link

Language server completely stops working with no errors, only timeout. #33

Closed flleeppyy closed 1 year ago

flleeppyy commented 1 year ago

Basic informations

Further Information

The language server just stops responding at random points and I have to restart the extension host. It'll work for about 10-20 minutes then stop responding to things.

To Reproduce

I don't even know how to reproduce it, it just HAPPENS

Code to reproduce the behaviour

Expected behaviour

Error messages

Nothing logs in console when trying to look up variables or objects or Ctrl+click on a variable. it just stalls and you see a loading animation at the top of the window.

These are the only logs produced by the SoucePawn Language Server

[2023-07-07T02:13:49.622Z INFO] Telemetry is enabled. To disable it, use the --disable-telemetry flag.
[2023-07-07T02:13:49.623Z INFO] Starting SourcePawn server version 0.10.10
[2023-07-07T02:13:51.332Z INFO] Received config [
    Object {
        "disableSyntaxLinter": Bool(true),
        "includesDirectories": Array [
            String("C:\\Users\\Chen\\sourcemodAPI\\addons\\sourcemod\\scripting\\include"),
        ],
        "linterArguments": Array [],
        "mainPath": String("d:\\development\\sourcemod-plugins\\scripting\\chens-rtds.sp"),
        "spcompPath": String("C:\\Users\\Chen\\sourcemodAPI\\addons\\sourcemod\\scripting\\spcomp.exe"),
    },
]
[2023-07-07T02:13:53.273Z INFO] Reparsed all the files in 1.93s, of which resolving the references took 998.59ms, for 95 file(s).

Video of it happening https://safe.fleepy.tv/files/dR3y0TN2.mp4

flleeppyy commented 1 year ago

The only significant thing here that's happening is getting the "Stopping the server timed out" error when clicking "Restart Server" on the sourcepawn popout

flleeppyy commented 1 year ago

Might've been my firewall (Simplewall) crashing it...

flleeppyy commented 1 year ago

Update: it's not my firewall.

Sarrus1 commented 1 year ago

Moved to https://github.com/Sarrus1/sourcepawn-vscode/issues/327.