Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 345282 - [console] Completion proposal doesn't appear after dot
Summary: [console] Completion proposal doesn't appear after dot
Status: CLOSED FIXED
Alias: None
Product: OCL
Classification: Modeling
Component: Core (show other bugs)
Version: 3.1.0   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: M6   Edit
Assignee: OCL Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-10 11:09 EDT by Adolfo Sanchez-Barbudo Herrera CLA
Modified: 2014-05-27 09:52 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adolfo Sanchez-Barbudo Herrera CLA 2011-05-10 11:09:36 EDT
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.
Comment 1 Ed Willink CLA 2011-05-10 12:13:08 EDT
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.
Comment 2 Adolfo Sanchez-Barbudo Herrera CLA 2011-05-10 13:45:53 EDT
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.
Comment 3 Ed Willink CLA 2011-05-10 13:59:46 EDT
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.
Comment 4 Ed Willink CLA 2012-02-12 08:30:34 EST
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.
Comment 5 Ed Willink CLA 2012-05-02 15:29:39 EDT
In M6
Comment 6 Ed Willink CLA 2013-04-09 15:29:42 EDT
The specific report was finally fixed by Bug 405228; not an Xtext limitation after all.
Comment 7 Ed Willink CLA 2014-05-27 09:44:53 EDT
CLOSED after more than a year in RESOLVED state.
Comment 8 Ed Willink CLA 2014-05-27 09:52:56 EDT
and CLOSE