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
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?
The text was updated successfully, but these errors were encountered:
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.
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?
The text was updated successfully, but these errors were encountered: