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.

Bug 257002

Summary: Netbeans google chrome connector not able to access CSS
Product: web Reporter: christianrpk
Component: InspectionAssignee: Martin Entlicher <mentlicher>
Status: REOPENED ---    
Severity: normal CC: jstola
Priority: P3    
Version: 8.0.2   
Hardware: PC   
OS: Mac OS X   
Issue Type: DEFECT Exception Reporter:

Description christianrpk 2015-12-05 19:09:08 UTC
I am using Netbeans 8.0.2, Google Chrome 47.0.2526.73 (64-bit), in MAC:

Product Version: NetBeans IDE 8.0.2 (Build 201411181905)
Updates: NetBeans IDE is updated to version NetBeans 8.0.2 Patch 2
Java: 1.7.0_79; Java HotSpot(TM) 64-Bit Server VM 24.79-b02
Runtime: Java(TM) SE Runtime Environment 1.7.0_79-b15
System: Mac OS X version 10.10.3 running on x86_64; UTF-8; en_US (nb)


And I am not able to access CSS in Netbeans when debugging with the Chrome connector.

I checked Netbeans logs and those are:

INFO [org.netbeans.modules.parsing.impl.TaskProcessor]: Task: org.netbeans.modules.csl.editor.fold.GsfFoldManager$JavaElementFoldTask@8ff66bc : class org.netbeans.modules.csl.editor.fold.GsfFoldManager$JavaElementFoldTask ignored cancel for 67 ms.
SEVERE [org.openide.util.RequestProcessor]: Error in RequestProcessor org.netbeans.modules.web.inspect.webkit.ui.CSSStylesSelectionPanel$9
java.lang.NullPointerException
	at org.netbeans.modules.web.webkit.debugging.api.css.PseudoIdRules.<init>(PseudoIdRules.java:67)
	at org.netbeans.modules.web.webkit.debugging.api.css.MatchedStyles.<init>(MatchedStyles.java:84)
	at org.netbeans.modules.web.webkit.debugging.api.css.CSS.getMatchedStyles(CSS.java:352)
	at org.netbeans.modules.web.inspect.webkit.ui.CSSStylesSelectionPanel.updateMatchedRules(CSSStylesSelectionPanel.java:639)
	at org.netbeans.modules.web.inspect.webkit.ui.CSSStylesSelectionPanel$9.run(CSSStylesSelectionPanel.java:628)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1423)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)


I can reproduce this every time I click on an element in Inspect mode and the CSS styles window is blank.


Thanks for your help.
Christian.
Comment 1 Jan Stola 2015-12-06 16:47:24 UTC
I am sorry, I am not able to reproduce this issue. Could you, please, provide more details? I tried to create the Responsive Rabbits sample project (from Samples/HTML5 category) and I am able to see style information in the CSS Styles view. Are you able to reproduce this problem even with the Responsive Rabbits sample? If not then it is somehow specific to your project and it would be great if you can attach some sample project and describe exact steps that lead to the described behavior. Thank you in advance.
Comment 2 christianrpk 2015-12-07 16:11:11 UTC
(In reply to Jan Stola from comment #1)
> I am sorry, I am not able to reproduce this issue. Could you, please,
> provide more details? I tried to create the Responsive Rabbits sample
> project (from Samples/HTML5 category) and I am able to see style information
> in the CSS Styles view. Are you able to reproduce this problem even with the
> Responsive Rabbits sample? If not then it is somehow specific to your
> project and it would be great if you can attach some sample project and
> describe exact steps that lead to the described behavior. Thank you in
> advance.

Hi Jan

I used the "Rabbits sample", and that project is also working.

My project is a huge project, and basically it was showing correctly the CSS properties. This project is using SASS, and it generates a "main.css" from several "*.scss" files.

I think that after I configured SASS in Netbeans to generate the "main.css" file from the several scss files, it started to crash and to do not display the CSS properties.

Actually, the "main.css" file appears as "Ignored" in the IDE.

What could be the reason of having the "main.css" file as ignored?
Could be that having configured SASS inside Netbeans made the crash?

Thanks in advance and kind regards.
Comment 3 Tomas Mysik 2015-12-08 09:39:36 UTC
Adding Honza to CC, maybe he could have some advice. Thanks in advance.