Bug 6905

Summary: Source does not show up on debugger running "Runtime Workbench"
Product: [Eclipse Project] JDT Reporter: Rodrigo Peretti <rodrigo>
Component: UIAssignee: Erich Gamma <erich_gamma>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Rodrigo Peretti CLA 2001-12-13 14:21:44 EST
build 20011211

Trying to debug a an Ant task provided by PDE Core, I select pde.core 
plugin.xml, choose "Runtime Workbench" from the Debug drop down menu. At the 
time the code hits a breakpoint, the source file does not show up (the editor 
is empty but I can see the breakpoint icon on the side). A dialog appears 
saying an internal error has occurred and that I should look at the log. 
Here's the log:

Log: Thu Dec 13 14:22:18 EST 2001
1 org.eclipse.core.resources 4 Unhandled exception caught in event loop.
Log: Thu Dec 13 14:22:18 EST 2001
4 org.eclipse.ui 0 Failed to execute runnable 
(java.lang.IllegalArgumentException: Index out of bounds)
org.eclipse.swt.SWTException: Failed to execute runnable 
(java.lang.IllegalArgumentException: Index out of bounds)
	at org.eclipse.swt.SWT.error(SWT.java:1887)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages
(Synchronizer.java:96)
	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:1345)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java
(Compiled Code))
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java
(Compiled Code))
	at org.eclipse.ui.internal.Workbench.run(Workbench.java:758)
	at org.eclipse.core.internal.boot.InternalBootLoader.run
(InternalBootLoader.java:820)
	at org.eclipse.core.boot.BootLoader.run(BootLoader.java:285)
	at java.lang.reflect.Method.invoke(Native Method)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:151)
	at org.eclipse.core.launcher.Main.run(Main.java:502)
	at org.eclipse.core.launcher.Main.main(Main.java:362)

I can provide my workspace if necessary.
Comment 1 Rodrigo Peretti CLA 2001-12-13 14:35:35 EST
Seems related to the "Show source of selected element only" (we should have a 
code name for this option SSSEO? :-) problem. If have that option unselected, 
everything works fine.
Comment 2 Erich Gamma CLA 2001-12-14 06:31:10 EST
a patch with a fix is attached to 6855

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