This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Build: NetBeans IDE Dev (Build 201311280002) VM: Java HotSpot(TM) Client VM, 25.0-b59, Java(TM) SE Runtime Environment, 1.8.0-ea-b117 OS: Linux User Comments: vriha: Less compiler 1.5 adds support for source maps (see issue 238924). This exception popped out when : - I had css with this new source maps - css contains simple rule for div element - run project in Chrome with NB integration - selected div in Browser DOM Stacktrace: java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.String at org.netbeans.modules.web.inspect.sourcemap.SourceMap.<init>(SourceMap.java:104) at org.netbeans.modules.web.inspect.sourcemap.SourceMap.<init>(SourceMap.java:94) at org.netbeans.modules.web.inspect.sourcemap.SourceMap.parse(SourceMap.java:82) at org.netbeans.modules.web.inspect.webkit.ui.RuleInfo.fillMetaSourceInfo(RuleInfo.java:179) at org.netbeans.modules.web.inspect.webkit.ui.MatchedRulesNode.createMatchedRuleNode(MatchedRulesNode.java:148) at org.netbeans.modules.web.inspect.webkit.ui.MatchedRulesNode.initChildren(MatchedRulesNode.java:100)
Created attachment 142671 [details] stacktrace
Possible patch candidate. It would be good to somehow handle source maps for Less. I think for patch it could be enough to completely ignore them in 7.4 - no exceptions, no information about them in CSS Styles. I don't know if CSS Styles works or not with Less source maps (except of this exception)
Created attachment 144499 [details] stacktrace Happened when I was running project from template [1] in Chrome with NB integration and went to project properties to enable Less compiler
Could someone please evaluate? If this won't be fixed for 8.0, then issue 238924 must be reverted as this CCE pops out each time you use Less source maps. Thank you.
This bug already has 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=205637
The exception shows that the version of a source map generated by LESS is not stored as a string but as a number. I have modified the corresponding code to handle both case well. Modified file: http://hg.netbeans.org/web-main/rev/707424268603
Thank you, verified Product Version: NetBeans IDE Dev (Build 201406300002) Java: 1.8.0_05; Java HotSpot(TM) Client VM 25.5-b02 Runtime: Java(TM) SE Runtime Environment 1.8.0_05-b13 System: Linux version 3.13.0-29-generic running on i386; UTF-8; en_US (nb)