Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 298641 - [IAE] Exception when analyzing accessible EMF metamodels
Summary: [IAE] Exception when analyzing accessible EMF metamodels
Status: CLOSED DUPLICATE of bug 299099
Alias: None
Product: M2T
Classification: Modeling
Component: Xpand (show other bugs)
Version: 0.8.0   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: M6   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-30 06:47 EST by Sebastian Zarnekow CLA
Modified: 2010-02-17 08:35 EST (History)
1 user (show)

See Also:
sebastian.zarnekow: helios+


Attachments
patch (957 bytes, patch)
2010-02-17 08:35 EST, Darius Jockel CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Zarnekow CLA 2009-12-30 06:47:07 EST
I'm on Eclipse 3.6M4 

!ENTRY org.eclipse.core.jobs 4 2 2009-12-30 12:46:25.158
!MESSAGE An internal error occurred during: "Analyzing accessible EMF metamodels for project org.xtext.example.mydsl".
!STACK 0
java.lang.IllegalArgumentException: Attempted to beginRule: P/.org.eclipse.jdt.core.external.folders, does not match outer scope rule: P/org.xtext.example.mydsl
	at org.eclipse.core.runtime.Assert.isLegal(Assert.java:63)
	at org.eclipse.core.internal.jobs.ThreadJob.illegalPush(ThreadJob.java:120)
	at org.eclipse.core.internal.jobs.ThreadJob.push(ThreadJob.java:230)
	at org.eclipse.core.internal.jobs.ImplicitJobs.begin(ImplicitJobs.java:80)
	at org.eclipse.core.internal.jobs.JobManager.beginRule(JobManager.java:232)
	at org.eclipse.core.internal.resources.WorkManager.checkIn(WorkManager.java:117)
	at org.eclipse.core.internal.resources.Workspace.prepareOperation(Workspace.java:1747)
	at org.eclipse.core.internal.resources.Resource.refreshLocal(Resource.java:1522)
	at org.eclipse.xtend.typesystem.emf.ui.ProjectAnalyzer.loadMetamodelsForProject(ProjectAnalyzer.java:125)
	at org.eclipse.xtend.typesystem.emf.ui.ProjectAnalyzer.run(ProjectAnalyzer.java:90)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Comment 1 Sven Efftinge CLA 2010-02-15 08:06:35 EST

*** This bug has been marked as a duplicate of bug 299099 ***
Comment 2 Darius Jockel CLA 2010-02-17 08:35:29 EST
Created attachment 159303 [details]
patch

(In reply to comment #0)
> metamodels for project org.xtext.example.mydsl".

Hello,
I try to reproduce this bug using the xtext project wizard.
I discovered that an ResourceExeption is thown if you create a
project with a name of a project already in workspace, but not imported.

Exception:
!MESSAGE org.eclipse.xtext.ui.util.EclipseResourceUtil  - org.eclipse.core.internal.resources.ResourceException: Resource '/org.xtext.example.mydsl/META-INF' already exists.

The applied patch will prevent this exception.