Closed gregolsen closed 11 years ago
+1 to getting this merged in. Under Linux, this manifests when Java is not installed, resulting in a NoMethodError - very confusing when running remotely, e.g. under Rails+Capistrano using rake assets:precompile
.
I have this issue and can be usefull to know there are no java install instead of a YuiCompressor exception
this took a while to track down .. a fix will be appreciated
:+1: for merging this in. Failing for me when Java is not installed.
+1 for the merge...
This issue should be resolved now that I've taken care of: better error messaging: https://github.com/sstephenson/ruby-yui-compressor/pull/20 and replace Popen4 with tempfiles: https://github.com/sstephenson/ruby-yui-compressor/pull/14
According to popen4 source code comments:
It means that when java is not installed on unix 84 line in compressor.rb will throw "undefined method `exitstatus' for nil:NilClass (tested on Ubuntu with no java installed). That's why I've added validation for status presence.