rails / coffee-rails

CoffeeScript adapter for the Rails asset pipeline. Also adds support for .coffee views.
MIT License
230 stars 64 forks source link

Not showing line numbers for compile errors with CoffeeScript >= 1.6.2 #49

Closed mehanoid closed 11 years ago

mehanoid commented 11 years ago

Error message with gem 'coffee-script-source', '1.6.1'

ExecJS::ProgramError in Pages#index
Showing SomeApp/app/views/layouts/application.html.slim where line #7 raised:

Error: In example.js.coffee, Parse error on line 5: Unexpected 'INDENT'
  (in SomeApp/app/assets/javascripts/example.js.coffee)

Error message with gem 'coffee-script-source', '1.6.2'

ExecJS::RuntimeError in Pages#index
Showing SomeApp/app/views/layouts/application.html.slim where line #7 raised:

SyntaxError: unexpected INDENT
  (in SomeApp/app/assets/javascripts/example.js.coffee)
wbyoung commented 11 years ago

I'm seeing this with coffee-script-source at 1.6.3 as well and there seem to be many others. Any pointers on where to look to try to fix this? Is it even a coffee-rails issue or would the issue be in a different gem?

guilleiguaran commented 11 years ago

@wbyoung right, this isn't an issue of coffee-rails

I think this is fixed by https://github.com/josh/ruby-coffee-script/pull/21

wbyoung commented 11 years ago

Thanks, that seems to do it.