Problems with Rhino
CSSLint seems to stall when running via Rhino from the command line.
I'm on os x 10.7.5 and have downloaded the latest Rhino (1.7R4), the latest csslint (v0.9.9 Build time: 12-September-2012 01:46:26), and have updated Java.
With three files in one folder, csslint-rhino.js, js.jar, and main.css, my command looks like this:
java -jar js.jar csslint-rhino.js main.css
The terminal stalls and never reports a success or fail.
Thanks.
Hmm, on my initial look, I'm able to get it to work correctly. I'll try on another machine.
I am able to repo as well. Also on OSX.
java version "1.6.0_35" rhino 1.7R4 csslint-rhino 12-September-2012 01:46:26
Hangs even using a nearly empty CSS file, with just one empty class in it.
Tried csslint-rhino 14-May-2012 10:24:48, same thing. Latest Node.js version works fine.
Sorry, I'm still not able to reproduce. I've tried on a couple of different machines with both Java 1.6 and 1.7 and it works fine for me. How are you using it? Here's what I typed (from the csslint directory):
java -jar lib/js.jar release/csslint-rhino.js demos/demo.css
Extract: https://dl.dropbox.com/u/422013/csslint-test.tar.gz
java -jar js.jar csslint-rhino.js test.css
java -version
java version "1.6.0_35" Java(TM) SE Runtime Environment (build 1.6.0_35-b10-428-11M3811) Java HotSpot(TM) 64-Bit Server VM (build 20.10-b01-428, mixed mode)
Same problem (hanging - 1 CPU core maxed) for me on Windows 7.
Java 1.7.0_09-b05 rhino1_7R4
java -jar rhino-js.jar csslint-rhino.js test.css
This is a problem with Rhino. I downloaded an old version of csslint and it still hangs. I downloaded an old version of Rhino and it works
Can you post which versions of Rhino you tested?
On Fri, Dec 7, 2012 at 4:08 PM, Aaron Murray [email protected]:
This is a problem with Rhino. I downloaded an old version of csslint and it still hangs. I downloaded an old version of Rhino and it works
— Reply to this email directly or view it on GitHubhttps://github.com/stubbornella/csslint/issues/321#issuecomment-11151744.
Nicholas C. Zakas @slicknet
Author, Professional JavaScript for Web Developers Buy it at Amazon.com: http://www.amazon.com/Professional-JavaScript-Developers-Nicholas-Zakas/dp/1118026691/ref=sr_1_3
rhino1_7R4 (current from their site)
Is that the version that worked or the version that didn't? It would be very helpful if you could provide both.
On Mon, Dec 10, 2012 at 2:53 PM, Aaron Murray [email protected]:
rhino1_7R4 (current from their site)
— Reply to this email directly or view it on GitHubhttps://github.com/stubbornella/csslint/issues/321#issuecomment-11222457.
Nicholas C. Zakas @slicknet
Author, Professional JavaScript for Web Developers Buy it at Amazon.com: http://www.amazon.com/Professional-JavaScript-Developers-Nicholas-Zakas/dp/1118026691/ref=sr_1_3
Check a prior post for the version that didn't work - I already posted that once before. The version that works is from the html5boilerplate project - I'm not at my computer right now
On Dec 10, 2012, at 6:00 PM, "Nicholas C. Zakas" [email protected] wrote:
Is that the version that worked or the version that didn't? It would be very helpful if you could provide both.
On Mon, Dec 10, 2012 at 2:53 PM, Aaron Murray [email protected]:
rhino1_7R4 (current from their site)
— Reply to this email directly or view it on GitHubhttps://github.com/stubbornella/csslint/issues/321#issuecomment-11222457.
Nicholas C. Zakas @slicknet
Author, Professional JavaScript for Web Developers Buy it at Amazon.com: http://www.amazon.com/Professional-JavaScript-Developers-Nicholas-Zakas/dp/1118026691/ref=sr_1_3 — Reply to this email directly or view it on GitHub.
I've encountered this too. It looks to be a problem with rhino:
The problem appears to be in regular expressions involving \uFFFF:
$ java -jar js.jar -e "print(/[a-z_\u0080-\uFFFF]/i.test(\"x\"))"
hangs, but
$ java -jar js.jar -e "print(/[a-z_\u0080-\uFFFE]/i.test(\"x\"))"
true
doesn't. As a temporary fix, I've just changed all occurrences of \uFFFF to \uFFFE in csslint-rhino.js.
any progress on this?
Nope. I've not been able to verify versions where it's working versus where it's not working. If anyone else wants to take a stab at that, please let me know and I'll be happy to update the docs to indicate the appropriate versions to use.
On Sun, Feb 3, 2013 at 4:18 PM, Nick Schonning [email protected]:
any progress on this?
— Reply to this email directly or view it on GitHubhttps://github.com/stubbornella/csslint/issues/321#issuecomment-13058582.
Nicholas C. Zakas @slicknet
Author, Professional JavaScript for Web Developers Buy it at Amazon.com: http://www.amazon.com/Professional-JavaScript-Developers-Nicholas-Zakas/dp/1118026691/ref=sr_1_3
I filed this bug report: https://github.com/mozilla/rhino/issues/107
I've grabbed the latest version of Rhino from the source code repository (it builds as 7R5pre), and the problem has been fixed. Now all we need to do is wait for an official release...
Rhino1_6R7 and csslint v0.9.10 work fine checked!
Just wanted re-iterate that this is still Obviously a problem with the release candidate. This thread saved me hours of trouble.