Re: Suggestions updated only for first editor tab

Frank-Michael Moser <[email protected]> Thu, 08 Apr 2004 18:24:17 +0200
Newsgroups gmane.comp.java.netbeans.modules.tasklist.devel
Message-ID <[email protected]>
Unfortunately this is not completely true. When I use the 
"FixAll"-action for e.g. multiple "Unused imports" I get the attached 
IndexOutOfBoundsException. After closing the exception dialog and then 
(saving and) compiling the editor tab, so that the output window hides 
the suggestion view, I never get the suggestions view updated again.

Should I attach this and the exception as comment to the issue 41861 or 
is it better to file a separate issue for the exception?

Frank-Michael


Frank-Michael Moser wrote:

> Petr, I have filed a bug:
> http://www.netbeans.org/issues/show_bug.cgi?id=41861
> 
> I checked, as you proposed, whether it is releated to spaces in userdir, 
> and yes - it is. Using -userdir "my-user-dir" in bin/ide.cfg without 
> spaces fixed the problem for me. I added this as a comment to the 
> bug-issue.
> 
> Thanks,
> Frank-Michael
> 
> Petr Kuzel wrote:
> 
>> Frank please fill the bug in Issuezilla. From my quick
>> evaluation it looks like core/windows bug, possibly
>> caused by space character in path. Try to check.
>>
>>   Cc.
>>
>> Frank-Michael Moser wrote:
>>
>>
>>> Using the 3.6RC builds as well as earlier dev build does not update the
>>> suggestions view after editor tabs. So I can only use suggestions once
>>> for the very first class. It als produces a lot of exceptions in ide.log
>>> like this:
>>>
>>>
>>>> [WinSys.PersistenceManager.getTopComponentForID] Problem when
>>>> [deserializing TopComponent for tcID:'Errors'. Reason: Top component
>>>> [Errors could not be located or loaded from Components folder.
>>>> INFORMATIONAL *********** Exception occurred ************ at Fri Apr 02
>>>> 14:57:03 CEST 2004 java.io.FileNotFoundException: Top component Errors
>>>> could not be located or loaded from Components folder.
>>>> [catch] at
>>>> [org.netbeans.core.windows.persistence.PersistenceManager.getTopComponentPersistentForID(PersistenceManager.java:492) 
>>>>
>>>> at
>>>> org.netbeans.core.windows.persistence.PersistenceManager.getTopComponentForID(PersistenceManager.java:570) 
>>>>
>>>> at ... at 
>>>> org.netbeans.core.windows.ModeImpl.dockInto(ModeImpl.java:120)
>>>> at
>>>> org.netbeans.modules.tasklist.core.TaskListView.showInMode(TaskListView.java:1024) 
>>>>
>>>> at
>>>> org.netbeans.modules.tasklist.suggestions.ui.SuggestionsAction.show(SuggestionsAction.java:61) 
>>>>
>>>> at
>>>> org.netbeans.modules.tasklist.suggestions.ui.SuggestionsAction.performAction(SuggestionsAction.java:47) 
>>>>
>>>> at
>>>> org.openide.util.actions.CallableSystemAction$1.run(CallableSystemAction.java:78) 
>>>>
>>>> at ... at 
>>>> java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
>>>
>>>
>>> I have attached the complete ide.log.
>>>
>>> Neither reopening suggestions nor reopening java source files help.
>>> Unfortunately suggestions so are useless.
>>>
>>> Frank-Michael
>>
>>
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
exception.txt (text/plain, 2.8 KB)
java.lang.IndexOutOfBoundsException: Index: 49, Size: 49
	at java.util.ArrayList.RangeCheck(ArrayList.java:507)
	at java.util.ArrayList.get(ArrayList.java:324)
	at org.netbeans.modules.tasklist.core.TaskList.fireRemoved(TaskList.java:275)
	at org.netbeans.modules.tasklist.core.Task.fireRemovedTask(Task.java:213)
	at org.netbeans.modules.tasklist.core.Task.removeSubtask(Task.java:424)
	at org.netbeans.modules.tasklist.core.TaskList.addRemove(TaskList.java:121)
	at org.netbeans.modules.tasklist.suggestions.DefaultSuggestionManager.register(DefaultSuggestionManager.java:274)
	at org.netbeans.modules.tasklist.suggestions.FixAction.performAction(FixAction.java:317)
	at org.openide.util.actions.NodeAction.performAction(NodeAction.java:193)
	at org.openide.util.actions.CallableSystemAction$1.run(CallableSystemAction.java:78)
	at org.openide.util.actions.CallableSystemAction.doPerformAction(CallableSystemAction.java:116)
	at org.openide.util.actions.CallableSystemAction.actionPerformed(CallableSystemAction.java:76)
	at org.openide.util.actions.NodeAction.actionPerformed(NodeAction.java:184)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
	at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
	at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)
	at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:232)
	at java.awt.Component.processMouseEvent(Component.java:5100)
	at org.openide.awt.ToolbarButton.processMouseEvent(ToolbarButton.java:29)
	at java.awt.Component.processEvent(Component.java:4897)
	at java.awt.Container.processEvent(Container.java:1569)
	at java.awt.Component.dispatchEventImpl(Component.java:3615)
	at java.awt.Container.dispatchEventImpl(Container.java:1627)
	at java.awt.Component.dispatchEvent(Component.java:3477)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
	at java.awt.Container.dispatchEventImpl(Container.java:1613)
	at java.awt.Window.dispatchEventImpl(Window.java:1606)
	at java.awt.Component.dispatchEvent(Component.java:3477)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
[catch] at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)