Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 14401 - crash when double-clicking a .js file
Summary: crash when double-clicking a .js file
Status: RESOLVED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Team (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Kevin McGuire CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 14009
Blocks:
  Show dependency tree
 
Reported: 2002-04-23 09:21 EDT by Marcio CLA
Modified: 2002-08-23 13:08 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marcio CLA 2002-04-23 09:21:54 EDT
Eclipse M5

1) Created a CVS Repo entry for a remote CVS server, access method = ssh, 
external tool
2) expanded the tree under VERSION for that repo, until I gou to a Javascript 
file
3) Double-clicked teh file, got the exception below


java.lang.IllegalArgumentException:
             at
org.eclipse.core.internal.runtime.Assert.isLegal(Assert.java:50)
             at
org.eclipse.core.internal.runtime.Assert.isLegal(Assert.java:35)
             at org.eclipse.core.runtime.Status.setPlugin(Status.java:151)
             at org.eclipse.core.runtime.Status.<init>(Status.java:59)
             at
org.eclipse.ui.editors.text.StorageDocumentProvider.setDocumentContent(StorageDo

cumentProvider.java:83)
             at
org.eclipse.ui.editors.text.StorageDocumentProvider.setDocumentContent(StorageDo

cumentProvider.java:106)
             at
org.eclipse.ui.editors.text.FileDocumentProvider.setDocumentContent(FileDocument

Provider.java:217)
             at
org.eclipse.ui.editors.text.StorageDocumentProvider.createDocument(StorageDocume

ntProvider.java:126)
             at
org.eclipse.ui.editors.text.StorageDocumentProvider.createElementInfo(StorageDoc

umentProvider.java:138)
             at
org.eclipse.ui.editors.text.FileDocumentProvider.createElementInfo(FileDocumentP

rovider.java:379)
             at
org.eclipse.ui.texteditor.AbstractDocumentProvider.connect(AbstractDocumentProvi

der.java:247)
             at
org.eclipse.ui.texteditor.AbstractTextEditor.doSetInput(AbstractTextEditor.java:

1503)
             at
org.eclipse.ui.texteditor.AbstractTextEditor.init(AbstractTextEditor.java:1146)

             at
org.eclipse.ui.internal.EditorManager.createSite(EditorManager.java:485)
             at
org.eclipse.ui.internal.EditorManager.access$1(EditorManager.java:483)
             at
org.eclipse.ui.internal.EditorManager$2.run(EditorManager.java:467)
             at
org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:56)
             at
org.eclipse.ui.internal.EditorManager.openInternalEditor(EditorManager.java:460)

             at
org.eclipse.ui.internal.EditorManager.openInternalEditor(EditorManager.java:529)

             at
org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:361)
             at
org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:264)
             at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:1559)
             at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:1523)
             at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:1515)
             at
org.eclipse.team.internal.ccvs.ui.actions.OpenRemoteFileAction$1.run(OpenRemoteF

ileAction.java:74)
             at
org.eclipse.team.ui.actions.TeamAction$1.run(TeamAction.java:153)
             at
org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:56)
             at
org.eclipse.team.ui.actions.TeamAction.run(TeamAction.java:150)
             at
org.eclipse.team.internal.ccvs.ui.actions.OpenRemoteFileAction.run(OpenRemoteFil

eAction.java:68)
             at
org.eclipse.team.internal.ccvs.ui.RepositoriesView.handleDoubleClick(Repositorie

sView.java:230)
             at
org.eclipse.team.internal.ccvs.ui.RepositoriesView.access$2(RepositoriesView.jav

a:220)
             at
org.eclipse.team.internal.ccvs.ui.RepositoriesView$7.doubleClick(RepositoriesVie

w.java:158)
             at
org.eclipse.jface.viewers.StructuredViewer.fireDoubleClick(StructuredViewer.java

:286)
             at
org.eclipse.jface.viewers.StructuredViewer.handleDoubleSelect(StructuredViewer.j

ava:444)
             at
org.eclipse.jface.viewers.AbstractTreeViewer$1.widgetDefaultSelected(AbstractTre

eViewer.java:627)
             at
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:92)
             at
org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75)
             at
org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637)
             at
org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412)
             at
org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208)
             at
org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:836)
             at org.eclipse.ui.internal.Workbench.run(Workbench.java:819)
             at
org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:77

7)
             at org.eclipse.core.boot.BootLoader.run(BootLoader.java:319)
             at java.lang.reflect.Method.invoke(Native Method)
             at org.eclipse.core.launcher.Main.basicRun(Main.java:190)
             at org.eclipse.core.launcher.Main.run(Main.java:549)
             at org.eclipse.core.launcher.Main.main(Main.java:390)
Comment 1 Jean-Michel Lemieux CLA 2002-04-23 10:17:01 EDT
Why don't we catch exceptions in OpenRemoteFileAction and revert to opening in
default text editor? It's obvious that a lot of editors out there don't support
opening files where the content is not local.
Comment 2 James Moody CLA 2002-04-23 10:22:44 EDT
That *is* the default text editor. We currently have not enabled any code which
opens in the appropriate editor - we always use the text editor.
Comment 3 Kevin McGuire CLA 2002-04-23 15:03:01 EDT
We can't see the real exception due to dependent bug 14235.
Comment 4 Michael Valenta CLA 2002-08-23 13:08:05 EDT
We can't fix this because we don't realy know what happened. Bug 14009 has been 
fixed, so if the bug happens again we'll get the proper stack trace.