-
Notifications
You must be signed in to change notification settings - Fork 5
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
Incorrect LOC reported for syntax error #50
Comments
This is on Elixir 1.16 |
I tested this using the the stylesheet repo's This might be unavoidable based on Jose's response to this issue: elixir-lang/elixir#8605. I'll need to investigate why the warning shows up on line 5 instead of on the |
can't we get he location of |
My point here is not that it is difficult to for the parser to generate the error, it's that the Elixir compile might not support accurate locations on macro code. If we can suppress the Elixir compiler warning, then we can generate our own. By the way, this is based on some quick research on compiler warnings. I'll continue to look into it when I get some time. |
One more idea is to set
The |
we don't want to be emitting warnings in the build, I would have thought that the LOC offsets would be sufficient here |
What do we do with the offsets? We know from the tests that the unused variable already has the correct line in its metadata. What more can we do? |
I'll review it later. |
Using the following stylesheet:
and I get the following error:
the warning should be reported for the 2nd block, not the first.
The text was updated successfully, but these errors were encountered: