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
Qute If section - fix evaluation of composite params with a logical complement operator #22181
Conversation
..a logical complement operator - resolves quarkusio#21857
Thanks for your pull request! The title of your pull request does not follow our editorial rules. Could you have a look?
|
@gsmet I believe that this one should go into 2.6.0.Final. |
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'll approve this, but I have to tell you that normally it's the parser's job to decide on priorities, by constructing the parsed tree using operator precedence.
Perhaps we should spend a bit of time together trying to use an ANTLR parser for Qute in the future?
Ofc, the problem here is that the sections params are not designed as proper language constructs. It would make sense for
@angelozerr is working on this within the quarkus-ls project. See also redhat-developer/quarkus-ls#473. |
ANTLR is very powerfull but when you try to use it in an IDE/Editor you can have some trouble because even if it can manage fault tolerant (broken Qute template), it's hard for IDE/Editor to detect properly the error ranges that we need in an IDE/Editor. More ANTLR parser stores a lot of infirmation for line, offset etc. In an IDE/Editor we need to take care of memory. That's why I implemented a Qute parser at hand. Today my parser is linked with some information that I need (like QuteProject) but I'm sure that I can clean it and use it for Qute core. Having the same parser for the core and for IDE/Editor integration should b ereally nice. For instance IDE/Editor could pick up the Qute Jar of the project (with a given maven dependency) and user will have the same error in the editor than the Qute mavendependency that it consumes. |
This workflow status is outdated as a new workflow run has been triggered. Failing Jobs - Building 9710961
Full information is available in the Build summary check run. Failures⚙️ JVM Tests - JDK 11 #- Failing: integration-tests/kafka-devservices
📦 integration-tests/kafka-devservices✖
|
..a logical complement operator
if
test #21857