#682069 yui-compressor: Can't find bundle for base name org.mozilla.javascript.resources.Messages, locale en_US #682069
- Package:
- yui-compressor
- Source:
- yui-compressor
- Submitter:
- Mathieu Malaterre
- Date:
- 2014-08-11 09:21:04 UTC
- Severity:
- important
Steps: $ wget https://raw.github.com/thatcher/openseadragon/master/openseadragon.js $ yui-compressor -o test.js openseadragon.js See attached error.log file. Thanks much !
Hi Mathieu, Mathieu Malaterre <malat@debian.org> writes: I am not sure why yui-compressor in Debian does not print out useful error messages. Anyway, the javascript file you refer to is invalid, as you can see when you try to compress it via this online tool (also using yui-compressor, but with proper error reporting): http://refresh-sf.com/yui/ I suppose this bug should be retitled “yui-compressor’s error reporting does not work in Debian”. Do you agree?
Hi, yui-compressor could definitely prints out some message whether or not the js is valid or not. But fundamentally it should not throw an error like this, at least it should catch it's own exception. gcc catch it's own ICE and report them nicely.
Hi Mathieu, Mathieu Malaterre <malat@debian.org> writes: I absolutely agree. It seems that yui-compressor _tries_ to print out an error message and crashes while doing that.
The latest version of yui-compressor does not have this problem. It is easy enough to install manually from https://github.com/yui/yuicompressor/releases cd /tmp/ wget https://github.com/yui/yuicompressor/releases/download/v2.4.8/yuicompressor-2.4.8.jar sudo mv yuicompressor-2.4.8.jar /usr/share/yui-compressor/yui-compressor.jar Perhaps the debian package maintainer could install version 2.4.8 instead of whatever version currently gets installed.