Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Content assist does not fully work!? on entities example('attributes' is not visible for any reason (ECLIPSE LUNA))
Content assist does not fully work!? on entities example [message #1725486] Thu, 03 March 2016 20:03 Go to next message
Christof Orth is currently offline Christof OrthFriend
Messages: 2
Registered: March 2016
Junior Member
I am new in Xtext and read the book Implementing Domain-Specific Languages with Xtext and Xtend. Now I have a problem with evaluating the content assist in the test implementation (with xtend) for the entities example (page 122).
I get some options for code completion when I press CTRL+Space on 'entity' but I do not get 'attributes'.
Manual edting 'attributes' works fine without syntax errror.
Re: Content assist does not fully work!? on entities example [message #1725513 is a reply to message #1725486] Fri, 04 March 2016 06:03 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Hi,

to be sure to get you right. this is a question on content assist when writing xtend code.

here is what i observe:

you get attributes proposed if you type the . and then hit crtl space
you dont get the . proposed after entity since xtend considers that not worthy to propose (free free to file a enhancement request)


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Content assist does not fully work!? on entities example [message #1725600 is a reply to message #1725513] Fri, 04 March 2016 18:17 Go to previous messageGo to next message
Christof Orth is currently offline Christof OrthFriend
Messages: 2
Registered: March 2016
Junior Member
Hi Christian,

thank you this helped, I did not enter the dot.
You are right, I edited xtend.
I found out that in my installation I have to enter a dot and another letter i.e. 'entities.x'.
Then I have to move back with the cursor between the dot and the x.
then CTRL+SPACE activates the content assist.
Entering CTRL+SPACE after entering 'enitities.' does only activate a ringing tone.
Re: Content assist does not fully work!? on entities example [message #1725602 is a reply to message #1725600] Fri, 04 March 2016 18:45 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
yes xtends content assist is sometimes bogus

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:Missing overrides in UIModule in Xtext 2.9
Next Topic:Content is not allowed in prolog
Goto Forum:
  


Current Time: Tue Apr 23 16:50:13 GMT 2024

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

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

Back to the top