Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Unintuitive error message on unclosed token #1120

Closed
satyr opened this Issue Feb 8, 2011 · 3 comments

Comments

Projects
None yet
5 participants
Collaborator

satyr commented Feb 8, 2011

http://www.pastie.org/1540468

$ coffee -bsp
->
  f(
Error: unclosed INDENT on line 2
...

$ coco -bsp
->
  f(
SyntaxError: unclosed CALL( on line 2
...

The error also gets the line number wrong (way off sometimes).
I just had this error saying unclosed INDENT on line 7, where the "extra bracket" (and the problem) was actually on line 23.
Line 7 was merely the beginning of the function that the call was made in.

antono commented Sep 1, 2011

+1. its pretty hard to debug such an errors.

@jashkenas jashkenas removed this from the as soon as a patch is available milestone Jun 2, 2015

Collaborator

GeoffreyBooth commented Apr 26, 2017

Closing this issue as it doesn’t appear to be affecting enough people to warrant attention. If someone wants to do further investigation into this and can devise a fix, a pull request is welcome.

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