Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » Check editor problems
Check editor problems [message #488442] Mon, 28 September 2009 16:58 Go to next message
Eclipse UserFriend
Originally posted by: ML1984.gmx.de

Hi there,

I am experiencing trouble with the Check editor. I defined a Check file,
referencing a Xtend file. Although both files are accessible via class
path and there is a proper 'extension' declaration in the Check file,
the editor complains about not found operations:

"Couldn't find operation 'isNullOrEmpty(ecore::EString)'
for type 'tgg::Node'"

In fact, there is no operation for this type, but 'isNullOrEmpty' is
declared in the Xtend file. Interestingly, the check file works
properly, i.e. 'isNullOrEmpty' is called.

Am I doing something wrong?
Is this a bug in the editor?
How can the above problem be solved (for me)?

There are additional errors, but I think they are already filed as bugs
in: https://bugs.eclipse.org/bugs/show_bug.cgi?id=262258

Cheers,
Mark

PS. I am using Eclipse Modeling Tools SR1 with Xtext/Xpand 0.7.2.
Re: Check editor problems [message #488453 is a reply to message #488442] Mon, 28 September 2009 17:41 Go to previous messageGo to next message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
Hi Mark,

did you try to restart Eclipse? The editor messes things up if you open
and close projects that are on the classpath of the project that
contains the check / xpand files. Maybe there are other situations that
reveal this bug as well.

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

Mark L. schrieb:
> Hi there,
>
> I am experiencing trouble with the Check editor. I defined a Check file,
> referencing a Xtend file. Although both files are accessible via class
> path and there is a proper 'extension' declaration in the Check file,
> the editor complains about not found operations:
>
> "Couldn't find operation 'isNullOrEmpty(ecore::EString)'
> for type 'tgg::Node'"
>
> In fact, there is no operation for this type, but 'isNullOrEmpty' is
> declared in the Xtend file. Interestingly, the check file works
> properly, i.e. 'isNullOrEmpty' is called.
>
> Am I doing something wrong?
> Is this a bug in the editor?
> How can the above problem be solved (for me)?
>
> There are additional errors, but I think they are already filed as bugs
> in: https://bugs.eclipse.org/bugs/show_bug.cgi?id=262258
>
> Cheers,
> Mark
>
> PS. I am using Eclipse Modeling Tools SR1 with Xtext/Xpand 0.7.2.
Re: Check editor problems [message #488550 is a reply to message #488453] Tue, 29 September 2009 08:38 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ML1984.gmx.de

Hi Sebastian,

I tried to restart Eclipse several times. All of the 12 errors remain :(
Any other suggestions?

Regards,
Mark

> Hi Mark,
>
> did you try to restart Eclipse? The editor messes things up if you open
> and close projects that are on the classpath of the project that
> contains the check / xpand files. Maybe there are other situations that
> reveal this bug as well.
>
> Regards,
> Sebastian
Re: Check editor problems [message #488563 is a reply to message #488453] Tue, 29 September 2009 09:08 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ML1984.gmx.de

I should mention an important detail:
The errors ('operation not found...') only appear on pure Xtend
extensions, i.e. non Java extensions.

May the force be with you!
Mark

> Hi Mark,
>
> did you try to restart Eclipse? The editor messes things up if you open
> and close projects that are on the classpath of the project that
> contains the check / xpand files. Maybe there are other situations that
> reveal this bug as well.
>
> Regards,
> Sebastian
Re: Check editor problems [message #488575 is a reply to message #488563] Tue, 29 September 2009 10:19 Go to previous messageGo to next message
Sven Efftinge is currently offline Sven EfftingeFriend
Messages: 1823
Registered: July 2009
Senior Member
What does your *.ecore file look like?
Do you refer to ecore.ecore using a platform:resource/ URI?

Cheers,
Sven

Mark L. schrieb:
> I should mention an important detail:
> The errors ('operation not found...') only appear on pure Xtend
> extensions, i.e. non Java extensions.
>
> May the force be with you!
> Mark
>
>> Hi Mark,
>>
>> did you try to restart Eclipse? The editor messes things up if you
>> open and close projects that are on the classpath of the project that
>> contains the check / xpand files. Maybe there are other situations
>> that reveal this bug as well.
>>
>> Regards,
>> Sebastian


--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com
Re: Check editor problems [message #488584 is a reply to message #488575] Tue, 29 September 2009 10:44 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ML1984.gmx.de

Hi Sven.

> What does your *.ecore file look like?

It includes only one package, but references a further meta model, which
references Ecore.ecore. All namespace URIs start with http://, I think
there is nothing odd.

> Do you refer to ecore.ecore using a platform:resource/ URI?

Ecore.ecore is referenced via
platform:/plugin/org.eclipse.emf.ecore/model/Ecore.ecore

Cheers,
Mark
Re: Check editor problems [message #488869 is a reply to message #488584] Wed, 30 September 2009 14:43 Go to previous messageGo to next message
Sven Efftinge is currently offline Sven EfftingeFriend
Messages: 1823
Registered: July 2009
Senior Member
Mark L. schrieb:
>> Do you refer to ecore.ecore using a platform:resource/ URI?
>
> Ecore.ecore is referenced via
> platform:/plugin/org.eclipse.emf.ecore/model/Ecore.ecore

Xpand assumes that ecore files reference Ecore.ecore by its nsURI.
If you change the resource uri with ecore's nsURI it should work.

Sven


--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com
Re: Check editor problems [message #489308 is a reply to message #488869] Fri, 02 October 2009 11:20 Go to previous message
Eclipse UserFriend
Originally posted by: ML1984.gmx.de

Hi Sven.

Thanks, that solved the 'operation not found' issue.
Errors for conversions from Java types to ECore types remain.
Bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=262258

Cheers,
Mark
Previous Topic:Share Xpand templates
Next Topic:[xPand] No protected region resolver configured
Goto Forum:
  


Current Time: Fri Apr 19 05:19:16 GMT 2024

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

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

Back to the top