Sarrus1 / sourcepawn-studio

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

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

Closed Sarrus1 closed 11 months ago

Sarrus1 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

Sarrus1 commented 1 year ago

Moved your issue here @flleeppyy 👍

Sarrus1 commented 1 year ago

Might be fixed by #328, as the parking_lot crate is less prone to deadlocks, we will see since we can't repro the issue...

Sarrus1 commented 11 months ago

Fixed in c960d4b64042076a285a722802479ffaccb82e82.