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 204915 - [71cat] Source files opened multiple times in editor
Summary: [71cat] Source files opened multiple times in editor
Status: RESOLVED INCOMPLETE
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 7.1
Hardware: PC Windows XP
: P2 normal (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-10 08:35 UTC by muellermi
Modified: 2011-11-16 16:46 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot (13.30 KB, image/png)
2011-11-10 08:37 UTC, muellermi
Details
<no description> (174.20 KB, application/octet-stream)
2011-11-10 08:38 UTC, muellermi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description muellermi 2011-11-10 08:35:35 UTC
Product Version = NetBeans IDE Dev (Build 201111090600)
Operating System = Windows XP version 5.1 running on x86
Java; VM; Vendor = 1.7.0_01
Runtime = Java HotSpot(TM) Client VM 21.1-b02

In this build (haven't seen this before), some files are opened multiple in the editor.
Theses files are synchronized (see screenshot). If a file is changed, both tabs are colored blue. If unsafed, both are bold. I I safe one, both are displayed normal etc...
Comment 1 muellermi 2011-11-10 08:37:37 UTC
Created attachment 113071 [details]
Screenshot
Comment 2 muellermi 2011-11-10 08:38:51 UTC
Created attachment 113073 [details]
<no description>
Comment 3 Vladimir Voskresensky 2011-11-10 08:42:46 UTC
It looks like issue #202681, but we can not close as duplicate according to https://netbeans.org/bugzilla/show_bug.cgi?id=202681#c7 which claims that change have to be done in C++ editor support, then it have to be done in Java editor support and so on for each language... 
FYI, it's side effect of new multiview components introduced in 7.1 (Source/History)
Comment 4 muellermi 2011-11-10 08:54:42 UTC
I don't know how this happened, I just monitored the problem.
After closing all documents and re.opening a couple, everything had been ok.
Usually I shutdown NB as is, with a couple of files open. Maybe this is a precondition for this problem? The problem occured on the first launch of the new build.
Comment 5 Milutin Kristofic 2011-11-10 12:32:55 UTC
Can I ask for a help, what need to be done in java editor part, if anything.
Comment 6 Jiri Prox 2011-11-11 07:01:18 UTC
I can see the problem at all. File can be opened multiple times by cloning the editor tab (right click on tab and select clone). If the editors are correctly synchronized all is fine.
Comment 7 Vladimir Voskresensky 2011-11-11 08:55:20 UTC
Jiri, the issue is that tabs reopened after IDE restart are not correctly deserialized:
Have a look at Jarda's evaluation:
 allEditors field in CppEditorSupport is empty after deserialization of first editor.
It's an internal issue, right? 
While this bug and issue #202681 are user visible consequences.
Comment 8 Stanislav Aubrecht 2011-11-11 09:23:26 UTC
pls read jarda's comment here: http://netbeans.org/bugzilla/show_bug.cgi?id=202681#c12
Comment 9 David Strupl 2011-11-11 17:47:04 UTC
Are there deterministic steps to reproduce this with recent build? Or is it random?
Comment 10 Milutin Kristofic 2011-11-14 17:01:45 UTC
No steps to reproduce, similar Bug #202681 evaluated as works for me -> Incomplete.

If it occurs again, please reopen.