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 235581 - Invalid file opened in editor after clicking on an error hyperlink after compilation error oocurs.
Summary: Invalid file opened in editor after clicking on an error hyperlink after comp...
Status: RESOLVED DUPLICATE of bug 239040
Alias: None
Product: cnd
Classification: Unclassified
Component: Navigation (show other bugs)
Version: 7.3.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-06 00:39 UTC by dom_beau
Modified: 2013-12-25 10:44 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (33.86 KB, text/plain)
2013-09-06 00:39 UTC, dom_beau
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dom_beau 2013-09-06 00:39:48 UTC
Product Version = NetBeans IDE 7.3.1 (Build 201306052037)
Operating System = Linux version 3.8.0-29-generic running on amd64
Java; VM; Vendor = 1.7.0_25
Runtime = OpenJDK 64-Bit Server VM 23.7-b01

I use Mercurial, if this can be relevant.

Let's assume I have the file "A.cpp" opened in the editor. If I compile and there is an error in this file, an hyperlink appears in the output window. If I click on this hyperlink, rather than moving the cursor to the line in the _already_opened_ file, it opens a new tab with the same file then moves the cursor to this file. If I modify this file, I can save it but the modifications will be lost for ever. Like if it was a temporary file. To avoid that, I have to close this tab and move manualy the cursor to the already opened tab.

Very bothering.
Comment 1 dom_beau 2013-09-06 00:39:52 UTC
Created attachment 139732 [details]
IDE log
Comment 2 Milutin Kristofic 2013-09-09 11:49:40 UTC
Please, cnd team evaluate this bug. Thank you.
Comment 3 Alexander Simon 2013-11-27 13:57:53 UTC
It looks like your build procedure creates a copy of the file and compiles the copy of the file. So IDE open a temporary file when you navigate to error.

Could you look at files paths (navigate cursor on editor tab header and IDE shows full path of the file). Do paths equal?
Comment 4 Alexander Simon 2013-12-25 08:46:03 UTC
There is no user response. Close as incomplete.
Comment 5 Vladimir Voskresensky 2013-12-25 10:44:41 UTC
I have fixed it as part of other issue 239040; and it is available in NB 7.4 with the latest patches

*** This bug has been marked as a duplicate of bug 239040 ***