| Cannot cast to XbaseScopeProvider [message #836678] |
Wed, 04 April 2012 15:38  |
Gregor Frey Messages: 12 Registered: April 2012 |
Junior Member |
|
|
Hi,
I declare a DataType by a reference to JavaTypes like:
DataType:
'DataType' name=QualifiedName ':' type=JvmTypeReference;
When I use the code completion in the editor like here:
Element Name : Name
defined by the rule:
Element:
'Element' name=ID ':' type=[DataType];
the code completion raises a class cast exception:
!ENTRY org.apache.log4j 2 0 2012-04-04 21:25:30.331
!MESSAGE org.eclipse.xtext.ui.editor.contentassist.AbstractJavaBasedContentProposalProvider - Error in polymorphic dispatcher : de.makkiato.apparatus.bodl.scoping.BodlScopeProvider cannot be cast to org.eclipse.xtext.xbase.scoping.XbaseScopeProvider
!STACK 0
java.lang.ClassCastException: de.makkiato.apparatus.bodl.scoping.BodlScopeProvider cannot be cast to org.eclipse.xtext.xbase.scoping.XbaseScopeProvider
It seems that the BodlScopeProvider is not generated as expected. Where and how can I configure the generation of the ScopeProvider?
Thanks for any help.
Gregor
|
|
|
|
|
|
|
|
|
|
| Re: Cannot cast to XbaseScopeProvider [message #837191 is a reply to message #837182] |
Thu, 05 April 2012 07:32   |
Gregor Frey Messages: 12 Registered: April 2012 |
Junior Member |
|
|
Sorry, the error was my mistake. Probably I got the file extension wrong.
So, now, in 2.2.1, there is no issue with ScopeProvider, even when I use the "experimental", "non-stable" features.
I would recommend to put this version to the Eclipse update site too, because there I got the 2.0.1 version, that generated the critical ScopeProvider.
Thanks, Christian, for your help!
Ciao
Gregor
|
|
|
|
Powered by
FUDForum. Page generated in 0.01999 seconds