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 209468 - Source file opens in wrong window panel
Summary: Source file opens in wrong window panel
Status: REOPENED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 8.2
Hardware: PC Windows 10 x64
: P4 normal with 12 votes (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords:
: 248662 (view as bug list)
Depends on: 211836
Blocks:
  Show dependency tree
 
Reported: 2012-03-12 13:51 UTC by nedenom
Modified: 2017-12-05 16:26 UTC (History)
4 users (show)

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 nedenom 2012-03-12 13:51:09 UTC
After performing a search or inspecting call hierarchy, double clicking on a file opens it in the output panel, together with search and call hierarchy results, instead of in the main panel with other source files.
Comment 1 Petr Somol 2012-03-14 10:45:17 UTC
Could not reproduce. Jan, please would you evaluate to reassign to whoever this might belong ?
Comment 2 nedenom 2012-03-17 20:38:09 UTC
Maybe something to do with imported settings from NB 7.0. I deleted my 7.1 profile directory and it seems to behave normally now. I just have to take the time to reconfigure NB all over again.
Comment 3 catweasle 2012-03-18 21:38:23 UTC
I have about the same problem.
If I am positioned in a run tab in the output pane and open up a source file by double clicking in the project browser,
the source file opens up in the tab in the output pane I was positioned in.
I also imported settings of my previous installation when installing 7.1.1.
I'm reopening this, not sure if I'm allowed to do that,
sorry if that's not polite.

jan
Comment 4 allanNB 2012-03-28 16:04:59 UTC
same issue in Netbeans 7.2 beta build 201203120400
Comment 5 Michel Graciano 2012-03-28 16:41:34 UTC
There are a couple of settings for tab at Tools > Options > Miscellaneous > Windows. Maybe 'New document opens next to active document' or something else?
Comment 6 allanNB 2012-03-28 19:45:52 UTC
(In reply to comment #5)
> There are a couple of settings for tab at Tools > Options > Miscellaneous >
> Windows. Maybe 'New document opens next to active document' or something else?


None of these settings affect this bug. I also tested 'New document opens next to active document' to no avail.
Comment 7 adriaaaaaan 2012-03-30 09:23:51 UTC
I also have this issue Its soooo annoying!  I also upgraded from 7.0
Comment 8 Kkloe 2012-04-02 12:43:32 UTC
Same here, started happening after I made an call stack trace(not just that thou).
As I was doing several things it was hard to say what caused it. Tried to somehow reproduce this, no luck

Too fix it I had to do was go:
Window->Reset Windows

Product Version: NetBeans IDE 7.1 (Build 201112071828)
Java: 1.6.0_30; Java HotSpot(TM) Client VM 20.5-b03
System: Windows 7 version 6.1 running on x86; Cp1252; sv_SE (nb)
Comment 9 Jan Becicka 2012-04-23 13:15:06 UTC
this is window system i hope
Comment 10 Stanislav Aubrecht 2012-04-23 14:25:52 UTC
Most likely caused by manually docking Output or Search Results or some other window by splitting the editor area. The Output window is then considered a document window and its docking spot is reserved for document windows - there are scroll left/right and drop down buttons in the upper right corner of that area.
Menu 'Window - Reset Windows' brings back the default state.

If that is not the case then please attach a screen shot and reopen, thanks.
Comment 11 nedenom 2012-04-27 09:36:09 UTC
I messed up the windows again... at least I know there is a Reset Windows command now. Still a nuisance though, to re-arrange to my preferences over again.

That explanation in previous comment is probably correct, but rather complicated and I cannot imagine a user wanting to achieve this on purpose. 

I don't know if this behavior is a side effect of general refactoring, but the way it worked in the previous version was fine, for me at least.
Comment 12 localhorst 2012-09-10 13:03:11 UTC
Resetting windows wokred for me in NB 7.2
Comment 13 localhorst 2012-11-18 20:49:47 UTC
I found a workaround by saving my cuurent configuration using the "Perspective" plugin. Check this post on Stackoverflow: http://stackoverflow.com/questions/12490730/can-i-save-my-window-layout-in-netbeans-7-2
Comment 14 strange_loops 2013-09-25 18:02:04 UTC
I had a similar problem in 7.3. Reset Windows worked as well.
Comment 15 ildar 2014-06-03 07:44:29 UTC
I have the same issue with right-docket debug windows

Product Version: NetBeans IDE 7.4 (Build 201310111528)
Обновления: Среда NetBeans IDE обновлена до версии NetBeans 7.4 Patch 3
Java: 1.7.0_55; OpenJDK Client VM 24.51-b03
Runtime: OpenJDK Runtime Environment 1.7.0_55-b14
System: Linux version 3.14.4-1-ARCH running on i386; UTF-8; ru_RU (nb)
User directory: /home/aim/.netbeans/7.4
Cache directory: /home/aim/.cache/netbeans/7.4

The 'Reset windows' works but it changes my window layout.

Perspective plugin does not restore right-docket windows.
Comment 16 Marian Mirilovic 2014-11-27 17:48:15 UTC
*** Bug 248662 has been marked as a duplicate of this bug. ***
Comment 17 tungsten 2015-06-15 06:49:13 UTC
Same is happening to me on Netbeans 8.0.2, on Windows 8.1  When you close all the windows the output's pane will maximize.  New or opening a file will sometimes put it in the output's pane.  I have not notice a pattern yet.
Comment 18 Sergey Grinev 2015-07-06 13:37:22 UTC
still reproducible on Netbeans 8.0.2 on mac
Comment 19 sneakyfildy 2015-07-22 12:57:53 UTC
Hello. Found a solution, seems like it is not a bug.

To fix drag open search ctrl+shift+F, perform search, now grab search tab header and drag it into an editor, to make be placed jsut like other tabs (with code, I suppose). Now right-click search tab header and select 'Float' in the dropdown. Voila.
Comment 20 sneakyfildy 2015-07-22 12:59:51 UTC
(In reply to sneakyfildy from comment #19)
> Hello. Found a solution, seems like it is not a bug.
> 
> To fix drag open search ctrl+shift+F, perform search, now grab search tab
> header and drag it into an editor, to make be placed jsut like other tabs
> (with code, I suppose). Now right-click search tab header and select 'Float'
> in the dropdown. Voila.

post.replace(' drag', ','); // first entry
Comment 21 sneakyfildy 2015-07-22 13:02:35 UTC
Aww, sorry :( doesn't help. That is something wierd.
Comment 22 kay_kay 2016-03-02 12:05:13 UTC
Can confirm that it still happens on Osx with Netbeans 8.1
Comment 23 kay_kay 2016-03-02 12:11:07 UTC
Selecting Window -> Reset Windows seems to fix this issue for now, the downside being it also rearanges all other windows to their default positions.
Comment 24 tonatihu.r 2016-04-04 21:30:28 UTC
Product Version: NetBeans IDE 8.0.2 (Build 201411181905)
Updates: NetBeans IDE is updated to version NetBeans 8.0.2 Patch 2
Java: 1.7.0_67; Java HotSpot(TM) 64-Bit Server VM 24.65-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_67-b01
System: Mac OS X version 10.11.4 running on x86_64; UTF-8; en_US (nb)

recreate:

*Open NetBeans
*Window, Reset Windows.
*Command+Shift+F and search for something.
*On the result screen, double click on a file.
---> file opens in the editor window as a new tab (expected)
*Drag the search tab (by default at the bottom of the screen) to be the right side column of the screen.
*Open another file from the same search.
--> File opens in a new tab next to the search tab on the right side panel instead of the main panel with the rest of the opened files.
Comment 25 tonatihu.r 2016-04-04 21:31:09 UTC
Product Version: NetBeans IDE 8.0.2 (Build 201411181905)
Updates: NetBeans IDE is updated to version NetBeans 8.0.2 Patch 2
Java: 1.7.0_67; Java HotSpot(TM) 64-Bit Server VM 24.65-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_67-b01
System: Mac OS X version 10.11.4 running on x86_64; UTF-8; en_US (nb)

recreate:

*Open NetBeans
*Window, Reset Windows.
*Command+Shift+F and search for something.
*On the result screen, double click on a file.
---> file opens in the editor window as a new tab (expected)
*Drag the search tab (by default at the bottom of the screen) to be the right side column of the screen.
*Open another file from the same search.
--> File opens in a new tab next to the search tab on the right side panel instead of the main panel with the rest of the opened files.
Comment 26 gromit190 2016-07-16 15:13:02 UTC
Having the same error here. Steps to reproduce:

* Close all source files, making the output tab usurp the space the source file tabs had
* Open a source file (will now open in same window as output)
* Drag output tab to move its window away from source file
* In the output tab, click a link to a source file
* The file opens in the same window as the output tab, NOT in the same window as other

Solved by closing the output tab, re-running the project to get a new output-tab
Comment 27 gromit190 2016-07-16 20:10:32 UTC
(In reply to gromit190 from comment #26)
> Having the same error here. Steps to reproduce:
> 
> * Close all source files, making the output tab usurp the space the source
> file tabs had
> * Open a source file (will now open in same window as output)
> * Drag output tab to move its window away from source file
> * In the output tab, click a link to a source file
> * The file opens in the same window as the output tab, NOT in the same
> window as other
> 
> Solved by closing the output tab, re-running the project to get a new
> output-tab

Please disregard this, I misinterpreted what happened
Comment 28 lemon_juice 2017-02-15 20:16:39 UTC
Same happening for me in Netbeans 8.2. It's easy to reproduce, simply re-dock the output window from the bottom of the screen to any other location by dragging its tab and then dock it back at the bottom.

The visual clue is that the output (or search results) window no longer has the "minimize" dash-button in the upper right corner - instead it has the arrows and the restore/maximize window square button like the main document pane. When there is no minimize button then new documents from the results open in the output pane instead of the document pane.

I haven't been able to find a way to fix it apart from resetting windows.
Comment 29 amnon_d 2017-02-21 09:00:35 UTC
Window > Reset Windows
has definitely solved this problem.
Comment 30 Booboo 2017-03-03 09:56:46 UTC
Can you please fix this bug?

It is so annoying if you have opened the Test window and Output window at the same time.

Reset Window does not fix anything. I need to set up the test and output window over and over again. This is even more annoying than dragging the document into the document window.
Comment 31 bobz0r75 2017-05-26 13:22:20 UTC
This bug has appeared on Windows 10 x64 and on Linux (Xubuntu 14.*, 16.*) x64 too.
Comment 32 skrpc 2017-05-26 15:57:01 UTC
I could reproduce on Ubuntu 16.04, NetBeans 8.2 after a new build of the machine

To reproduce :-

 - Drag search output window so that it docks on the right hand side of the main window (one tab).
 - Double click a file listed in the search output window.
 - File opens up as a new tab next to the search output window (as a new tab) and not the main file window content area.

To Fix :-

This only seemed to happen after first dragging and docking the search output window from the bottom opf the screen to the right hand side of the main file content area and so there was only the search output window (one tab) docked to the right of the main document/file content area.  If I then added for example the breakpoints window and docked that next to the search output window (two tabs) then double clicking output in the search window would then work as expected.

I therefore thought it must be due to just having the one output window docked to the right of the content area (one tab) but on closing Netbeans and then re-opening whether I just have the search output window docked to the right (one tab) or other as well such as breakpoints (two tabs) it all now works as expected.