-
Notifications
You must be signed in to change notification settings - Fork 1
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 typechecking when saving twice #70
Comments
Thanks for the bug report! This is definitely not intended. I think this has to do with the incorrect caching of the type errors in the Rzk Language Server, which should hopefully be fixed when we merge this PR: rzk-lang/rzk#167 We'll try to reproduce, fix, and release an update sometime this week. |
I believe what's happened is on the second save the diagnostics were cleaned, but since nothing changed, we should've preserved the diagnostics (or restored them). I have a very simple fix (rzk-lang/rzk#172) that seems to be working locally for me, the problem should go away with the next release of Rzk (hopefully very soon). |
@v-moreau I have just released |
Indeed, the bug is now gone on my side too. Thank you very much! |
Dear maintainers,
I am a bit confused regarding
vscode-rzk
as it seems that, in an ill-typed file, saving once does typecheck and shows the errors whereas saving another time will make the errors disappear. This behavior appears whether or not the file has been changed between the two saves.For instance, I have a minimal file
test.rzk
whose content istogether with a
rzk.yaml
file in the same directory containingWhen I save the file once,
vscode-rzk
underlines the definition ofweird
with some red as follows:When I put the mouse on it, I get the typechecking error:
However, when I save the file another time, then the error is gone:
I have tried with a new vscode profile whose sole installed extension is
vscode-rzk
, but I have the same behavior. Is there something wrong on my side, or is it supposed to be how thevscode-rzk
extension works? For the moment, I thus prefer to use therzk typecheck
command in a terminal window to check my file, as I don't see the errors with the vscode extension.The text was updated successfully, but these errors were encountered: