Skip to content
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

wrong location on import error message reference to undefined rule #823

Closed
marcpawl opened this issue Feb 26, 2015 · 1 comment · Fixed by #874
Closed

wrong location on import error message reference to undefined rule #823

marcpawl opened this issue Feb 26, 2015 · 1 comment · Fixed by #874

Comments

@marcpawl
Copy link

Error message should point to location where rule was referenced in imported file, in this case Nested.g4

[mpawlowsky@vmott-mpawlowsky-seas error]$ ant
Buildfile: /home/mpawlowsky/error/build.xml

generate:
[java] error(56): error.g4:4:8: reference to undefined rule: c

BUILD FAILED
/home/mpawlowsky/error/build.xml:3: Java returned: 1

Total time: 0 seconds
[mpawlowsky@vmott-mpawlowsky-seas error]$ cat error.g4
grammar Error;
import Nested;

[mpawlowsky@vmott-mpawlowsky-seas error]$ cat Nested.g4
grammar Nested;

a:
'a' | c;

@parrt
Copy link
Member

parrt commented May 20, 2015

Adding testErrorInImportedGetsRightFilename() test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants