Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » problem of coloration keywords
problem of coloration keywords [message #1724630] Wed, 24 February 2016 22:45 Go to next message
salha salha is currently offline salha salhaFriend
Messages: 97
Registered: February 2016
Member
I write my dsl and I do the generation when I write the program is not all keywords is colored. is that there qualqu'un who can help me.
Re: problem of coloration keywords [message #1724638 is a reply to message #1724630] Thu, 25 February 2016 04:46 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
Hi which platform do you talk about (eclipse idea web) and how does the grammar construct look like that does not get proper highlighted

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: problem of coloration keywords [message #1724654 is a reply to message #1724638] Thu, 25 February 2016 10:09 Go to previous messageGo to next message
salha salha is currently offline salha salhaFriend
Messages: 97
Registered: February 2016
Member
eclipse xtext
Re: problem of coloration keywords [message #1724659 is a reply to message #1724654] Thu, 25 February 2016 10:27 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
can you share a reproducing grammar?

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: problem of coloration keywords [message #1724661 is a reply to message #1724659] Thu, 25 February 2016 10:35 Go to previous messageGo to next message
salha salha is currently offline salha salhaFriend
Messages: 97
Registered: February 2016
Member
what is ciculate should be colored
  • Attachment: grammer.png
    (Size: 23.44KB, Downloaded 111 times)

[Updated on: Thu, 25 February 2016 10:39]

Report message to a moderator

Re: problem of coloration keywords [message #1724663 is a reply to message #1724661] Thu, 25 February 2016 10:43 Go to previous messageGo to next message
salha salha is currently offline salha salhaFriend
Messages: 97
Registered: February 2016
Member
hello i post the grammar
Re: problem of coloration keywords [message #1724666 is a reply to message #1724663] Thu, 25 February 2016 10:51 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
no i actually mean your grammar not the model.
non the less the right point to start debugging is DefaultAntlrTokenToAttributeIdMapper


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: problem of coloration keywords [message #1724683 is a reply to message #1724666] Thu, 25 February 2016 12:51 Go to previous messageGo to next message
salha salha is currently offline salha salhaFriend
Messages: 97
Registered: February 2016
Member
i don't unrestand you mean that the problem is in the grammar or what???
Re: problem of coloration keywords [message #1724684 is a reply to message #1724683] Thu, 25 February 2016 13:04 Go to previous messageGo to next message
salha salha is currently offline salha salhaFriend
Messages: 97
Registered: February 2016
Member
please any help !!
Re: problem of coloration keywords [message #1724685 is a reply to message #1724684] Thu, 25 February 2016 13:07 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
i still have no grammar

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: problem of coloration keywords [message #1724686 is a reply to message #1724685] Thu, 25 February 2016 13:11 Go to previous messageGo to next message
salha salha is currently offline salha salhaFriend
Messages: 97
Registered: February 2016
Member
i speak about the model not the grammar
Re: problem of coloration keywords [message #1724687 is a reply to message #1724686] Thu, 25 February 2016 13:12 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
yes but i need a grammar and a model to reproduce your problem.

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: problem of coloration keywords [message #1724688 is a reply to message #1724687] Thu, 25 February 2016 13:19 Go to previous messageGo to next message
salha salha is currently offline salha salhaFriend
Messages: 97
Registered: February 2016
Member
you don't have an idea waht can be the problem i have a problem just in the coloration like waht i post the msg
Re: problem of coloration keywords [message #1724689 is a reply to message #1724688] Thu, 25 February 2016 13:21 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
as i said: DefaultAntlrTokenToAttributeIdMapper does not make its job

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: problem of coloration keywords [message #1724690 is a reply to message #1724689] Thu, 25 February 2016 13:23 Go to previous messageGo to next message
salha salha is currently offline salha salhaFriend
Messages: 97
Registered: February 2016
Member
that is maen that the problem is in grammar
Re: problem of coloration keywords [message #1724691 is a reply to message #1724690] Thu, 25 February 2016 13:25 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
or a bug. but with no grammar i cannot see that.

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: problem of coloration keywords [message #1724692 is a reply to message #1724691] Thu, 25 February 2016 13:29 Go to previous messageGo to next message
salha salha is currently offline salha salhaFriend
Messages: 97
Registered: February 2016
Member
!SESSION 2016-02-25 11:20:41.757 -----------------------------------------------
eclipse.buildId=M20110210-1200
java.version=1.5.0_22
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=fr_FR
Framework arguments: -product org.eclipse.sdk.ide
Command-line arguments: -product org.eclipse.sdk.ide -data C:\Users\mabrouk\Desktop\Nouveau dossier\eclipsehelio avec atl\workspace/../runtime-EclipseApplication -dev file:C:/Users/mabrouk/Desktop/Nouveau dossier/eclipsehelio avec atl/workspace/.metadata/.plugins/org.eclipse.pde.core/Eclipse Application/dev.properties -os win32 -ws win32 -arch x86 -consoleLog

!ENTRY org.eclipse.emf.ecore 2 0 2016-02-25 11:21:01.067
!MESSAGE Both 'org.xtext.example.bismAllah' and 'org.xtext.example.cv' register a package for 'http://www.xtext.org/example/mydsl3/MyDsl'

!ENTRY org.eclipse.emf.ecore 2 0 2016-02-25 11:21:01.118
!MESSAGE Both 'org.xtext.example.cv' and 'org.xtext.example.foufou' register a package for 'http://www.xtext.org/example/mydsl3/MyDsl'

!ENTRY org.eclipse.emf.ecore 2 0 2016-02-25 11:21:01.119
!MESSAGE Both 'org.xtext.example.foufou' and 'org.xtext.example.lolo' register a package for 'http://www.xtext.org/example/mydsl3/MyDsl'

!ENTRY org.eclipse.emf.ecore 2 0 2016-02-25 11:21:01.120
!MESSAGE Both 'org.xtext.example.lolo' and 'org.xtext.example.mama' register a package for 'http://www.xtext.org/example/mydsl3/MyDsl'

!ENTRY org.eclipse.emf.ecore 2 0 2016-02-25 11:21:01.122
!MESSAGE Both 'org.xtext.automate.mydsl' and 'org.xtext.example.mydsl' register a package for 'http://www.xtext.org/example/mydsl/MyDsl'

!ENTRY org.eclipse.emf.ecore 2 0 2016-02-25 11:21:01.129
!MESSAGE Both 'org.xtext.example.mama' and 'org.xtext.example.ouya' register a package for 'http://www.xtext.org/example/mydsl3/MyDsl'

!ENTRY org.eclipse.emf.ecore 2 0 2016-02-25 11:21:01.131
!MESSAGE Both 'org.xtext.example.ouya' and 'org.xtext.example.papa' register a package for 'http://www.xtext.org/example/mydsl3/MyDsl'

!ENTRY org.eclipse.emf.ecore 2 0 2016-02-25 11:21:01.132
!MESSAGE Both 'org.xtext.example.papa' and 'org.xtext.example.armani' register a package for 'http://www.xtext.org/example/mydsl3/MyDsl'

!ENTRY org.eclipse.emf.ecore 2 0 2016-02-25 11:21:01.133
!MESSAGE Both 'org.xtext.example.armani' and 'org.xtext.example.cvp' register a package for 'http://www.xtext.org/example/mydsl3/MyDsl'

!ENTRY org.eclipse.emf.ecore 2 0 2016-02-25 11:21:01.136
!MESSAGE Both 'org.xtext.example.cvp' and 'org.xtext.example.ddk' register a package for 'http://www.xtext.org/example/mydsl3/MyDsl'

!ENTRY org.eclipse.emf.ecore 2 0 2016-02-25 11:21:01.138
!MESSAGE Both 'org.xtext.example.ddk' and 'org.xtext.example.fifi' register a package for 'http://www.xtext.org/example/mydsl3/MyDsl'

!ENTRY org.eclipse.emf.ecore 2 0 2016-02-25 11:21:01.140
!MESSAGE Both 'org.xtext.example.fifi' and 'org.xtext.example.kaka' register a package for 'http://www.xtext.org/example/mydsl3/MyDsl'

!ENTRY org.eclipse.emf.ecore 2 0 2016-02-25 11:21:01.141
!MESSAGE Both 'org.xtext.example.kaka' and 'org.xtext.example.my' register a package for 'http://www.xtext.org/example/mydsl3/MyDsl'

!ENTRY org.eclipse.emf.ecore 2 0 2016-02-25 11:21:01.143
!MESSAGE Both 'org.xtext.example.my' and 'org.xtext.example.nn' register a package for 'http://www.xtext.org/example/mydsl3/MyDsl'

!ENTRY org.eclipse.emf.ecore 2 0 2016-02-25 11:21:01.144
!MESSAGE Both 'org.xtext.example.nn' and 'org.xtext.example.pl' register a package for 'http://www.xtext.org/example/mydsl3/MyDsl'

!ENTRY org.eclipse.emf.ecore 2 0 2016-02-25 11:21:01.145
!MESSAGE Both 'org.xtext.example.pl' and 'org.xtext.example.ppo' register a package for 'http://www.xtext.org/example/mydsl3/MyDsl'

!ENTRY org.eclipse.emf.ecore 2 0 2016-02-25 11:21:01.147
!MESSAGE Both 'org.xtext.example.ppo' and 'org.xtext.example.ra' register a package for 'http://www.xtext.org/example/mydsl3/MyDsl'

!ENTRY org.eclipse.emf.ecore 2 0 2016-02-25 11:21:01.148
!MESSAGE Both 'org.xtext.example.ra' and 'org.xtext.example.xt' register a package for 'http://www.xtext.org/example/mydsl3/MyDsl'

!ENTRY org.eclipse.emf.ecore 2 0 2016-02-25 11:21:01.153
!MESSAGE Both 'org.xtext.automate.mydsl.ui' and 'org.xtext.example.mydsl.ui' register an extension parser for 'mydsl'
0 [main] WARN org.eclipse.xtext.internal.ExtensionResourceServiceProviderRegistryReader - Both 'org.xtext.automate.mydsl.ui' and 'org.xtext.example.mydsl.ui' register a content parser for 'mydsl'

!ENTRY org.apache.log4j 2 0 2016-02-25 11:21:01.414
!MESSAGE org.eclipse.xtext.internal.ExtensionResourceServiceProviderRegistryReader - Both 'org.xtext.automate.mydsl.ui' and 'org.xtext.example.mydsl.ui' register a content parser for 'mydsl'


!ENTRY org.eclipse.emf.ecore 2 0 2016-02-25 11:21:14.357
!MESSAGE org.xtext.example.mydsl3.myDsl.impl.MyDslFactoryImpl
!STACK 0
java.lang.ClassCastException: org.xtext.example.mydsl3.myDsl.impl.MyDslFactoryImpl
at org.xtext.example.mydsl3.myDsl.impl.MyDslFactoryImpl.init(MyDslFactoryImpl.java:37)
at org.xtext.example.mydsl3.myDsl.MyDslFactory.<clinit>(MyDslFactory.java:27)
at org.xtext.example.mydsl3.myDsl.impl.MyDslPackageImpl.<init>(MyDslPackageImpl.java:523)
at org.xtext.example.mydsl3.myDsl.impl.MyDslPackageImpl.init(MyDslPackageImpl.java:550)
at org.xtext.example.mydsl3.myDsl.MyDslPackage.<clinit>(MyDslPackage.java:61)
at org.xtext.example.mydsl3.validation.AbstractMyDslJavaValidator.getEPackages(AbstractMyDslJavaValidator.java:16)
at org.eclipse.xtext.validation.AbstractInjectableValidator.register(AbstractInjectableValidator.java:28)
at $org.eclipse.xtext.validation.AbstractInjectableValidator$$FastClassByGuice$$2999770a.invoke(<generated>)
at com.google.inject.internal.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
at com.google.inject.SingleMethodInjector$1.invoke(SingleMethodInjector.java:59)
at com.google.inject.SingleMethodInjector.inject(SingleMethodInjector.java:91)
at com.google.inject.MembersInjectorImpl.injectMembers(MembersInjectorImpl.java:99)
at com.google.inject.ConstructorInjector.construct(ConstructorInjector.java:94)
at com.google.inject.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:111)
at com.google.inject.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:45)
at com.google.inject.InjectorImpl.callInContext(InjectorImpl.java:811)
at com.google.inject.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:42)
at com.google.inject.Scopes$1$1.get(Scopes.java:54)
at com.google.inject.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:48)
at com.google.inject.InjectorBuilder$1.call(InjectorBuilder.java:200)
at com.google.inject.InjectorBuilder$1.call(InjectorBuilder.java:194)
at com.google.inject.InjectorImpl.callInContext(InjectorImpl.java:804)
at com.google.inject.InjectorBuilder.loadEagerSingletons(InjectorBuilder.java:194)
at com.google.inject.InjectorBuilder.injectDynamically(InjectorBuilder.java:176)
at com.google.inject.InjectorBuilder.build(InjectorBuilder.java:113)
at com.google.inject.Guice.createInjector(Guice.java:92)
at com.google.inject.Guice.createInjector(Guice.java:69)
at com.google.inject.Guice.createInjector(Guice.java:59)
at org.xtext.example.mydsl3.ui.internal.MyDslActivator.start(MyDslActivator.java:38)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:783)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:774)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:755)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:370)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:284)
at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:417)
at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:265)
at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:106)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:453)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)
at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:393)
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:469)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:338)
at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:232)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1197)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:904)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
at org.eclipse.emf.ecore.plugin.RegistryReader$PluginClassDescriptor.createInstance(RegistryReader.java:172)
at org.eclipse.emf.ecore.plugin.RegistryReader$ResourceFactoryDescriptor.createFactory(RegistryReader.java:194)
at org.eclipse.emf.ecore.resource.impl.ResourceFactoryRegistryImpl.convert(ResourceFactoryRegistryImpl.java:99)
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$2.delegatedGetFactory(ResourceSetImpl.java:449)
at org.eclipse.emf.ecore.resource.impl.ResourceFactoryRegistryImpl.getFactory(ResourceFactoryRegistryImpl.java:151)
at org.eclipse.emf.ecore.resource.impl.ResourceFactoryRegistryImpl.getFactory(ResourceFactoryRegistryImpl.java:92)
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.createResource(ResourceSetImpl.java:422)
at org.eclipse.xtext.ui.editor.model.ResourceForIEditorInputFactory.createResource(ResourceForIEditorInputFactory.java:75)
at org.eclipse.xtext.ui.editor.model.ResourceForIEditorInputFactory.createResourceFor(ResourceForIEditorInputFactory.java:69)
at org.eclipse.xtext.ui.editor.model.ResourceForIEditorInputFactory.createResource(ResourceForIEditorInputFactory.java:61)
at org.eclipse.xtext.ui.editor.model.JavaClassPathResourceForIEditorInputFactory.createResource(JavaClassPathResourceForIEditorInputFactory.java:37)
at org.eclipse.xtext.ui.editor.model.ResourceForIEditorInputFactory.createResource(ResourceForIEditorInputFactory.java:49)
at org.eclipse.xtext.ui.editor.model.XtextDocumentProvider.setDocumentContent(XtextDocumentProvider.java:102)
at org.eclipse.ui.editors.text.StorageDocumentProvider.createDocument(StorageDocumentProvider.java:229)
at org.eclipse.ui.editors.text.FileDocumentProvider.createElementInfo(FileDocumentProvider.java:735)
at org.eclipse.xtext.ui.editor.model.XtextDocumentProvider.createElementInfo(XtextDocumentProvider.java:131)
at org.eclipse.ui.texteditor.AbstractDocumentProvider.connect(AbstractDocumentProvider.java:400)
at org.eclipse.ui.texteditor.AbstractTextEditor.doSetInput(AbstractTextEditor.java:4056)
at org.eclipse.ui.texteditor.StatusTextEditor.doSetInput(StatusTextEditor.java:217)
at org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.doSetInput(AbstractDecoratedTextEditor.java:1444)
at org.eclipse.ui.editors.text.TextEditor.doSetInput(TextEditor.java:169)
at org.eclipse.xtext.ui.editor.XtextEditor.doSetInput(XtextEditor.java:149)
at org.eclipse.ui.texteditor.AbstractTextEditor$19.run(AbstractTextEditor.java:3043)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
at org.eclipse.jface.window.ApplicationWindow$1.run(ApplicationWindow.java:759)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.jface.window.ApplicationWindow.run(ApplicationWindow.java:756)
at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:2606)
at org.eclipse.ui.texteditor.AbstractTextEditor.internalInit(AbstractTextEditor.java:3061)
at org.eclipse.ui.texteditor.AbstractTextEditor.init(AbstractTextEditor.java:3088)
at org.eclipse.xtext.ui.editor.XtextEditor.init(XtextEditor.java:169)
at org.eclipse.ui.internal.EditorManager.createSite(EditorManager.java:798)
at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:647)
at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
at org.eclipse.ui.internal.EditorAreaHelper.setVisibleEditor(EditorAreaHelper.java:271)
at org.eclipse.ui.internal.EditorManager.setVisibleEditor(EditorManager.java:1429)
at org.eclipse.ui.internal.EditorManager$5.runWithException(EditorManager.java:942)
at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4041)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3660)
at org.eclipse.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.java:803)
at org.eclipse.ui.internal.Workbench$31.runWithException(Workbench.java:1567)
at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4041)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3660)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2548)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
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(EclipseStarter.java:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.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:620)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
at org.eclipse.equinox.launcher.Main.run(Main.java:1408)
at org.eclipse.equinox.launcher.Main.main(Main.java:1384)

!ENTRY org.eclipse.ui.workbench 2 0 2016-02-25 11:21:20.282
!MESSAGE A handler conflict occurred. This may disable some commands.
!SUBENTRY 1 org.eclipse.ui.workbench 2 0 2016-02-25 11:21:20.282
!MESSAGE Conflict for 'org.eclipse.xtext.ui.editor.FindReferences':
HandlerActivation(commandId=org.eclipse.xtext.ui.editor.FindReferences,
handler=org.xtext.example.mydsl3.ui.MyDslExecutableExtensionFactory:org.eclipse.xtext.ui.editor.findrefs.FindReferencesHandler,
expression=org.eclipse.core.internal.expressions.ReferenceExpression@ec25e86d,sourcePriority=65536)
HandlerActivation(commandId=org.eclipse.xtext.ui.editor.FindReferences,
handler=org.xtext.example.mydsl3.ui.MyDslExecutableExtensionFactory:org.eclipse.xtext.ui.editor.findrefs.FindReferencesHandler,
expression=org.eclipse.core.internal.expressions.ReferenceExpression@ec25e86d,sourcePriority=65536)
!SUBENTRY 1 org.eclipse.ui.workbench 2 0 2016-02-25 11:21:20.283
!MESSAGE Conflict for 'org.eclipse.xtext.ui.editor.hyperlinking.OpenDeclaration':
HandlerActivation(commandId=org.eclipse.xtext.ui.editor.hyperlinking.OpenDeclaration,
handler=org.xtext.example.mydsl3.ui.MyDslExecutableExtensionFactory:org.eclipse.xtext.ui.editor.hyperlinking.OpenDeclarationHandler,
expression=org.eclipse.core.internal.expressions.ReferenceExpression@ec25e86d,sourcePriority=65536)
HandlerActivation(commandId=org.eclipse.xtext.ui.editor.hyperlinking.OpenDeclaration,
handler=org.xtext.example.mydsl3.ui.MyDslExecutableExtensionFactory:org.eclipse.xtext.ui.editor.hyperlinking.OpenDeclarationHandler,
expression=org.eclipse.core.internal.expressions.ReferenceExpression@ec25e86d,sourcePriority=65536)
!SUBENTRY 1 org.eclipse.ui.workbench 2 0 2016-02-25 11:21:20.283
!MESSAGE Conflict for 'org.eclipse.xtext.ui.editor.outline.QuickOutline':
HandlerActivation(commandId=org.eclipse.xtext.ui.editor.outline.QuickOutline,
handler=org.xtext.example.mydsl3.ui.MyDslExecutableExtensionFactory:org.eclipse.xtext.ui.editor.outline.quickoutline.ShowQuickOutlineActionHandler,
expression=org.eclipse.core.internal.expressions.ReferenceExpression@ec25e86d,sourcePriority=65536)
HandlerActivation(commandId=org.eclipse.xtext.ui.editor.outline.QuickOutline,
handler=org.xtext.example.mydsl3.ui.MyDslExecutableExtensionFactory:org.eclipse.xtext.ui.editor.outline.quickoutline.ShowQuickOutlineActionHandler,
expression=org.eclipse.core.internal.expressions.ReferenceExpression@ec25e86d,sourcePriority=65536)
!SUBENTRY 1 org.eclipse.ui.workbench 2 0 2016-02-25 11:21:20.283
!MESSAGE Conflict for 'org.xtext.example.mydsl3.MyDsl.validate':
HandlerActivation(commandId=org.xtext.example.mydsl3.MyDsl.validate,
handler=org.xtext.example.mydsl3.ui.MyDslExecutableExtensionFactory:org.eclipse.xtext.ui.editor.handler.ValidateActionHandler,
expression=org.eclipse.core.internal.expressions.ReferenceExpression@ec25e86d,sourcePriority=65536)
HandlerActivation(commandId=org.xtext.example.mydsl3.MyDsl.validate,
handler=org.xtext.example.mydsl3.ui.MyDslExecutableExtensionFactory:org.eclipse.xtext.ui.editor.handler.ValidateActionHandler,
expression=org.eclipse.core.internal.expressions.ReferenceExpression@ec25e86d,sourcePriority=65536)
Re: problem of coloration keywords [message #1724693 is a reply to message #1724692] Thu, 25 February 2016 13:33 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
seems you have two dsls mydsl

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: problem of coloration keywords [message #1724694 is a reply to message #1724692] Thu, 25 February 2016 13:35 Go to previous messageGo to next message
salha salha is currently offline salha salhaFriend
Messages: 97
Registered: February 2016
Member
and when i run my grammar i don't have a problem
0 [main] INFO lipse.emf.mwe.utils.StandaloneSetup - Registering platform uri 'C:\Users\mabrouk\Desktop\Nouveau dossier\eclipsehelio avec atl\workspace'
83680 [main] INFO ipse.emf.mwe.utils.DirectoryCleaner - Cleaning C:\Users\mabrouk\Desktop\Nouveau dossier\eclipsehelio avec atl\workspace\org.xtext.example.pl\..\org.xtext.example.pl\src-gen
85583 [main] INFO ipse.emf.mwe.utils.DirectoryCleaner - Cleaning C:\Users\mabrouk\Desktop\Nouveau dossier\eclipsehelio avec atl\workspace\org.xtext.example.pl\..\org.xtext.example.pl.ui\src-gen
85948 [main] INFO ipse.xtext.generator.LanguageConfig - generating infrastructure for org.xtext.example.mydsl3.MyDsl with fragments : ImplicitRuntimeFragment, ImplicitUiFragment, GrammarAccessFragment, EcoreGeneratorFragment, ParseTreeConstructorFragment, ResourceFactoryFragment, XtextAntlrGeneratorFragment, JavaValidatorFragment, ImportNamespacesScopingFragment, QualifiedNamesFragment, BuilderIntegrationFragment, FormatterFragment, LabelProviderFragment, TransformerFragment, OutlineNodeAdapterFactoryFragment, QuickOutlineFragment, QuickfixProviderFragment, JavaBasedContentAssistFragment, XtextAntlrUiGeneratorFragment
123130 [main] INFO or.validation.JavaValidatorFragment - executing generate for org.eclipse.xtext.generator.validation.JavaValidatorFragment
136290 [main] INFO .emf.mwe2.runtime.workflow.Workflow - Done.
Re: problem of coloration keywords [message #1724695 is a reply to message #1724694] Thu, 25 February 2016 13:38 Go to previous messageGo to next message
salha salha is currently offline salha salhaFriend
Messages: 97
Registered: February 2016
Member
i should remove the other dsl?
Re: problem of coloration keywords [message #1724696 is a reply to message #1724694] Thu, 25 February 2016 13:38 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
yes that is fine. but depending on your grammar xtext may not recongize the stuff as keyword. this is why i cannot help you without a grammar i can take.

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: problem of coloration keywords [message #1724699 is a reply to message #1724696] Thu, 25 February 2016 13:44 Go to previous messageGo to next message
salha salha is currently offline salha salhaFriend
Messages: 97
Registered: February 2016
Member
i can't give you don't no what can be the problem i can give you the expression when i have a problem
Re: problem of coloration keywords [message #1724700 is a reply to message #1724692] Thu, 25 February 2016 13:43 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

Names such as 'http://www.xtext.org/example/mydsl3/MyDsl' should be
unique. Bad things happen when they aren't.

Just imagine that your bank used "salha salha" as the account name for
many accounts. You would be a bit disappointed if your salary was paid
to the 'wrong' "salha salha".

Regards

Ed Willink
Re: problem of coloration keywords [message #1724701 is a reply to message #1724699] Thu, 25 February 2016 13:46 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
did you debug the token mapper as i suggested? do you have custom terminals in your grammar?

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: problem of coloration keywords [message #1724702 is a reply to message #1724701] Thu, 25 February 2016 13:47 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
and if you create a test dsl simply close the other ones)

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: problem of coloration keywords [message #1724703 is a reply to message #1724699] Thu, 25 February 2016 13:48 Go to previous messageGo to next message
salha salha is currently offline salha salhaFriend
Messages: 97
Registered: February 2016
Member
ok thanks Ed Willink i should remove the other project i going to try that
Re: problem of coloration keywords [message #1724705 is a reply to message #1724703] Thu, 25 February 2016 13:52 Go to previous messageGo to next message
salha salha is currently offline salha salhaFriend
Messages: 97
Registered: February 2016
Member
how i debug the token mapper Christian Dietrich??
Re: problem of coloration keywords [message #1724706 is a reply to message #1724705] Thu, 25 February 2016 13:57 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
simply set a breakpoint in its methods.

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: problem of coloration keywords [message #1724707 is a reply to message #1724705] Thu, 25 February 2016 13:57 Go to previous messageGo to next message
salha salha is currently offline salha salhaFriend
Messages: 97
Registered: February 2016
Member
yes i have a custom terminals in my grammar
Re: problem of coloration keywords [message #1724708 is a reply to message #1724707] Thu, 25 February 2016 14:02 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
how do they look like?

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: problem of coloration keywords [message #1724710 is a reply to message #1724708] Thu, 25 February 2016 14:11 Go to previous messageGo to next message
salha salha is currently offline salha salhaFriend
Messages: 97
Registered: February 2016
Member
LiteralConstant:
INT | FLOAT | STRING
| 'true' | 'false'
;
Re: problem of coloration keywords [message #1724712 is a reply to message #1724710] Thu, 25 February 2016 14:16 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
no that looks ok.

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: problem of coloration keywords [message #1724714 is a reply to message #1724712] Thu, 25 February 2016 14:25 Go to previous messageGo to next message
salha salha is currently offline salha salhaFriend
Messages: 97
Registered: February 2016
Member
i going to remove the other project thanks Christian Dietrich
Re: problem of coloration keywords [message #1724716 is a reply to message #1724714] Thu, 25 February 2016 14:41 Go to previous messageGo to next message
salha salha is currently offline salha salhaFriend
Messages: 97
Registered: February 2016
Member
thanks lot for you , it works Smile
Re: problem of coloration keywords [message #1724717 is a reply to message #1724716] Thu, 25 February 2016 14:43 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
so that actually was the problem ? having registered stuff for ".mydsl" twice?

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: problem of coloration keywords [message #1724721 is a reply to message #1724717] Thu, 25 February 2016 15:01 Go to previous messageGo to next message
salha salha is currently offline salha salhaFriend
Messages: 97
Registered: February 2016
Member
yes i remove all the project except one and it work like what said Ed Willink Names such as 'http://www.xtext.org/example/mydsl3/MyDsl' should be
unique. Bad things happen when they aren't.
Re: problem of coloration keywords [message #1724782 is a reply to message #1724721] Fri, 26 February 2016 03:16 Go to previous message
Weihua Fan is currently offline Weihua FanFriend
Messages: 18
Registered: December 2015
Junior Member
Can u post your grammar file or a grammar that can reproduce the issue?
Previous Topic:Xtext 2.8.4 with Maven but without Tycho
Next Topic:Issues with Clean & Auto Build in Xtext 2.9
Goto Forum:
  


Current Time: Thu Mar 28 14:29:28 GMT 2024

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

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

Back to the top