Check editor problems [message #488442] |
Mon, 28 September 2009 16:58 |
Eclipse User |
|
|
|
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 |
Sebastian Zarnekow 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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 #488584 is a reply to message #488575] |
Tue, 29 September 2009 10:44 |
Eclipse User |
|
|
|
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
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04384 seconds