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

Missing line numbers in error messages #40

Open
lambdacalculator opened this issue Aug 17, 2015 · 2 comments
Open

Missing line numbers in error messages #40

lambdacalculator opened this issue Aug 17, 2015 · 2 comments

Comments

@lambdacalculator
Copy link

Using 2.0.3, I notice that a couple of error messages do not provide information on either the offending source file or line and character numbers:

  • Error: Failure("Unknown constant: ??")
  • Error: Failure("Illegal character ?? in input")

There may be other error message (as I seem to recall) that also do not report source file/line numbers.

@chaudhuri
Copy link
Member

Thanks for the report. Unfortunately Abella does not keep source positions in the AST currently. This has been on my list of things to add for a while. Let me take another stab at it.

Caveat: it may come after the impending 2.0.4 release.

@lambdacalculator
Copy link
Author

But Abella does report line numbers and character ranges on other types of errors, such as syntax errors and typing errors.

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

No branches or pull requests

2 participants