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

Show line numbers in Compile and Display JS #29

Closed
dinedal opened this issue Apr 19, 2011 · 3 comments
Closed

Show line numbers in Compile and Display JS #29

dinedal opened this issue Apr 19, 2011 · 3 comments

Comments

@dinedal
Copy link

dinedal commented Apr 19, 2011

The only bad part about Coffee Script is that it reports it's errors as line numbers in the compiled result.

Is there anyway the Compile and Display JS window could show line numbers? (or even paste itself into a new TextMate document) This way it would be easier to see where the error occurred in the compiled JS from a stack trace.

@jashkenas
Copy link
Owner

If you want to build that functionality, go for it ... but I'm afraid that doing fancy formatting within the results window is a bit out of scope for me to build.

@dinedal
Copy link
Author

dinedal commented May 9, 2011

I made a small change which will create a new file and output the results to there instead of the results window. This allows me to use the gutter on the new file to see the line numbers.

This change needs a little more work, as there is still HTML in the output, but it can be cleaned up. If I make a pull request with this change, would you accept it? I think a new file is fine to dump the output of the build too, but if you don't agree that's fine too.

@jashkenas
Copy link
Owner

I don't agree. If you want to constantly compile your script into a .js file, use coffee --watch -- that's what it's there for.

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