Skip to main content



      Home
Home » Modeling » TMF (Xtext) » MWE2 Errors with XText 2.0 (using UIElements ecore model)(Errors appear immediately after project creation)
MWE2 Errors with XText 2.0 (using UIElements ecore model) [message #655253] Fri, 18 February 2011 14:45 Go to next message
Eclipse UserFriend
Hi,

I've just updated to XText 2.0 and I seem to be running into some issues that I'm not 100% sure how to solve.

When I create a new XText project from existing ecore models (UIElements) there are errors in both the "dsl".xtext file (which I've already figured out how to fix from before) and the Generate"dsl".mwe2 file (these are the errors that I'm not too sure about). There are three errors in the mwe2 file:

- Couldn't resolve reference to JvmIdentifiableElement 'registerForImportedPackages'.

- Couldn't resolve reference to JvmType 'outline.TransformerFragment'.

- Couldn't resolve reference to JvmType 'outline.OutlineNodeAdapterFactoryFragment'.


I don't recall any of these errors popping up when using XText 1.01. Anyway, I'm not too sure how to fix this. Does anyone have any suggestions?

Thanks.

- Jesse
Re: MWE2 Errors with XText 2.0 (using UIElements ecore model) [message #655258 is a reply to message #655253] Fri, 18 February 2011 15:06 Go to previous messageGo to next message
Eclipse UserFriend
Oh, I should also mention that when I opened the workspace that contained my own DSL for org.eclipse.e4.ui.model.workbench (similar to the example in https://github.com/meysholdt/e4dsl.git) that I also see the same three errors (plus multiple other errors in different source files, but I'm assuming they'll probably go away once I run a clean workflow again).

- Jesse
Re: MWE2 Errors with XText 2.0 (using UIElements ecore model) [message #655328 is a reply to message #655253] Sat, 19 February 2011 07:27 Go to previous messageGo to next message
Eclipse UserFriend
Hi Jesse,

the outline fragments have been replaced by a new one (please compare
the workflow with the one that is generated for a plain Xtext project).
The property 'registerForImportedPackages' can removed.

Would you please file a tickets with a description of the problems that
you found in the generated grammar?

Regards,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com

Am 18.02.11 20:45, schrieb Jesse:
> Hi,
>
> I've just updated to XText 2.0 and I seem to be running into some issues
> that I'm not 100% sure how to solve.
> When I create a new XText project from existing ecore models
> (UIElements) there are errors in both the "dsl".xtext file (which I've
> already figured out how to fix from before) and the Generate"dsl".mwe2
> file (these are the errors that I'm not too sure about). There are three
> errors in the mwe2 file:
>
> - Couldn't resolve reference to JvmIdentifiableElement
> 'registerForImportedPackages'.
>
> - Couldn't resolve reference to JvmType 'outline.TransformerFragment'.
>
> - Couldn't resolve reference to JvmType
> 'outline.OutlineNodeAdapterFactoryFragment'.
>
>
> I don't recall any of these errors popping up when using XText 1.01.
> Anyway, I'm not too sure how to fix this. Does anyone have any suggestions?
>
> Thanks.
>
> - Jesse
Re: MWE2 Errors with XText 2.0 (using UIElements ecore model) [message #655781 is a reply to message #655328] Tue, 22 February 2011 10:52 Go to previous message
Eclipse UserFriend
Hi Sebastian,

Thanks for the help. After comparing my mwe2 file with the one generated from a regular xtext project, I was able to get rid of the errors. I also had to comment out the line "registerGeneratedEPackage = " org.eclipse.e4.ui.model.application.descriptor.impl.Descript orPackageImpl "" and then I was able the mwe2 workflow.

I will submit a ticket for the errors that appeared in the generated grammar.

Thanks.

- Jesse
Previous Topic:Xtext: excluding grammar check for specific regions
Next Topic:Two file extension for one Xtext project
Goto Forum:
  


Current Time: Sat Nov 08 11:05:43 EST 2025

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

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

Back to the top