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.
Summary: | Error mark/badge is shown incorrectly or not shown at all | ||
---|---|---|---|
Product: | platform | Reporter: | ceklock |
Component: | Window System | Assignee: | Stanislav Aubrecht <saubrecht> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | adithyank, akobberup, ceklock, gholmer, MackSix, markiewb, mmirilovic, sdedic, wissenstein |
Priority: | P1 | ||
Version: | 8.0 | ||
Hardware: | PC | ||
OS: | All | ||
See Also: |
https://netbeans.org/bugzilla/show_bug.cgi?id=236715 https://netbeans.org/bugzilla/show_bug.cgi?id=235958 https://netbeans.org/bugzilla/show_bug.cgi?id=235050 https://netbeans.org/bugzilla/show_bug.cgi?id=226954 |
||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | 241780 | ||
Bug Blocks: | |||
Attachments: |
bug/error mark screenshot
IDE log to help localize the bug Algorithms.zip j3d-jre.zip |
Description
ceklock
2014-01-12 20:53:15 UTC
Created attachment 143875 [details]
bug/error mark screenshot
I called it "bug mark", but maybe the most correct is "error mark". I don't know the correct name. Unfortunately, I cannot reproduce the problem. Do you have a reproducible test case? Thanks. It is a very frequently occurring issue for me. I have to close and open the class again to hide the error-mark on the tab title. I have another observation, if you open actions window (CTRL + 6), this error marks in the editor got cleared immediately. Actually, the error status between the left side tree node, tab title, left side editor bar and the right side bar are not at all consistent. This is very annoying issue at times. Created attachment 144352 [details]
IDE log to help localize the bug
Product Version = NetBeans IDE 8.0 Beta (Build 201401141042)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.7.0_21
Runtime = Java HotSpot(TM) 64-Bit Server VM 23.21-b01
In my IDE instance, error mark is now remaining on the tab titled EditTournament2ActionBean.java despite I corrected the class code and error marks have disappeared from Projects pane and from the class source pane.
I attached the IDE log.
Related to * https://netbeans.org/bugzilla/show_bug.cgi?id=235958 * https://netbeans.org/bugzilla/show_bug.cgi?id=235050 ? Another related bug: https://netbeans.org/bugzilla/show_bug.cgi?id=226954 1. Start NetBeans with no userdir or cachedir. Make sure you have the Home Page open and leave it open. 2. Open project "Algorithms" and notice there is errors. 3. Open StdDraw3D.java in package edu.princeton.cs.introcs. 4. Notice error badge on document tab. 5. In Projects window, open Libraies folder context menu and add j3dcore.jar, j3dutils.jar and vecmath.jar 6. Wait for project scanning and see if error badge on document tab goes away. 7. If error badge persists, if you click on Start Page and then back again, it may go away. 8. In Libraries folder, highlight j3dcore.jar, j3dutils.jar and vecmath.jar and use context menuu to remove them. 9. Restart NetBeans (do not click on any document tabs that are open) and notice that j3dcore.jar, j3dutils.jar and vecmath.jar reappear in Libraries folder. 10. Repeat step 8 to remove them. 11. After project scan, see if error badge on StdDraw3D.java disappears. If so, click on the document tab to view StdDraw3D.java and see if error badge reappears. 12. Restart NetBeans again (do not click on any document tabs) and this time the libraries are really gone. 13. Repeat step 5 to add library jars again. 14. After project scanning, see if error badge on document tab went away. 15. If error is present on document tab, click on the tab to view StdDraw3D.java and the error badge may go away. 16. Repeat steps 8 through 15 up to 5 times. Project is in Algorithms.zip and jar files are in j3d-jre.zip Product Version: NetBeans IDE Dev (Build 201402030001) Updates: Updates available Java: 1.8.0; Java HotSpot(TM) 64-Bit Server VM 25.0-b69 Runtime: Java(TM) SE Runtime Environment 1.8.0-b127 System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb) Created attachment 144807 [details]
Algorithms.zip
Created attachment 144808 [details]
j3d-jre.zip
Remove the 3 jar files located in the lib/ext folder and place them somewhere convenient.
1) Create class file Test.java: public class Test { public void test() { Test2 t2 = new Test2(); t2.test(); } } 2) Create class file Test2.java: public class Test2 { public void test() { } } 3) Save the files and keep them opened in different tabs. 4) Comment the test() method of Test2 class. Save file. Test.java tab will show error badge (hopefully - see step 5). 5) Select Test.java tab. Error badge will disappear from the tab. But there are 2 situations here: if the error badge does not appear at step 4 it will appear after Test.java is selected. If the error badge appears at step 4 it will disappear after Test.java is selected. 6) Try again a couple of times and maybe the behavior will change. Trying again with IDE restart could be a good test also. (In reply to ceklock from comment #11) Carlos, I can repeat your steps from comment 11. It is an easier way to reproduce the issue than my steps. I can reproduce it as well Product Version: NetBeans IDE Dev (Build 201402040001) Java: 1.8.0-ea; Java HotSpot(TM) 64-Bit Server VM 25.0-b65 Runtime: Java(TM) SE Runtime Environment 1.8.0-ea-b123 System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb) User directory: C:\Users\jprox\AppData\Roaming\NetBeans\dev Cache directory: C:\Users\jprox\AppData\Local\NetBeans\Cache\dev Dusane, can you please take a look at this? Thanks a lot! *** Bug 240754 has been marked as a duplicate of this bug. *** I make an error in a .java file and save. It shows up with the error indicator everywhere it is supposed to. Then I exit NB and re-launch. That puts me in the state where the file has the error and it is marked on the package, but not the file in the project view, and not on the tab in the editor. This of course makes it hard to find as the the trail of error badges in the packages suddenly ends with no source file identified. Soon as I make a change to that file and save, all the error badges are corrected. *** Bug 235050 has been marked as a duplicate of this bug. *** Both test cases (described in comments 8 and 11) are reproducible. Problem seems to be in core.multiview since the org.netbeans.modules.parsing.impl.indexing.errors.ErrorAnnotator returns correctly annotated icons when requested. Reassigning. Part of the issue reported as comment#8 has a different cause; after step (5), project config is not saved (project.properties on disk does not contain JAR references). I've put some debug traces into project system and found out that the project properties are actually modified, but not saved on the disk -- this may cause the effect of step (9). Issue filed against project system as issue #241780 core-main 7405bc7d4ab6 Integrated into 'main-silver', will be available in build *201402140001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/7405bc7d4ab6 User: S. Aubrecht <saubrecht@netbeans.org> Log: #240371 - Error mark/badge is shown incorrectly or not shown at all |