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 221371 - The focus change after a build (with errors) is incorrect.
Summary: The focus change after a build (with errors) is incorrect.
Status: RESOLVED INCOMPLETE
Alias: None
Product: cnd
Classification: Unclassified
Component: execution (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Andrew Krasny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-02 16:43 UTC by tbrunhoff
Modified: 2013-05-20 11:48 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tbrunhoff 2012-11-02 16:43:47 UTC
I have "build Main Project" mapped to F7.
I have "Next Error" mapped to F4.

- start with focus in an editor window.
- hit F7 to run a build (with errors).  Focus changes to the the output window.
- hit F4 to go to the first error (nothing happens).
- click once on the editor window.
- hit F4. The ide correctly moves to the line with the first error, even if it needs to change to a different editor window.

I should note that F7 correctly does a build no matter which window has the focus. F4 (next error) should do the same.

Product Version: NetBeans IDE Dev (Build 201210240001)
Java: 1.7.0_05; Java HotSpot(TM) Client VM 23.1-b03
System: Linux version 3.4.9-2.fc16.x86_64 running on i386; UTF-8; en_US (nb)
User directory: /home/toddb/.netbeans/dev
Cache directory: /home/toddb/.cache/netbeans/dev
Comment 1 Alexander Simon 2012-12-04 10:45:44 UTC
It seems the bug is regression after fixing bug #203612
Native execution should not set focus on output window if user invokes compile or build action.
Comment 2 Andrew Krasny 2012-12-07 11:01:47 UTC
With the following change the focus is taken only in case of some 'run' action...
http://hg.netbeans.org/cnd-main/rev/590f1d3fef0a

But this doesn't fix the usability issue...
Comment 3 Quality Engineering 2012-12-08 02:56:49 UTC
Integrated into 'main-golden', will be available in build *201212080001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/590f1d3fef0a
User: Andrew Krasny <akrasny@netbeans.org>
Log: FIXING: #221371 - The focus change after a build (with errors) is incorrect.
Comment 4 tbrunhoff 2013-04-05 23:53:44 UTC
Updated the target.

I think this bug is largely fixed. After a build with errors, the 'next error' hotkey causes the text of the error to appear in the status bar (near the bottom margin) and cursor in the the edit window changes.

There is a problem though...  when 'note:' appears in the output, each of these should be traversed on each 'next error'. For example, when the signature of a method is not matched, each note will point to the possible usages. Other IDE's will traverse these notes. And clicking on the message (instead of the hot key) will take you to those locations.

Should I file a new bug?

Product Version: NetBeans IDE Dev (Build 201303192300)
Updates: Updates available
Java: 1.6.0_43; Java HotSpot(TM) Client VM 20.14-b01
Runtime: Java(TM) SE Runtime Environment 1.6.0_43-b01
System: Linux version 3.6.11-4.fc16.x86_64 running on i386; UTF-8; en_US (nb)
User directory: /home/toddb/.netbeans/dev
Cache directory: /home/toddb/.cache/netbeans/dev
Comment 5 Andrew Krasny 2013-05-20 11:48:44 UTC
Dear tbrunhoff, 

thanks for your report. 
Could you, please, give more details about the 'note:' output pattern? 
Ideally it would be great if you could provide a source code example.

Thanks, 
=Andrew