Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Couldn't resolve reference(Error retrieving instances)
Couldn't resolve reference [message #903188] Wed, 22 August 2012 13:03 Go to next message
Wagner Perin is currently offline Wagner PerinFriend
Messages: 1
Registered: August 2012
Junior Member
Hi.

I'm doing my first experiment in Xtext and i'm define this grammar:

index.php/fa/11271/0/

So... when I test the 'Sequence of' [INSTANCE OF BOOK] this error occurs:

index.php/fa/11272/0/

Someone help me to find what I did wrong?
  • Attachment: grammar.png
    (Size: 7.46KB, Downloaded 294 times)
  • Attachment: error.png
    (Size: 6.16KB, Downloaded 285 times)
Re: Couldn't resolve reference [message #903203 is a reply to message #903188] Wed, 22 August 2012 13:47 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13488
Registered: July 2009
Senior Member
Hi

Cross referencing is done via name=> change your grammar to

name=ID


or write a custom IQualifiedNameProvider that offers the books isbn as name.


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/xtext/
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Couldn't resolve reference [message #903206 is a reply to message #903188] Wed, 22 August 2012 13:48 Go to previous message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3108
Registered: July 2009
Senior Member
Xtext uses the feature 'name' to identify objects (by default). Please
refer to the docs for details.

Regards,
Sebastian
--
Looking for professional support for Xtext, Xtend or Eclipse Modeling?
Go visit: http://xtext.itemis.com

Am 22.08.12 15:03, schrieb Wagner Perin:
> Hi.
>
> I'm doing my first experiment in Xtext and i'm define this grammar:
>
>
>
> So... when I test the 'Sequence of' [INSTANCE OF BOOK] this error occurs:
>
>
>
> Someone help me to find what I did wrong?
>
Previous Topic:startup action on project load
Next Topic:Using the index with an hierarchically directory tree
Goto Forum:
  


Current Time: Sun Jul 05 11:56:29 GMT 2020

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

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

Back to the top