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 210411 - Name column in Variables tab does not stick.
Summary: Name column in Variables tab does not stick.
Status: RESOLVED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.1.1
Hardware: Macintosh Mac OS X
: P3 normal with 1 vote (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-30 09:10 UTC by jvenderb
Modified: 2012-06-14 06:09 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot of behavior (105.16 KB, image/png)
2012-04-09 20:06 UTC, cymblicity
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jvenderb 2012-03-30 09:10:42 UTC
Product Version = NetBeans IDE 7.1.1 (Build 201202271535)
Operating System = Mac OS X version 10.7.3 running on x86_64
Java; VM; Vendor = 1.6.0_29
Runtime = Java HotSpot(TM) 64-Bit Server VM 20.4-b02-402
Comment 1 jvenderb 2012-03-30 09:14:44 UTC
If you debug a php file each time you open the Variables tab the Name column is put on the right site.
You can move it to the left. But the next time you open the Variables tab the Name column is on the right site again.
Nothing seems to help, even not the Reset Windows option.
Comment 2 Ondrej Brejla 2012-04-04 08:26:13 UTC
I'm testing it in the current 7.2 dev build and I have a "Name" columnt on the left side. If I put it on the right side and restart debugging, it is there...so I can't reproduce it :/ Can you test it in the current dev build [1]? Thanks!

[1] http://bits.netbeans.org/download/trunk/nightly/latest/
Comment 3 jvenderb 2012-04-04 09:08:52 UTC
If I click on the link the download button is disabled in case of Mac OS X. So I cannot test it on the nightly build.

Just a remark;
After you moved the column 'Name' to the right can you test what happens if you move it back to the left?
Does it remain on the left or is it back on the right again if you start a new debug session?
Comment 4 Ondrej Brejla 2012-04-04 09:16:09 UTC
It remains there, where I put it.
Comment 5 jvenderb 2012-04-04 09:33:25 UTC
I took the OS independent version and took the Netbeans folder from it and put it into my Netbeans.app.
The application starts although with some errors. If I start a  debug session the 'Name' column is on the right. Next I move the column to the left. After that I go to the Breakpoints tab and then back to the Variables tab. The Name column is on the right again. 

Do you need extra information?
Comment 6 jvenderb 2012-04-04 09:35:55 UTC
Extra info:
If I move the column on the development build I get the next error:

java.lang.ArrayIndexOutOfBoundsException: -1
	at org.netbeans.modules.viewmodel.OutlineTable$1.columnMoved(OutlineTable.java:263)
	at javax.swing.table.DefaultTableColumnModel.fireColumnMoved(DefaultTableColumnModel.java:564)
	at javax.swing.table.DefaultTableColumnModel.moveColumn(DefaultTableColumnModel.java:191)
	at javax.swing.plaf.basic.BasicTableHeaderUI$MouseInputHandler.mouseDragged(BasicTableHeaderUI.java:226)
	at java.awt.AWTEventMulticaster.mouseDragged(AWTEventMulticaster.java:302)
	at java.awt.Component.processMouseMotionEvent(Component.java:6421)
	at javax.swing.JComponent.processMouseMotionEvent(JComponent.java:3285)
	at java.awt.Component.processEvent(Component.java:6142)
	at java.awt.Container.processEvent(Container.java:2085)
	at java.awt.Component.dispatchEventImpl(Component.java:4735)
	at java.awt.Container.dispatchEventImpl(Container.java:2143)
	at java.awt.Component.dispatchEvent(Component.java:4565)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4621)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4299)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4212)
	at java.awt.Container.dispatchEventImpl(Container.java:2129)
	at java.awt.Window.dispatchEventImpl(Window.java:2478)
	at java.awt.Component.dispatchEvent(Component.java:4565)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:679)
	at java.awt.EventQueue.access$000(EventQueue.java:85)
	at java.awt.EventQueue$1.run(EventQueue.java:638)
	at java.awt.EventQueue$1.run(EventQueue.java:636)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
	at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
	at java.awt.EventQueue$2.run(EventQueue.java:652)
	at java.awt.EventQueue$2.run(EventQueue.java:650)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:649)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:158)
[catch] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Comment 7 Ondrej Brejla 2012-04-04 09:37:13 UTC
I'm not able to reproduce it right now, if there is no Mac OS X daily build. I'll try it later and if it still occurs, I'll probably reassign it to another component, because PHP Debugger module doesn't handle persistance of these things itself, I think.
Comment 8 Ondrej Brejla 2012-04-04 09:38:35 UTC
Yep, and as you attached an exception log...it seems to be in viewmodel module, probably. So reassigning.
Comment 9 Petr Somol 2012-04-04 10:48:23 UTC
not in my scope. reassigning to Standa from window system - please reassign if viewmodule is not of your concern, thanks.
Comment 10 cymblicity 2012-04-09 20:06:10 UTC
Created attachment 118016 [details]
Screenshot of behavior

Every time I start a php debug session, this is the layout of the columns.  I can drag them to where I need, but I if I end the session and start a new one, it returns to this layout.
Comment 11 schlaefer 2012-05-17 09:34:56 UTC
OS X 10.7.4; Netbeans 7.1.2 (PHP)

I have the same issue and pinned it down to a file: 

~/.netbeans/<netbeans version>/config/Services/org-netbeans-modules-debugger-Settings.properties

Without importing old netbeans data the variable columns are fine and remember their position if you resort them.

But if I import my old netbeans prefs and have the file in place with this content:

debugger.views.DefaultLocalsColumn.columnWidth:595
debugger.views.DefaultLocalsColumn.currentOrderNumber:2
debugger.views.DefaultLocalsColumn.sorted:false
debugger.views.DefaultLocalsColumn.sortedDescending:false
debugger.views.DefaultLocalsColumn.visible:false
debugger.views.LocalsToString.currentOrderNumber:3
debugger.views.LocalsToString.sorted:true
debugger.views.LocalsToString.sortedDescending:false
debugger.views.LocalsToString.visible:true
debugger.views.LocalsType.columnWidth:887
debugger.views.LocalsType.currentOrderNumber:1
debugger.views.LocalsType.sorted:false
debugger.views.LocalsType.sortedDescending:false
debugger.views.LocalsType.visible:false
debugger.views.LocalsValue.columnWidth:595
debugger.views.LocalsValue.currentOrderNumber:0
debugger.views.LocalsValue.sorted:false
debugger.views.LocalsValue.sortedDescending:false
debugger.views.LocalsValue.visible:true

 columns are out of order and resorting them fails.
Comment 12 jvenderb 2012-05-18 07:30:23 UTC
Hi Schlaefer,
This seems to be the problem. After removing the lines from the mentioned file the problem seems to be gone.

Thank you.
Comment 13 Ondrej Brejla 2012-05-18 07:32:52 UTC
So probably it's a problem of old NBs and of the whole debugger support, not just a PHP one, am I right?
Comment 14 Martin Entlicher 2012-06-13 15:06:40 UTC
Thanks for the settings, it helped to identify where is the problem.
It's fixed by changeset:   224378:fb75076d3266
http://hg.netbeans.org/main/rev/fb75076d3266
Comment 15 Quality Engineering 2012-06-14 06:09:44 UTC
Integrated into 'main-golden', will be available in build *201206140001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/fb75076d3266
User: mentlicher@netbeans.org
Log: #210411: Repair the hidden property, if the tree column was set to be hidden in the settings.