-
Notifications
You must be signed in to change notification settings - Fork 57
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
No errors shown anymore after clean & rebuild #980
Comments
It seems that, when you currently have a ReScript file open in the editor and clean the project, the language server terminates unexpectedly with the following error:
|
Perfect. thank you! |
Just encountered this one as well while doing a rebase on an old feature branch. The only way to work is to click on the links in the compiler output directly for every remaining error and fix the issues without LSP help. After a successful compile, rescript-vscode can be restarted and works again without crashing. |
Feels like fixing this should be quite straight forward. @fhammerschmidt want to take a stab at it? |
Is that so? Can you give some guidance on how to approach it? |
@fhammerschmidt I could be totally wrong of course, but this sounds like a scenario where we're just not cleaning up the state appropriately when the clean/rebuild happens. So, I'd start with tracking the events that happen around cleaning/rebuilding (what happens to the compiler log, are we watching any lock file for bsb, etc), and then try to figure out at which point we should be resetting the state for that project. There's code already that purges the server state when all files of a specific project is closed. Have a look at it and maybe we can look more together if you can't figure it out? |
Sounds good, Ill take a shot. |
No, still broken for me in 1.58.0. |
Somehow this only happens with the production versions (both 1.58.0 and 1.59.x) but not locally in debug mode. |
Steps to reproduce:
The text was updated successfully, but these errors were encountered: