-
-
Notifications
You must be signed in to change notification settings - Fork 283
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
Compile errors on removed files are still listed in "Problems" after a rebuild #730
Comments
I just realized this might not be Ionide's fault - I just had the same behavior happen on a Dockerfile. (Of course, it might just be that the Docker extension has the same bug...) |
I do kinda feel it should be handled in VSCode... but it may be by-design, and we definitely can work around that - file watcher looking for deleted event, and removing errors from diagnostic collections would do a trick. |
https://microsoft.github.io/language-server-protocol/specification#textDocument_publishDiagnostics
&
So I suspect that VS Code answer to that is : Nop, handle it in your extensions / LSP servers :) |
Fair enough |
@vbfox Thanks for the reference; I'll go ahead and file a bug report with the Docker extension too :) For reference: microsoft/vscode-docker#237 |
I would like to work on this issue. |
Steps to reproduce:
Create a new F# project, e.g. with
dotnet new classlib -lang f#
and open the project folder in VS Code.Introduce a compile error in the generated
Library.fs
file, e.g. by addinglet x =
without finishing the statement. (optionally build the project withdotnet build
to see it fail).Look in the "problems" pane of VS Code (Ctrl + Shift + M). The error introduced above is correctly listed.
Delete the
Library.fs
file and remove its reference from the project file.Rebuild the project. It now succeeds, but the compile error from before is still listed in the problems panel.
The incorrectly listed error disappears upon reloading the window, but it would be even smoother if I didn't have to do that :)
The text was updated successfully, but these errors were encountered: