-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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: Improve error column location in error message #26479
Comments
/cc @mkouba |
I'm not sure I fully understand the isssue but the format has been changed in 2.10 (#25810) and the error message should look like: |
I'm apologize, the sample I pasted was incorrect. The format of the error message is perfect, just the location of the column. Currently, the error is reported at 13:22, which is at the end of the Current behavior (where '|' indicates the reported location of the error) :
Preferred behavior:
|
I see. So in general Qute reports the beginning of an expression, i.e. column 47 for Now, we could try to improve the "precision" and match an actual property instead of an expression but we need to find out how difficult it would be (and whether it's worth the effort) and also fix the bug first. |
I don't see an easy way to reliably identify the column of an expression used as a section param. Therefore, we'll report the column of the section for the moment and we'll try to improve the |
- there is no easy way to reliably identify the column of an expression used as a section param, therefore, we'll report the column of the containing section/block for the moment - related to quarkusio#26479
- there is no easy way to reliably identify the column of an expression used as a section param, therefore, we'll report the column of the containing section/block for the moment - related to quarkusio#26479
- there is no easy way to reliably identify the column of an expression used as a section param, therefore, we'll report the column of the containing section/block for the moment - related to quarkusio#26479 (cherry picked from commit d588d8b)
Description
After building the Quarkus application, this a sample of the error that is received.
When trying to capture this error to display in an IDE, we would need the column value to be at the error token in order to highlight the error range correctly. Currently, the error column location is reported at the cursor in the screenshot, causing the underline to be in the incorrect position.
{#if item|.pric < 15}
<strong>|{item.discountedPricesss}
Implementation ideas
To fix this, it would be nice to have the location changed to:
{#if item.|pric < 15}
<strong>{item.|discountedPricesss}
The text was updated successfully, but these errors were encountered: