Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Xtend/Xpand nature and content assist?
Xtend/Xpand nature and content assist? [message #39634] Sun, 12 April 2009 11:28 Go to next message
Porter is currently offline PorterFriend
Messages: 42
Registered: July 2009
Member
I'm using Xtext M6 on Eclipse 3.5m6.

Create a new Xtext project and accept the defaults.

Press (windows) ctrl+space in any of the .xpt or .ext files for content
assist, and a dialog appears asking whether to add xtend nature to the
project.

If I accept yes then content assist works (at least in .xpt, no
suggestions in .ext editor) but errors appear in the project (e.g in
Template.xpt of org.xtext.example.mydsl.generator, "cannot find model".)

If I accept no then no errors appear but no content assist works.

Is this a bug? I think a default project shouldn't have such issues.
Re: Xtend/Xpand nature and content assist? [message #39789 is a reply to message #39634] Tue, 14 April 2009 07:26 Go to previous messageGo to next message
Sven Efftinge is currently offline Sven EfftingeFriend
Messages: 1823
Registered: July 2009
Senior Member
If you have the nature activated on your project you get the Xpand /
Xtend tooling.
We should add the nature automatically. Maybe you want to file a
bugreport, so we don't forget.

The error marker should go away as soon as you've generated your
language infrastructure.

Sven

Rodney H schrieb:
> I'm using Xtext M6 on Eclipse 3.5m6.
>
> Create a new Xtext project and accept the defaults.
>
> Press (windows) ctrl+space in any of the .xpt or .ext files for content
> assist, and a dialog appears asking whether to add xtend nature to the
> project.
>
> If I accept yes then content assist works (at least in .xpt, no
> suggestions in .ext editor) but errors appear in the project (e.g in
> Template.xpt of org.xtext.example.mydsl.generator, "cannot find model".)
>
> If I accept no then no errors appear but no content assist works.
>
> Is this a bug? I think a default project shouldn't have such issues.
>
Re: Xtend/Xpand nature and content assist? [message #555851 is a reply to message #39789] Sun, 29 August 2010 16:17 Go to previous messageGo to next message
Louis Stamsma is currently offline Louis StamsmaFriend
Messages: 20
Registered: July 2009
Junior Member
Hello,

I'm using xText 1.0 and that version shows exactly the behavior described here.

Is it a known problem? Or am I doing something wrong?

/Louis

[Updated on: Sun, 29 August 2010 16:18]

Report message to a moderator

Re: Xtend/Xpand nature and content assist? [message #555854 is a reply to message #555851] Sun, 29 August 2010 16:29 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
Hello Louis,

is the Xpand/Xtend nature addded to the project?
have you enabled the java beans metamodel in your generator projects Xtend/Xpand properties as the docs say?

Regards
Christian


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Xtend/Xpand nature and content assist? [message #555856 is a reply to message #555854] Sun, 29 August 2010 17:05 Go to previous message
Louis Stamsma is currently offline Louis StamsmaFriend
Messages: 20
Registered: July 2009
Junior Member
Hi Christian,

After quite some digging I found the setting in the project properties and that fixed the problem. I'm pretty confident I would not have succeeded at solving that problem without your hint.

Thanks!

/Louis
Previous Topic:[Grammar] How to create multiple return types?
Next Topic:composition of one model in xtext from many different parts
Goto Forum:
  


Current Time: Thu Mar 28 23:32:36 GMT 2024

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

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

Back to the top