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

Make Langium language server more robust #1634

Merged
merged 2 commits into from
Aug 23, 2024
Merged

Conversation

msujew
Copy link
Member

@msujew msujew commented Aug 15, 2024

Closes #1633

Makes the type inference methods more robust against errors due to missing elements. In some cases, this could make some validations "disappear", but only in the presence of parser errors - this is alright, since the file doesn't compile anyway.

@msujew msujew added polish Some feature needs improvement grammar Grammar language related issue labels Aug 15, 2024
@msujew
Copy link
Member Author

msujew commented Aug 15, 2024

@ballcoach12 Do you mind testing this PR against your grammar? You can run the Run Grammar Extension config to test that this works as expected.

@msujew msujew added this to the v3.2.0 milestone Aug 22, 2024
Copy link
Contributor

@dhuebner dhuebner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!
I've added a test case that was failing before and passing after this fix.

@msujew msujew merged commit 381ab43 into main Aug 23, 2024
5 checks passed
@msujew msujew deleted the msujew/fix-runtime-errors branch August 23, 2024 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
grammar Grammar language related issue polish Some feature needs improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Language Server Crash:
2 participants