Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 361787 - [xtend] Mark occurrences fails after rename refactoring
Summary: [xtend] Mark occurrences fails after rename refactoring
Status: CLOSED FIXED
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 0.7.0   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: M4   Edit
Assignee: Jan Koehnlein CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-24 05:50 EDT by Sebastian Zarnekow CLA
Modified: 2017-09-19 17:25 EDT (History)
2 users (show)

See Also:
jan: juno+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Zarnekow CLA 2011-10-24 05:50:07 EDT
Rename an Xtend class with mark occurrences enabled (you have to be patient).

The following exception is propagated to the user:

org.eclipse.emf.common.util.WrappedException: org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1DiagnosticWrappedException: org.eclipse.core.internal.resources.ResourceException: Resource '/org.eclipse.xtext.xbase.tests/src/org/eclipse/xtext/xbase/tests/typing/SomeCustomTypeProvider.xtend' does not exist.
	at org.eclipse.xtext.ui.editor.findrefs.LoadingResourceAccess.readOnly(LoadingResourceAccess.java:47)
	at org.eclipse.xtext.ui.editor.findrefs.EditorResourceAccess.readOnly(EditorResourceAccess.java:69)
	at org.eclipse.xtext.ui.editor.findrefs.DefaultReferenceFinder.findLocalReferences(DefaultReferenceFinder.java:90)
	at org.eclipse.xtext.ui.editor.occurrences.DefaultOccurrenceComputer$1.exec(DefaultOccurrenceComputer.java:96)
	at org.eclipse.xtext.ui.editor.occurrences.DefaultOccurrenceComputer$1.exec(DefaultOccurrenceComputer.java:1)
	at org.eclipse.xtext.util.concurrent.AbstractReadWriteAcces.readOnly(AbstractReadWriteAcces.java:32)
	at org.eclipse.xtext.ui.editor.model.XtextDocument.readOnly(XtextDocument.java:78)
	at org.eclipse.xtext.ui.editor.occurrences.DefaultOccurrenceComputer.createAnnotationMap(DefaultOccurrenceComputer.java:82)
	at org.eclipse.xtext.ui.editor.occurrences.OccurrenceMarker$MarkOccurrenceJob.run(OccurrenceMarker.java:122)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1DiagnosticWrappedException: org.eclipse.core.internal.resources.ResourceException: Resource '/org.eclipse.xtext.xbase.tests/src/org/eclipse/xtext/xbase/tests/typing/SomeCustomTypeProvider.xtend' does not exist.
	at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.handleDemandLoadException(ResourceSetImpl.java:315)
	at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(ResourceSetImpl.java:274)
	at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResource(ResourceSetImpl.java:397)
	at org.eclipse.xtext.resource.SynchronizedXtextResourceSet.getResource(SynchronizedXtextResourceSet.java:23)
	at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getEObject(ResourceSetImpl.java:216)
	at org.eclipse.xtext.ui.editor.findrefs.DefaultReferenceFinder$1.exec(DefaultReferenceFinder.java:94)
	at org.eclipse.xtext.ui.editor.findrefs.DefaultReferenceFinder$1.exec(DefaultReferenceFinder.java:1)
	at org.eclipse.xtext.ui.editor.findrefs.LoadingResourceAccess.readOnly(LoadingResourceAccess.java:45)
	... 9 more
Caused by: org.eclipse.core.internal.resources.ResourceException: Resource '/org.eclipse.xtext.xbase.tests/src/org/eclipse/xtext/xbase/tests/typing/SomeCustomTypeProvider.xtend' does not exist.
	at org.eclipse.core.internal.resources.Resource.checkExists(Resource.java:320)
	at org.eclipse.core.internal.resources.Resource.checkAccessible(Resource.java:194)
	at org.eclipse.core.internal.resources.File.getContents(File.java:287)
	at org.eclipse.core.internal.resources.File.getContents(File.java:278)
	at org.eclipse.emf.ecore.resource.impl.PlatformResourceURIHandlerImpl$WorkbenchHelper.createPlatformResourceInputStream(PlatformResourceURIHandlerImpl.java:204)
	at org.eclipse.emf.ecore.resource.impl.PlatformResourceURIHandlerImpl.createInputStream(PlatformResourceURIHandlerImpl.java:448)
	at org.eclipse.emf.ecore.resource.impl.ExtensibleURIConverterImpl.createInputStream(ExtensibleURIConverterImpl.java:301)
	at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1254)
	at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoad(ResourceSetImpl.java:255)
	at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(ResourceSetImpl.java:270)
	... 15 more
Comment 1 Jan Koehnlein CLA 2011-11-07 10:02:25 EST
Has that been always reproducible? I cannot reproduce this. maybe that's because I just fixed saving on Xtend class name refactoring.
Comment 2 Jan Koehnlein CLA 2011-11-07 11:39:13 EST
Please reopen if the error pops up again.
Comment 3 Karsten Thoms CLA 2017-09-19 17:14:22 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 4 Karsten Thoms CLA 2017-09-19 17:25:58 EDT
Closing all bugs that were set to RESOLVED before Neon.0