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 7.0 RC2 JDK 1.6 update 24 I am seeing pretty serious regressions involving stack-traces not being converted to links in the output window. 1. Load a Maven Java Application project 2. Compile class with errors 3. I get this output but only the last line shows up as a link: --------------------------------- cd C:\Users\Gili\Documents\foo\health\client; "JAVA_HOME=C:\\Program Files\\Java\\jdk1.6.0_24" "\"C:\\Program Files\\NetBeans 7.0 RC2\\java\\maven\\bin\\mvn.bat\"" install Scanning for projects... ------------------------------------------------------------------------ Building foo.health.client 1.0-SNAPSHOT ------------------------------------------------------------------------ [resources:resources] Using 'UTF-8' encoding to copy filtered resources. Copying 11 resources [compiler:compile] Compiling 1 source file to C:\Users\Gili\Documents\foo\health\client\target\classes ------------------------------------------------------------------------ BUILD FAILURE ------------------------------------------------------------------------ Total time: 1.054s Finished at: Wed Apr 20 14:36:40 EDT 2011 Final Memory: 7M/184M ------------------------------------------------------------------------ Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-compile) on project foo.client: Compilation failure: Compilation failure: C:\Users\Gili\Documents\foo\health\client\src\main\java\com\foo\health\client\MainPanel.java:[41,6] background is not public in java.awt.Component; cannot be accessed from outside package C:\Users\Gili\Documents\foo\health\client\src\main\java\com\foo\health\client\MainPanel.java:[41,2] cannot find symbol symbol : method add(java.awt.Color,java.lang.Integer) location: class com.foo.health.client.MainPanel C:\Users\Gili\Documents\foo\health\client\src\main\java\com\foo\health\client\MainPanel.java:[43,2] background is not public in java.awt.Component; cannot be accessed from outside package C:\Users\Gili\Documents\foo\health\client\src\main\java\com\foo\health\client\MainPanel.java:[43,12] cannot find symbol symbol : method setIcon(javax.swing.ImageIcon) location: class java.awt.Color C:\Users\Gili\Documents\foo\health\client\src\main\java\com\foo\health\client\MainPanel.java:[44,2] background is not public in java.awt.Component; cannot be accessed from outside package C:\Users\Gili\Documents\foo\health\client\src\main\java\com\foo\health\client\MainPanel.java:[44,12] cannot find symbol symbol : method setSize(int,int) location: class java.awt.Color -> [Help 1] To see the full stack trace of the errors, re-run Maven with the -e switch. Re-run Maven using the -X switch to enable full debug logging. For more information about the errors and possible solutions, please read the following articles: [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException ---------------------------------
A similar problem is when the output window contains stack-traces such as this: [exec:exec] Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: input == null! at javax.imageio.ImageIO.read(ImageIO.java:1362) at com.foo.health.client.MainPanel.<init>(MainPanel.java:35) at com.foo.health.client.Main$1.run(Main.java:52) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:642) at java.awt.EventQueue.access$000(EventQueue.java:85) at java.awt.EventQueue$1.run(EventQueue.java:603) at java.awt.EventQueue$1.run(EventQueue.java:601) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87) at java.awt.EventQueue.dispatchEvent(EventQueue.java:612) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161) at java.awt.EventDispatchThread.run(EventDispatchThread.java:122) ------------------------------------------------------------------------ BUILD SUCCESS ------------------------------------------------------------------------ Total time: 2.585s Finished at: Wed Apr 20 14:39:04 EDT 2011 Final Memory: 7M/184M ------------------------------------------------------------------------ In the line "com.foo.health.client.MainPanel.<init>(MainPanel.java:35)" the letters "com." are not underlined but the rest of the line is. I am expecting the entire line to be highlighted.
My guess is that this is related to Maven 3.0. Netbeans 6.9.1 suffers from the same problem if Maven 3 is used.
Thanks for report, we already know about this regression - plan to fix it in the first patch. *** This bug has been marked as a duplicate of bug 197381 ***
(In reply to comment #0) > C:\Users\Gili\Documents\foo\health\client\src\main\java\com\foo\health\client\MainPanel.java:[41,2] > cannot find symbol > symbol : method add(java.awt.Color,java.lang.Integer) > location: class com.foo.health.client.MainPanel This looks different from bug #197381, which was about working around a bug in the Maven compiler plugin which omits the drive letter in its output; in the sample printed above, the Maven output looks OK and NB should be hyperlinking it (assuming the named file really exists). Check whether it is really fixed in a post-7.0 development build, otherwise file a fresh bug in projects/Maven with steps to reproduce from scratch. Anyway the summary here is about "stack traces" and the above is not a stack trace line. (In reply to comment #1) > In the line "com.foo.health.client.MainPanel.<init>(MainPanel.java:35)" the > letters "com." are not underlined but the rest of the line is. I am expecting > the entire line to be highlighted. I have observed this too. I believe it is a bug in the Output Window relating to the display of TAB characters. Try turning line wrap mode on or off to see if that affects it.
> Try turning line wrap mode on or off to see if that affects it. I just checked: toggling line-wrap makes no difference.
I've verified that it's a bug of Output Window that occur when tabs form a part of the link.
Fixed by changeset: 194549:c288e9c3aeb7 http://hg.netbeans.org/main/rev/c288e9c3aeb7
Pushed to release701 as changeset: 199106:309aa7321bbd
Integrated into 'main-golden', will be available in build *201105250400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/c288e9c3aeb7 User: mentlicher@netbeans.org Log: #197915 Do not translate tabs to spaces for links. It breaks character indexes.