Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » Error reporting in Xtext console and "old" console(Minor issue on error description)
Error reporting in Xtext console and "old" console [message #1064110] Mon, 17 June 2013 13:00 Go to next message
Filip Krikava is currently offline Filip Krikava
Messages: 43
Registered: January 2012
Member
Hi,

I just came across a little problem. Following query:

self.ownedElements->select(e | e.stereotypes->exists(s | s.name = "singleton"))->collect(e | e.name)


in Xtext OCL console fails with:

Evaluating:
self.ownedElements->select(e | e.stereotypes->exists(s | s.name = "singleton"))->collect(e | e.name)
Results:
Parsing failure
null
1: missing EOF at '('
1: Unresolved Property 'unknown-type::select'


which might be a bit misleading. The "old" OCL console correctly reports the problem:

Evaluating:
self.ownedElements->select(e | e.stereotypes->exists(s | s.name = "singleton"))->collect(e | e.name)
Results:
Usage of non-standard quoted element name: "singleton"


It this well-known issue?

Regards,
Filip
Re: Error reporting in Xtext console and "old" console [message #1064115 is a reply to message #1064110] Mon, 17 June 2013 13:25 Go to previous messageGo to next message
Ed Willink is currently offline Ed Willink
Messages: 4003
Registered: July 2009
Senior Member
Hi Filip

Please raise a Bugzilla.

Maybe we can do better, but error reporting/recovery is not one of
Xtext's best features.

Regards

Ed Willink

On 17/06/2013 19:00, Filip Krikava wrote:
> Hi,
>
> I just came across a little problem. Following query:
>
> self.ownedElements->select(e | e.stereotypes->exists(s | s.name =
> "singleton"))->collect(e | e.name)
>
> in Xtext OCL console fails with:
>
>
> Evaluating:
> self.ownedElements->select(e | e.stereotypes->exists(s | s.name =
> "singleton"))->collect(e | e.name)
> Results:
> Parsing failure
> null
> 1: missing EOF at '('
> 1: Unresolved Property 'unknown-type::select'
>
>
> which might be a bit misleading. The "old" OCL console correctly
> reports the problem:
>
>
> Evaluating:
> self.ownedElements->select(e | e.stereotypes->exists(s | s.name =
> "singleton"))->collect(e | e.name)
> Results:
> Usage of non-standard quoted element name: "singleton"
>
>
> It this well-known issue?
>
> Regards,
> Filip
Re: Error reporting in Xtext console and "old" console [message #1064664 is a reply to message #1064115] Thu, 20 June 2013 09:09 Go to previous message
Filip Krikava is currently offline Filip Krikava
Messages: 43
Registered: January 2012
Member
Hi Ed,

Thanks for quick response, here is the bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=411246

/cheers
Filip
Previous Topic:[Announce] Eclipse OCL 4.1.0 (Kepler) RC4 is available.
Next Topic:[Announce] Eclipse OCL 4.1.0 (Kepler) is available.
Goto Forum:
  


Current Time: Fri Jul 25 21:06:31 EDT 2014

Powered by FUDForum. Page generated in 0.06157 seconds