ClassCastException & JobReconcilier [message #1125503] |
Fri, 04 October 2013 15:32 |
|
Hi everybody,
I'm working with the new Papyrus Xtext integration, with celleditor developped for the ModelExplorer, but in my case, I open them in the Papyrus nattable integration.
I manage myself the string error (without using alf).
I'm working with Kepler, using the Xtext integration done for Luna (Xtext 2.4.2).
I get this error when the typed string is not valid, any ideas?
java.lang.ClassCastException: org.eclipse.xtext.nodemodel.impl.LeafNode cannot be cast to org.eclipse.xtext.nodemodel.impl.CompositeNode
at org.eclipse.xtext.nodemodel.impl.NodeModelBuilder.replaceAndTransferLookAhead(NodeModelBuilder.java:338)
at org.eclipse.xtext.parser.impl.PartialParsingHelper.reparse(PartialParsingHelper.java:168)
at org.eclipse.xtext.parser.antlr.AbstractAntlrParser.doReparse(AbstractAntlrParser.java:136)
at org.eclipse.xtext.parser.AbstractParser.reparse(AbstractParser.java:48)
at org.eclipse.xtext.resource.XtextResource.update(XtextResource.java:220)
at org.eclipse.xtext.ui.editor.reconciler.XtextDocumentReconcileStrategy.doReconcile(XtextDocumentReconcileStrategy.java:125)
at org.eclipse.xtext.ui.editor.reconciler.XtextDocumentReconcileStrategy.reconcile(XtextDocumentReconcileStrategy.java:55)
at org.eclipse.xtext.ui.editor.reconciler.XtextReconciler.doRun(XtextReconciler.java:329)
at org.eclipse.xtext.ui.editor.reconciler.XtextReconciler.access$3(XtextReconciler.java:316)
at org.eclipse.xtext.ui.editor.reconciler.XtextReconciler$1.process(XtextReconciler.java:273)
at org.eclipse.xtext.ui.editor.reconciler.XtextReconciler$1.process(XtextReconciler.java:1)
at org.eclipse.xtext.util.concurrent.IUnitOfWork$Void.exec(IUnitOfWork.java:36)
at org.eclipse.xtext.util.concurrent.AbstractReadWriteAcces.modify(AbstractReadWriteAcces.java:81)
at org.eclipse.xtext.ui.editor.model.XtextDocument$XtextDocumentLocker.modify(XtextDocument.java:201)
at org.eclipse.xtext.ui.editor.model.XtextDocument.internalModify(XtextDocument.java:98)
at org.eclipse.xtext.ui.editor.reconciler.XtextReconciler.run(XtextReconciler.java:270)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
|
|
|
Re: ClassCastException & JobReconcilier [message #1137363 is a reply to message #1125503] |
Mon, 14 October 2013 12:44 |
|
I tested on Luna and I get the same problem.
This small grammar provides the exception too :
// automatically generated by Xtext
grammar org.xtext.example.mydsl.MyDsl with org.eclipse.papyrus.uml.alf.Common
import "http://www.eclipse.org/uml2/4.0.0/UML" as uml
import "http://www.eclipse.org/emf/2002/Ecore" as ecore
import "http://www.eclipse.org/uml2/4.0.0/Types" as types
generate myDsl "http://www.xtext.org/example/mydsl/MyDsl"
ConnectorEndRule:
path= [uml::Property] ;
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02751 seconds