Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » OCLinEcore does not work with Xtext 2.2.1
OCLinEcore does not work with Xtext 2.2.1 [message #798452] Tue, 14 February 2012 18:06 Go to next message
Henrik Wivel is currently offline Henrik WivelFriend
Messages: 4
Registered: February 2012
Junior Member
Hi

To make a long story short, I ma getting this error message when trying to open a .ecore file using the OCLInEcore editor:

"Could not open the editor: The editor class could not be instantiated. This usually indicates a missing no-arg constructor or that the editor's class name was mistyped in plugin.xml."

I am using the latest Indigo distro from Itemis (xtext.itemis.com/xtext/language=en/36553/downloads), containing the latest version of Xtext2 (2.2.1.v201112130541) and it does not seem to work with OCLInEcore (3.1.1.v20110913-1213).

Using the latest distro from Eclipse.org, everything works fine, but then I will be on Xtext2 ver 2.10, which I would like to avoid.

Do any of you super intelligent persons out there have any ideas of what to do?

Regards

Henrik
Re: OCLinEcore does not work with Xtext 2.2.1 [message #798871 is a reply to message #798452] Wed, 15 February 2012 07:02 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 4153
Registered: July 2009
Senior Member
Hi

"The editor class could not be instantiated" now has many more usual
reasons; most commonly in the case of Xtext, an Guice injection failure
throwing an exception during startup.

If you open the details tab you will find the 'reason'.

Caused by: com.google.inject.CreationException: Guice creation errors:

1) No implementation for org.eclipse.jface.viewers.ILabelProvider was bound.
at
org.eclipse.xtext.ui.DefaultUiModule.configureContentProposalLabelProvider(DefaultUiModule.java:264)

amongst many others.

It would appear that Xtext 2.2.1 is not compatible with Indigo SR0
Xtext. https://bugs.eclipse.org/bugs/show_bug.cgi?id=371574 raised. A
problem with auto-generated APIs that are logically internal but
actually external since they form a contract between the runtime
supplied by Xtext and the editors developed with Xtext.

If the Xtext APIs have changed in one direction, they may also have
changed in the other, so we cannot fix it in OCL; we cannot change an
Indigo SR to have a higher Xtext minimum version. We will consider an
OCL (for Xtext 2.2.1) 3.1.2X release.

Regards

Ed Willink

On 14/02/2012 18:06, Henrik Wivel wrote:
> Hi
> To make a long story short, I ma getting this error message when
> trying to open a .ecore file using the OCLInEcore editor:
>
> "Could not open the editor: The editor class could not be
> instantiated. This usually indicates a missing no-arg constructor or
> that the editor's class name was mistyped in plugin.xml."
>
> I am using the latest Indigo distro from Itemis
> (xtext.itemis.com/xtext/language=en/36553/downloads), containing the
> latest version of Xtext2 (2.2.1.v201112130541) and it does not seem to
> work with OCLInEcore (3.1.1.v20110913-1213).
>
> Using the latest distro from Eclipse.org, everything works fine, but
> then I will be on Xtext2 ver 2.10, which I would like to avoid.
> Do any of you super intelligent persons out there have any ideas of
> what to do?
> Regards
>
> Henrik
Re: OCLinEcore does not work with Xtext 2.2.1 [message #798926 is a reply to message #798871] Wed, 15 February 2012 08:25 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 4153
Registered: July 2009
Senior Member
Hi

> If the Xtext APIs have changed in one direction, they may also have
> changed in the other, so we cannot fix it in OCL; we cannot change an
> Indigo SR to have a higher Xtext minimum version. We will consider an
> OCL (for Xtext 2.2.1) 3.1.2X release.
An update from itemis. Xtext 2.0.1 is shipped in Indigo SR2 (and SR1) so
the 3.7.1 / 2.2.1 convenience distribution from itemis is a proprietary
hybrid. Hopefully an Xtext 2.2.2 might fix the incompatibility. A 3.1.2X
for OCL does not seem necessary.

Regards

Ed Willink
Re: OCLinEcore does not work with Xtext 2.2.1 [message #799877 is a reply to message #798926] Thu, 16 February 2012 12:27 Go to previous messageGo to next message
Henrik Wivel is currently offline Henrik WivelFriend
Messages: 4
Registered: February 2012
Junior Member
Thanks a lot for your feedback. I will raise the issue with Itemis.

Henrik
Re: OCLinEcore does not work with Xtext 2.2.1 [message #800098 is a reply to message #799877] Thu, 16 February 2012 17:25 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 4153
Registered: July 2009
Senior Member
Hi

Your problem provoked quite lot of Bugzilla traffic.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=371396

https://bugs.eclipse.org/bugs/show_bug.cgi?id=371574

https://bugs.eclipse.org/bugs/show_bug.cgi?id=371659

and cross-project-dev discussion too.

The ultimate result is that Indigo SR2 uses Xtext 2.0.1 for which there
is no problem.

3.7.1+2.2.1 is a proprietary itemis convenience distribution with
unfortunate consequences for some other tools.

There is a trivial fix for MDT/OCL but we were too close to the SR2 RC4
deadline to push an untested not really necessary change in.

Expect an MDT/OCL 3.1.2a quite soon; perhaps even before 3.1.2.

Regards

Ed Willink

On 16/02/2012 12:27, Henrik Wivel wrote:
> Thanks a lot for your feedback. I will raise the issue with Itemis.
> Henrik
Previous Topic:simple problem from a beginner (Solved)
Next Topic:CompleteOCL and Invocation and Setting Delegates
Goto Forum:
  


Current Time: Wed Nov 26 00:39:49 GMT 2014

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

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