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.
Saving a CSS file breaks colour coding in JSPX and CSS files. Colour-coding makes code unreadable. Steps: Open a JSPX file, colour coding is as expected Open a CSS file, colour coding is as expected change CSS file and save switch to JSPX file tab, colour coding is broken switch back to CSS file, colour coding is broken
Can you provide the screenshot, please?
I can't reproduce it in a dev build. What Netbeans build are you using? Are the steps accurate? Would it be possible to attach the two file you mentioned? Were there any exceptions, maybe also attach Netbeans log file - <userdir>/var/log/messages.log. Thanks
Created attachment 60519 [details] CSS file colour coding broken part way through
Created attachment 60520 [details] JSPX file with broken colour coding
Created attachment 60521 [details] Netbeans log file
My build is 6.1RC2 Colour coding profile is CityLights
Would you like the source .css and .jspx files as well? No exceptions are visible.
>Would you like the source .css and .jspx files as well? Yes please. BTW is it reproducible just on the specific files or is it a generic problem?
Yes please, attach the files here. Is this reliably reproducible using the steps that you described? Do you remember if you imported settings from the previous version when you first started 6.1? If so, could you please also try with a fresh userdir (eg. use --userdir /tmp/whatever when launching Netbeans)? Thanks a lot
Created attachment 60544 [details] sample jspx file
Created attachment 60545 [details] style sheet css file
Ok, saving doesn't actually appear to be the cause of the issue. To reproduce, have both attached files open, then switch between tabs back and forth before the Navigator panel can finish painting. This should cause the colour coding of the smaller file (main.jspx) to break. I think this has something to do with the size of the file being parsed? PS I have imported settings from 6.0 I ran Netbeans with a different --userdir, can still reproduce problem
Hmm, I cannot reproduce with the files you attached. Adding CSS's QE Jindra to CC.
The problem is in CSSSemanticAnalyzer...
http://hg.netbeans.org/main/rev/30b517780380
IMO this is quite serious problem and we should consider adding it to the patch1.
Issue '133402' Integrated in NB_Trunk_Production #153 : http://hg.netbeans.org/main/rev/30b517780380, with comment: #133402 (fixed): CSS semantic analyzer ran only once and since then provided the same results forever
I agree with merging the fix in 61 patch, but I'm not able to reproduce the problem. I would like to ask reporter to verify the fix in newest build. Use this link http://bits.netbeans.org/dev/nightly/2008-04-24_02-01-05/ Thanks
Unable to reproduce on Build 200804250004. Going to mark as verified, ok?
The issue hasn't be verified till 61patch1 nomination cut-off date. Marked as release61_fixes_candidate2.
Build 200804250004
Looks ok to me.
*** Issue 134210 has been marked as a duplicate of this issue. ***
*** Issue 134542 has been marked as a duplicate of this issue. ***
*** Issue 134582 has been marked as a duplicate of this issue. ***
*** Issue 134267 has been marked as a duplicate of this issue. ***
I note that duplicates have been lodged. I have noticed that this bug is still occurring. I will attempt to find a reliable way to reproduce. Should this be reopened or do the other issues suggest a variation of this issue?
*** Issue 134530 has been marked as a duplicate of this issue. ***
gnewton, if you can reproduce the issue on current trunk builds (containing the fix) then yes, please reopen. The fix is NOT in 6.1 FCS! and should go to 6.1 patch 2. Thanks for your time.
The following log messages relate to the colour coding breaking an Netbeans deadlocking: org.apache.jasper.JasperException: PWC6336: Illegal TLD path /WEB-INF/tags/util.tld, must not start with "/WEB-INF/tags" at org.apache.jasper.compiler.TldLocationsCache.processTldsInFileSystem(TldLocationsCache.java:519) at org.apache.jasper.compiler.TldLocationsCache.processTldsInFileSystem(TldLocationsCache.java:512) at org.apache.jasper.compiler.TldLocationsCache.init(TldLocationsCache.java:321) Caused: org.apache.jasper.JasperException: PWC6180: Unable to initialize TldLocationsCache at org.apache.jasper.compiler.TldLocationsCache.init(TldLocationsCache.java:326) at org.apache.jasper.compiler.TldLocationsCache.getLocation(TldLocationsCache.java:272) [catch] at org.netbeans.modules.web.jspparser_ext.WebAppParseSupport$InitTldLocationCacheThread.run(WebAppParseSupport.java:914) WARNING [org.openide.loaders]: Should override getLookup() in class org.netbeans.modules.gsf.GsfDataObject, e.g.: [MultiDataObject.this.]getCookieSet().getLookup() WARNING [org.openide.filesystems.Ordering]: Not all children in / marked with the position attribute: [comment, uncomment], but some are: [org-netbeans-modules-css-actions-CssRuleCreateAction.instance, Separator0.instance, jump-list-last-edit, jump-list-prev, jump-list-next, Separator-before-find-previous.instance, find-selection, find-previous, find-next, toggle-highlight-search, Separator-after-toggle-highlight-search.instance, bookmark-previous.shadow, bookmark-next.shadow, bookmark-toggle.shadow, Separator-after-bookmarks.instance, shift-line-left, shift-line-right, Separator-after-shift-line.instance, start-macro-recording, stop-macro-recording] INFO [org.netbeans.modules.editor.settings.storage.SettingsType]: Preferences settings should reside in 'Preferences' subfolder, see #90403 for details. Offending file 'Editors/text/x-css/properties.xml' Illegal character : < Illegal character : < Illegal character : < Illegal character : < Illegal character : < Illegal character : < Illegal character : < Illegal character : < Illegal character : < Illegal character : < Illegal character : < Illegal character : < WARNING [org.netbeans.modules.html.editor.coloring.EmbeddingUpdater]: startOffset >= endOffset: 6862 >= 6862 Illegal character : < Illegal character : < Illegal character : #
The "crazy" coloring is very likely not related to the exception from the parser. Does the coloring problem happen in trunk builds under the same circumstances as in 6.1?? Can you attach a threaddump for the deadlock?
*** Issue 134868 has been marked as a duplicate of this issue. ***
I tried to test it on the 20080511 trunk build, but that build doesn't work: I can't even open a JSP without it throwing some error and leaving the editor gray with the word "Loading" in the middle.
you are facing independent P1 bug #134424 that is already fixed use todays build
Created attachment 61890 [details] Still seeing problems after the 19 updates to 6.1 FCS on May 22.
Hello mfukala, can you please fix this bug as soon as possible (till 09-Jun-2008), so it can be part of NB 6.1 patch 2? Thanks!
The issue didn't meet nomination criteria for 61patch2 till nomination cut-off date. It has been moved to the next patch.
Created attachment 62971 [details] Still seeing problems in NetBeans IDE 6.1 (Build 200804211638). See line 16 in attached screen capture.
pslechta, the issue has been already fixed, please include in upcoming patch (3?). frankovski, do not reopen the issue if you didn't check in trunk build. The issus was fixed on Apr 23th, and is not included in any patch so far.
I am sorry, I ment frankioski, not frankovski.
*** Issue 136246 has been marked as a duplicate of this issue. ***
*** Issue 138297 has been marked as a duplicate of this issue. ***
Please note that NetBeans 6.1 Patch3 cut-off is going to happen on close of business August 5th. If you would like to have bugfix for this issue as part of NetBeans 6.1 Patch3, then this issue must have information about bugfix' trunk changeset and it's status must be "VERIFIED".
verified.
I've transplanted the changeset http://hg.netbeans.org/main/rev/30b517780380 into release61_fixes repository as http://hg.netbeans.org/release61_fixes/rev/07c64a371f15