Skip to content
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

Fix: No crash anymore on the IDE when using the elephant operator #2668

Merged
merged 4 commits into from
Sep 1, 2022

Conversation

MikaelMayer
Copy link
Member

Fixes #2667 by remarking that sometimes, Tok is before EndTok for an obscure reason.
In the case of the elephant operator in var x :- Parse(), Tok designates :- and EndTok designates x, probably because the declaration is the same as the update.
I fixed the generation of faulty rangeToken like this for all statements.
Tested in the language server tests directly.

By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.

MikaelMayer and others added 2 commits August 31, 2022 15:55
Fixes #2667 by remarking that sometimes, Tok is before EndTok for an obscure reason.
In the case of the elephant operator in `var x :- Parse()`, Tok designates `:-` and EndTok designates `x`, probably because the declaration is the same as the update.
I fixed the generation of faulty rangeToken like this for all statements.
Tested in the language server tests directly.
@MikaelMayer MikaelMayer enabled auto-merge (squash) September 1, 2022 15:51
@MikaelMayer MikaelMayer merged commit fc99e58 into master Sep 1, 2022
@MikaelMayer MikaelMayer deleted the fix-2667-crash-elephant-server branch September 1, 2022 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Language server crashes on elephant operator
2 participants