-
Notifications
You must be signed in to change notification settings - Fork 1
Demote no access to the persisted file to debug messages #51
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
Demote no access to the persisted file to debug messages #51
Conversation
@jneira with these changes, you should no longer see messages such as |
It could be argued that it's still an error if file was requested before it was inserted into the VFS and it's certainly an error to request a file which was never inserted into the VFS? |
That is true. Unforutantely, we can not tell apart the cases right? Closing a file, removes it from the VFS, the lintCmd is stalled by runActionWithContext. So, opening a file then realizing you dont need it, closing it again, will show the "error" message to the user, although it is perfectly fine. |
Should these pending requests not end up being cancelled whenever the file is closed? |
@bubba They are not, because the following might happen: |
@fendor makes sense, these are all in IdeGhcM. But I thought we already had some logic to cancel requests that were in flight, at least whenever LSP sends a cancelRequest notification. Could this be called for any requests operating on a certain file that the VFS is told to close? haskell-ide-engine/src/Haskell/Ide/Engine/Scheduler.hs Lines 205 to 210 in dcf81a1
This could be made an issue or sorted out after this though |
d2db1cd
to
a5c749b
Compare
@bubba Does |
@fendor Just actions that are queued from what I can tell |
Well, as far i can test the alerts are gone from vscode and i can see them in |
It is not really an error as it may happen if the file you want to lint had been closed before the lint can be applied.