Bug 1000670

Summary: csslint runs forever
Product: [Fedora] Fedora Reporter: Cristian Ciupitu <cristian.ciupitu>
Component: csslintAssignee: Guillaume Kulakowski <guillaume>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: guillaume
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1350331 (view as bug list) Environment:
Last Closed: 2014-01-15 06:29:13 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1011947    
Bug Blocks: 1350331    

Description Cristian Ciupitu 2013-08-24 05:24:48 UTC
Description of problem:
csslint runs forever even for simple files.

Version-Release number of selected component (if applicable):
csslint-0.9.10-1.fc19.noarch.rpm

How reproducible:
Every time

Steps to Reproduce:
1. Create a CSS file:
cat > xxx.css << "EOF"
.xxx {
    font-size: 125%;
}
EOF
2. Run csslint on it:
csslint xxx.css

Actual results:
csslint hangs

Expected results:
csslint should finish

Additional info:
Other packages installed:
 - java-1.7.0-openjdk-1.7.0.25-2.3.12.4.fc19.x86_64.rpm
 - rhino-1.7R4-4.fc19.noarch.rpm

syntastic-css is affected by this.  Saving a CSS file in vim makes it go
ballistic.

Comment 1 Guillaume Kulakowski 2013-08-26 14:52:58 UTC
Work fine on EPEL6 with :
> java -version
> java version "1.6.0_24"
> OpenJDK Runtime Environment (IcedTea6 1.11.11.90) (rhel-1.62.1.11.11.90.el6_4-x86_64)
> OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)

Perhaps un upstream bug with JAVA 7. A new version 0.10.0 exists. I try to update rpm.

Comment 2 Guillaume Kulakowski 2013-08-27 08:40:00 UTC
Same with 0.10.0. I report an upstream bug

Comment 3 Guillaume Kulakowski 2013-09-02 09:34:26 UTC
It's a Rhino upstream bug : 
 - https://github.com/stubbornella/csslint/issues/321
 - https://github.com/mozilla/rhino/issues/107

Fixed with the new Rhino release.

Comment 4 Cristian Ciupitu 2013-12-22 20:03:46 UTC
It's still happening with csslint-0.10.0-1.fc20.noarch and rhino-1.7R4-6.fc20.noarch.

Comment 5 Guillaume Kulakowski 2014-01-14 16:02:14 UTC
From #1011947: a patch is coming...

Comment 6 Guillaume Kulakowski 2014-01-15 06:29:13 UTC
Fixed (see Bug 1000670).

Comment 7 Guillaume Kulakowski 2014-01-15 06:30:45 UTC
Sorry, see Bug 1011947