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.
NetBeans IDE Dev (Build 20080304154948) Java: 1.6.0_04; Java HotSpot(TM) Client VM 10.0-b19 System: Windows XP version 5.1 No stylebuilder after adding a rule. --Create a web project, and add a new stylesheet, and open. --Using rule icon (toolbar left corner), add a new rule e.g. new HTML element <body>, above or below the default root rule >Style Builder says "No CSS Rule Selected" Now click in rule to activate cursor >Style Builder says "No Css Rule Selected" Still not activated.. Click in root rule and Style Builder is activated. Click back in body rule, still not activated. Tab switching does not help.
*** Issue 129223 has been marked as a duplicate of this issue. ***
*** Issue 129222 has been marked as a duplicate of this issue. ***
*** Issue 129221 has been marked as a duplicate of this issue. ***
*** Issue 129220 has been marked as a duplicate of this issue. ***
*** Issue 129216 has been marked as a duplicate of this issue. ***
*** Issue 129217 has been marked as a duplicate of this issue. ***
*** Issue 129215 has been marked as a duplicate of this issue. ***
*** Issue 129214 has been marked as a duplicate of this issue. ***
*** Issue 129212 has been marked as a duplicate of this issue. ***
*** Issue 129210 has been marked as a duplicate of this issue. ***
It looks like the editor doesn't listen or doesn't get events from the css parser from some reason. Does the same problem happen if you add the rule manually? Can you please confirm the problem is reproducible? If so, does editing the code manually help? If it is random, reopen and add proper keyword. I am also kindly asking our QE to verify the behaviour. I am closing the issue as works for me for now. If you can reporduce, please reopen.
I am seeing this with today's installer build: NetBeans IDE Dev (Build 200803101203) Java: 1.6.0_04; Java HotSpot(TM) both on Windows and Solaris Sparc. perhaps because I am working predominantly with VW projects? My process is to start with a fresh userdir. Today with two or three VW projects in multiviewer, at least one had been deployed, --I first open the stylesheet.css from resources node, --try adding a rule via icon, e.g. html body --see the cursor is in the new rule, but No CSS Rule Selected appears in Style Builder. --adding manually a class such as .zzz {} manually placing the cursor there, I see no CSS Rule Selected. If I next create a regular web project , and add my own stylesheet, I see the same "No Css Rule Selected". If I close all the projects, then restart IDE and create a regular web project, I still see it. Today it is not random but I previously did see it fail then somehow begin to work again. The projects I create are all by default non-shared.
Jindro or Martine, can you please try to reproduce it?
I cannot reproduce it, Krys what Nb bundle do you use, 'Web & Java EE' or 'All'? Can you attach a screenshot please?
I use the "Web & Java EE" bundle where I can still reproduce it today, but since you brought it up Martin, I am going to try the "All" bundle today as well to see if there's any difference. Attaching a screenshot from today NetBeans IDE Dev (Build 200803141205) Java: 1.6.0_04.
Created attachment 58411 [details] Screen shot "No CSS Rule Selected"
The All version of 200803141205 worked for me(!) so to reproduce it Martin, please try the Web and Java EE version, clean userdir, create only VW projects. One observation, I noticed after creating the rule in the All version that there was no cursor inside the rule. (?)
Krys, since I am not able to reproduce, I have added debug messages to the responsible class to be able to find the source of the problem. Please run netbeans build containing the changeset below with "issue_129209_debug=true" option e.g. ./netbeans -J-Dissue_129209_debug=true You will see mesaages like: INFO [css.visual]: caret event; dot=299 INFO [css.visual]: caret event; dot=299 INFO [css.visual]: update selected rule stylesheet.css * to position 299 selected rule:CssRule[.ddd ]INFO [css.visual]: already selected rule selected, exiting INFO [css.visual]: model updated INFO [css.visual]: model updated from AWT INFO [css.visual]: update selected rule stylesheet.css * to position 299 selected rule:CssRule[.ddd ]removed css style data listener from previous rule: CssRule[.ddd ]added property change listener to the new rule: CssRule[.ddd ]INFO [css.visual]: stylebuilder UI updated INFO [css.visual]: updateselected rule exit in the console. Please run the ide with a clean userdir, try to reproduce the problem and once you reproduce, kill the IDE and send me the log file - important thing is that after you reproduce you won't play with the css more so I am able to find the corresponding part at the end of the log. changeset: 74260:45ed52a58811 tag: tip user: Marek Fukala <mfukala@netbeans.org> date: Wed Mar 19 16:22:47 2008 +0100 summary: adding debug messages to be able to find source of issue #129209 (Stylebuilder not activated after adding new rule)
Hi Marek, I'm now seeing different behavior with or without using your switch, such that now the "No CSS rule selected" merely flashes momentarily. Therefore reducing priority. But I am attaching the messages log, because there you will see reflected "no rule selected" even though a rule has been selected. Thanks for your efforts.
Created attachment 58710 [details] messageslog-with-switch
>now the "No CSS rule selected" merely flashes momentarily. I am little confused Krys... The behaviour should be following: 1) open a css file => the file opens, SB and Preview components open caret is put into the first rule in the file SB and Preview shows content of the rule It might happen that the SB shows "No CSS Rule Selected" for a moment until the file gets parsed. This is not a bug. The same may happen if you modify the source either manually or via the "new rule panel". A BUG is if you do the file modification (or just open the file) set the caret into a rule and the SB doesn't show the content even after some time (max a few seconds depending on the file size). Can you please clarify again what is the behaviour you are facing? I am really sorry for asking the same things again, but according to your latest comment it seems to me the issue is not a bug at all. Thanks!
Correct. The "No CSS Rule Selected" is no longer persistent as it was and that was the main problem. Somehow that got fixed. I thought that as I am in the process of adding a rule (I use style editor), it would not flash at me, but it is only an annoyance. Close if you want. I want to point out when I load stylesheet.css from a VW project, there is NO caret appearing. There is rule selection via the blue hightlight and thus SB preview is loaded with those settings. I want to note that NO caret appears after adding a rule with the Style Rule editor.
I think I can fix the described problem - flicking of the UI when adding the new rule using the UI. As for the caret - can you file a separate issue please?
moving opened issues from TM <= 6.1 to TM=Dev
With respect to the issue 148460 and to the fact that the original issue has been fixed closing as fixed.