sstephenson / ruby-yui-compressor

A Ruby interface to YUI Compressor for minifying JavaScript and CSS assets.
217 stars 57 forks source link

Show exception text #20

Closed wjessop closed 11 years ago

wjessop commented 13 years ago

"compression failed" with no further information isn't very useful for fixing.

MichaelXavier commented 13 years ago

Bumping this because it is important to the usability of the tool. I cannot see a downside.

adamjmurray commented 13 years ago

+1 A few times now we've had difficulty pinpointing a "compression failed" error in our build, when the application runs fine in our development environment. Sometimes YUI blows up on valid javascript. We need a line number and preferably a specific error message.

Unfortunately, it does not look like this project is maintained anymore. Guess it's time to start a fork?

pirelenito commented 12 years ago

+1 this is a must have!

renanoliveira commented 12 years ago
josedonizetti commented 12 years ago

+1

lrgalego commented 12 years ago

+1 This is gonna be really useful.

Pixelime commented 11 years ago

So, no good news about this topic, I guess...

theycallmeswift commented 11 years ago

+1 ....

stevecrozz commented 11 years ago

I added a commit that adds better error messages for both linux and windows: https://github.com/sstephenson/ruby-yui-compressor/commit/fbb45bf2380b6b32d0d2933a3fe1524b3aad983c

It should help out a lot for problems like a missing java binary. Other issues like actual compression failure are a little trickier, but yuicompressor itself should now be sending its own errors to the parent process' error stream.