-
Notifications
You must be signed in to change notification settings - Fork 25
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: Syntax errors reported in bilingual macros #152
fix: Syntax errors reported in bilingual macros #152
Conversation
fix: Language server crashes on an unexpected statement in the lookahead mode.
Kudos, SonarCloud Quality Gate passed! |
|
||
++curr_line_; | ||
++curr_line_; // TODO: What are we doing here??? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe curr_line_
holds index of the current statement in the resulting macro definition
diagnoser.add_diagnostic(diag); | ||
if (processor.kind != processing_kind::LOOKAHEAD) | ||
{ | ||
for (const diagnostic_op& diag : cache_item->diags) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now, that statements are able to hold diagnostics, should we get rid of cache_item->diags
and store all the diagnostics directly in the statement instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think not just yet. Because from what I've observed, there are diagnostics that are printed once (e.g. during macro definition pass) and then there are diagnostics produced for each statement execution.
The current implementation tries to follow the behavior as closely as possible, but I think that we will need further refinement of how we store/replay diagnostics.
🎉 This PR is included in version 0.14.0-beta.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 0.14.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
fix: Syntax errors reported in bilingual macros (closes #144)
fix: Language server crashes on missing MEND.