Community
Participate
Working Groups
Eclipse Modeling M7 + OCL Examples nightly. In the Xtext Console, after selecting any model object, if I write "self." + ctrl + space no completion proposal appear. Then, if I write any other letter (for instance "self.g") + ctrl + space the completion proposal successfully appear.
The Xtext guys take the view that unprefixed propsals offer too many alterantives so they don't offer anything by default. It is up to me to get round to providing the appropriate customisation, which will be easier once the scoping is auto-generated.
Ok. As extra info: 1. I write "self.n" + ctrl + space. 2. I remove one letter (press backspace) => "self." appear in the Xtext console writtable area. 3. All the alternatives appear in the still visible popup dialog/box. Regards, Adolfo.
Interesting. That might be a way to make Xtext do the work anyway. However when Xtext provides proposals, its looking for names with similar namespace characteristics. I'm not sure that the customized scoping offers all the possibilities. There are lots of thinhgs to choose from, but I doubt that everything is there. It's an area that I've not paid much attention to.
Many of the proposals are easily fixed by shared code correctly observing the scoping protocols. Pushed to master. Scoped names such as A::B::C are a problem since they are curerently parsed as a list in a surrounding context. It may be necessary to restructure the grammar to make scoped name references child elements.
In M6
The specific report was finally fixed by Bug 405228; not an Xtext limitation after all.
CLOSED after more than a year in RESOLVED state.
and CLOSE