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

Feature Suggestion: Include offset in "unexpected token" syntax error #25

Open
abierbaum opened this issue Aug 12, 2019 · 0 comments
Open

Comments

@abierbaum
Copy link

Thanks for the great tool. It is working wonderfully.

I have machine configurations that work in code, but I want to visualize. So I paste them into the visualizer but invariably there is a syntax error to resolve. (for example removing typescript parameter types).

As it stands right now, I get a syntax error in the console about "Unexpected token X". It would be very helpful if the code that found the unexpected token could provide an offset number in the file and if correspondingly the definition editor window could show the current offset of the cursor. That would allow users to find the place where they have their errors much easier.

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

No branches or pull requests

1 participant