PhilippeChab / nwscript-ee-language-server

A NWScript Language Server.
https://marketplace.visualstudio.com/items?itemName=PhilippeChab.nwscript-ee-language-server
MIT License
20 stars 7 forks source link

Problems remain after file closure #33

Closed tinygiant98 closed 2 years ago

tinygiant98 commented 2 years ago

I've notice an anomaly that I haven't exactly nailed down the cause of yet, but I believe it's related to problems that are identified through the diagnostics provider which remain on the problems panel after the associated file is closed. There appears to be some cross-talk in the reported problems that assigns a problem from one file (a closed file) to another file (an open file). In the following screenshot, you can see that this error is obviously misplaced from a previously open file.

image

Additionally, my problems panel has problems from previously open file which are no longer open. Is this desired behavior or is there an option to clear the problems panel when the offending file is closed?

PhilippeChab commented 2 years ago

The error in the screenshot happens when the compiler is unable to resolve an include. This should never happen normally as the includes directories of the compiled file are automatically passed to the compiler along with the -i option. The workspace was in an anormal state at this moment.

I would need more details to be able to help you. Could you give me more context on how this happened?

tinygiant98 commented 2 years ago

I'll attempt to find a way to recreate it and send you whatever details I can obtain. Thanks!

github-actions[bot] commented 2 years ago

This issue is stale because it has been open 28 days with no activity. Remove stale label or comment or this will be closed in 7 days.

tinygiant98 commented 2 years ago

Ive seen this issue multiple times, but I'm unable to nail down exactly what causes it. I'll close for now until I can reliably rebate the behavior.