Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » different instances of editor were given
different instances of editor were given [message #537655] Thu, 03 June 2010 09:34 Go to next message
adrian  is currently offline adrian Friend
Messages: 93
Registered: August 2009
Member
Hi all ,
When I try to open the editor of my dsl I have this error :
0 [main] ERROR org.eclipse.xtext.ui.editor.CompoundXtextEditorCallback - different instances of editor were given.
java.lang.IllegalStateException: different instances of editor were given.
at org.eclipse.xtext.ui.editor.AbstractDirtyStateAwareEditorCal lback.beforeDispose(AbstractDirtyStateAwareEditorCallback.ja va:37)
at org.eclipse.xtext.ui.editor.CompoundXtextEditorCallback.befo reDispose(CompoundXtextEditorCallback.java:70)
at org.eclipse.xtext.ui.editor.XtextEditor.dispose(XtextEditor. java:382)
at org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:697)
at org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:462)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:595)
at org.eclipse.ui.internal.EditorAreaHelper.setVisibleEditor(Ed itorAreaHelper.java:271)
at org.eclipse.ui.internal.EditorManager.setVisibleEditor(Edito rManager.java:1417)
at org.eclipse.ui.internal.EditorManager$5.runWithException(Edi torManager.java:942)
at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run (StartupThreading.java:31)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:134)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3885)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3506)
at org.eclipse.ui.application.WorkbenchAdvisor.openWindows(Work benchAdvisor.java:803)
at org.eclipse.ui.internal.Workbench$28.runWithException(Workbe nch.java:1384)
at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run (StartupThreading.java:31)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:134)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3885)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3506)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2316)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 21)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
at org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:493)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:113)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:194)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:368)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
at org.eclipse.equinox.launcher.Main.main(Main.java:1287)



I have to to another terminal ID0 like this :
terminal ID0 returns ecore::EString:
ID('.'ID)*;

I have this error only when I use ID0 in my grammar
Have you any idea why this error occurs ? thanks in advance
Re: different instances of editor were given [message #537907 is a reply to message #537655] Fri, 04 June 2010 07:14 Go to previous messageGo to next message
Sven Efftinge is currently offline Sven EfftingeFriend
Messages: 1823
Registered: July 2009
Senior Member
The rule shadows the ID rule. Remove the 'terminal' keyword (i.e. make
it a parser rule) and it will work.

The error is a follow up error obfuscating the cause of the problem.
We need to make sure to present the cause of the problem. I've entered a
bugzilla : https://bugs.eclipse.org/bugs/show_bug.cgi?id=315723

Sven

--
Need professional support for Xtext and EMF?
Go to: http://xtext.itemis.com
Twitter : @svenefftinge
Blog : blog.efftinge.de
Re: different instances of editor were given [message #1243549 is a reply to message #537655] Tue, 11 February 2014 05:43 Go to previous message
anudeep arya is currently offline anudeep aryaFriend
Messages: 49
Registered: March 2013
Member
Hi
i am facing the same issue now.but i don't have anything like duplication in my grammar.(i.e., something like id1 and id0) .

Is there any other possible reason for the error.

By the way when i build my RCP application everything is fine in my system.but when i try the product in another machine i cannot create or open file and it shows this exception

Any help would be appreciated

Thanks and Regards,
Anudeep.
Previous Topic:Very poor UI performance for large files in xtext
Next Topic:Custom Code Overridden - Generator Model
Goto Forum:
  


Current Time: Fri Apr 19 08:29:41 GMT 2024

Powered by FUDForum. Page generated in 0.01291 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top