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

support quickfix mode #59

Closed
clausreinke opened this issue Apr 14, 2013 · 1 comment
Closed

support quickfix mode #59

clausreinke opened this issue Apr 14, 2013 · 1 comment

Comments

@clausreinke
Copy link
Contributor

Could tern please produce a list of parse/type errors with source locations, to support error highlighting and quickfix mode in editor plugins? Currently, it seems that acorn throws on first error, acorn_loose swallows all errors, and infer doesn't produce type errors. Or am I missing some part of their interfaces?

@marijnh
Copy link
Member

marijnh commented Apr 15, 2013

Infer does indeed not (and, I think, never will) produce type errors. That's just not something that makes sense given the algorithm used.

If someone wants to do the work involved in making acorn_loose.js track errors, I'll gladly take a look at it, but that would considerably complicate the code, and cause some issues like making it harder to parse file fragments (and to report meaningful error sets when a fragment was sent to the server).

For now, this is out of scope, and I am not going to work on it myself.

@marijnh marijnh closed this as completed Apr 26, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants