Closed djvs closed 8 years ago
In the end the error turned out to be a corrupted (first line had Rails 3 syntax in a Rails 4 app) config/environments/production.rb.
Maybe, at bare minimum, you could do a begin/rescue/end block which catches the name of the failing asset that's compiling?
If this is still an active issue can you close this one and re-open it at http://github.com/rails/sprockets. Active development has moved to that repo.
If you've got a bug with sprockets 3 please make sure you've tried the latest 3.3.3. If you can confirm this is still an active issue, the fastest way to get it fixed is to create a small example app that reproduces the failure and open an issue in the new repo http://github.com/rails/sprockets.
This issue was moved to rails/sprockets#179
Noticing in:
https://github.com/sstephenson/sprockets/blob/master/lib/sprockets/processed_asset.rb
in "initialize", it only tells you when an asset is done compiling, not when it is starting compilation. Maybe you could write both? At the moment, I am trying to debug this error:
which is proving extremely difficult without knowing what file is being precompiled. I often use "doing ..." and then "done" in my scripts, this is possible to do on the same line as well.