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

Check that terminal part exists when accessing it #1594

Merged

Conversation

aabounegm
Copy link
Member

It was previously trying to access properties on undefined when getTerminalParts would return an empty array due to an error parsing the RegExp (because the parser doesn't currently support lookbehind). The error only occurred with hidden terminals.

It was previously trying to access properties on undefined when
getTerminalParts would return an empty array due to an error parsing
the RegExp (because the parser doesn't currently support lookbehind).
The error only occurred with hidden terminals
@msujew msujew added cli CLI related issue highlighting Related to syntax highlighting labels Jul 23, 2024
Copy link
Member

@msujew msujew left a comment

Choose a reason for hiding this comment

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

Thanks, looks good to me 👍

@msujew msujew added this to the v3.2.0 milestone Jul 23, 2024
@msujew msujew merged commit 3e62f1a into eclipse-langium:main Jul 23, 2024
4 checks passed
@aabounegm aabounegm deleted the hotfix/monarch-generator-empty-parts branch July 23, 2024 16:38
msujew pushed a commit that referenced this pull request Aug 7, 2024
It was previously trying to access properties on undefined when
getTerminalParts would return an empty array due to an error parsing
the RegExp (because the parser doesn't currently support lookbehind).
The error only occurred with hidden terminals
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli CLI related issue highlighting Related to syntax highlighting
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants