csslint icon indicating copy to clipboard operation
csslint copied to clipboard

Problems with Rhino

Open foldi opened this issue 14 years ago • 18 comments

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.

foldi avatar Nov 14 '12 14:11 foldi

Hmm, on my initial look, I'm able to get it to work correctly. I'll try on another machine.

nzakas avatar Nov 14 '12 17:11 nzakas

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.

chase-seibert avatar Nov 27 '12 17:11 chase-seibert

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

nzakas avatar Nov 28 '12 00:11 nzakas

Extract: https://dl.dropbox.com/u/422013/csslint-test.tar.gz

java -jar js.jar csslint-rhino.js test.css

chase-seibert avatar Nov 28 '12 17:11 chase-seibert

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)

chase-seibert avatar Nov 28 '12 17:11 chase-seibert

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

akmurray avatar Dec 08 '12 00:12 akmurray

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

akmurray avatar Dec 08 '12 00:12 akmurray

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

nzakas avatar Dec 10 '12 17:12 nzakas

rhino1_7R4 (current from their site)

akmurray avatar Dec 10 '12 22:12 akmurray

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

nzakas avatar Dec 10 '12 23:12 nzakas

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.

akmurray avatar Dec 11 '12 01:12 akmurray

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.

jwmcleod avatar Dec 18 '12 04:12 jwmcleod

any progress on this?

nschonni avatar Feb 04 '13 00:02 nschonni

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

nzakas avatar Feb 05 '13 02:02 nzakas

I filed this bug report: https://github.com/mozilla/rhino/issues/107

cowwoc avatar Feb 09 '13 15:02 cowwoc

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...

jwmcleod avatar Feb 16 '13 23:02 jwmcleod

Rhino1_6R7 and csslint v0.9.10 work fine checked!

RamiroCampa avatar Mar 11 '13 03:03 RamiroCampa

Just wanted re-iterate that this is still Obviously a problem with the release candidate. This thread saved me hours of trouble.

ejzn avatar Jun 20 '14 03:06 ejzn