Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 322830 - ResourceException looking up source for unchanged element
Summary: ResourceException looking up source for unchanged element
Status: RESOLVED WORKSFORME
Alias: None
Product: JSDT
Classification: WebTools
Component: Debug (show other bugs)
Version: 3.2   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Michael Rennie CLA
QA Contact: Simon Kaegi CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-16 15:25 EDT by Michael Rennie CLA
Modified: 2011-04-28 16:04 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Rennie CLA 2010-08-16 15:25:23 EDT
code from HEAD

if we try to look up source in the 'External JavaScript Source' project and it already exists, we try to create the folder structure again (blindly), leading to the following exception:

org.eclipse.core.internal.resources.ResourceException: Resource '/External JavaScript Source/1374066884' already exists.
at org.eclipse.core.internal.resources.Resource.checkDoesNotExist(Resource.java:305)
at org.eclipse.core.internal.resources.Resource.checkDoesNotExist(Resource.java:292)
at org.eclipse.core.internal.resources.Folder.assertCreateRequirements(Folder.java:30)
at org.eclipse.core.internal.resources.Folder.create(Folder.java:95)
at org.eclipse.core.internal.resources.Folder.create(Folder.java:125)
at org.eclipse.wst.jsdt.debug.internal.core.launching.SourceLookup.getExternalSource(SourceLookup.java:106)
at org.eclipse.wst.jsdt.debug.internal.rhino.ui.source.RhinoSourceLookupParticipant.findSourceElements(RhinoSourceLookupParticipant.java:53)
at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:141)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:490)
at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:758)
at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:148)
at org.eclipse.debug.ui.DebugUITools.lookupSource(DebugUITools.java:777)
at org.eclipse.debug.internal.ui.elements.adapters.StackFrameSourceDisplayAdapter$SourceLookupJob.run(StackFrameSourceDisplayAdapter.java:109)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Comment 1 Michael Rennie CLA 2011-04-28 16:04:18 EDT
I have not seen this in quite some time since we re-wrote a lot of the source lookup code.

Marking as worksforme