arboleya / coffee-toaster

Minimalist build system for CoffeeScript.
114 stars 23 forks source link

Line numbers are wrong #26

Closed shuhaowu closed 12 years ago

shuhaowu commented 12 years ago

It seems that coffee toaster will actually strip the #<< lines, resulting in reporting the wrong line number when there's a compile error. (decreased by number of #<< lines)

arboleya commented 12 years ago

Hi, can you give more details to reproduce the bug? I know it's kinda sad that there are not tests yet, but I'm working on it to easy the issue tracking / reporting.

If you can provide some code for me to reproduce it here I can look forward to solve the problem.

Thank you.

shuhaowu commented 12 years ago

Just go into single-folder/src/app and add something like ~~~~ at the end of line 5. Try toaster -w, you will see ERROR Parse error on line 4: Unexpected 'JS' at file: app/app.coffee

Should be on line 5

arboleya commented 12 years ago

Fixed in 0.6.3, let me know if anything goes wrong.