You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug description
A message with an astId as location will not be shown on that astId but will be treated as if it didn't have an explicit location (i.e. goes up the stacktrace and uses the first ast node it finds)
Versions
Eclipse: org.eclipse.platform.ide 4.16.0.I20200604-0540
Spoofax: org.metaborg.spoofax.eclipse 2.6.0.20210903-091634-master
System: Mac OS X x86_64 10.14.6
Statix setup: single file
Steps to reproduce the behavior
stx test files do not show the node the error appears on, so you get a full Spoofax project instead.
The full project is attached as statixbugastidmessagelocation.zip, relevant parts are shown here:
Syntax:
Bug description
A message with an
astId
as location will not be shown on thatastId
but will be treated as if it didn't have an explicit location (i.e. goes up the stacktrace and uses the first ast node it finds)Versions
Eclipse: org.eclipse.platform.ide 4.16.0.I20200604-0540
Spoofax: org.metaborg.spoofax.eclipse 2.6.0.20210903-091634-master
System: Mac OS X x86_64 10.14.6
Statix setup: single file
Steps to reproduce the behavior
stx test files do not show the node the error appears on, so you get a full Spoofax project instead.
The full project is attached as statixbugastidmessagelocation.zip, relevant parts are shown here:
Syntax:
Statix:
Example file (
example/test.sta
)Observed behavior
There are two errors on
1
. This always happens.Expected behavior
One error on
1
, one error on2
.Additional context
Slack threads:
The text was updated successfully, but these errors were encountered: