Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 370572 - subwords completion fails when triggered for parameters
Summary: subwords completion fails when triggered for parameters
Status: CLOSED DUPLICATE of bug 377373
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Recommenders (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Marcel Bruch CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2012-02-03 11:37 EST by Sebastian Proksch CLA
Modified: 2019-07-24 14:36 EDT (History)
0 users

See Also:


Attachments
example code showing a subwords bug (854 bytes, application/octet-stream)
2012-02-03 11:37 EST, Sebastian Proksch CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Proksch CLA 2012-02-03 11:37:26 EST
Created attachment 210520 [details]
example code showing a subwords bug

I attached an example class with four markers where subwords completion should be triggered. $1+2 are working cases, $3+4 fail. I would expect the same result as $1 on all markers.

Additionally, it is strange, that $2 works but $3 doesn't.
Comment 1 Marcel Bruch CLA 2012-02-04 07:36:30 EST
we are victims of JDT's way how/when/where which proposals are proposed. For parameter completions (on empty prefix), JDT only proposes the method signatures (more than one if overloaded) but no potential arguments for these methods. They are show after the first letter is typed.

Here the hacky approach of Subwords completion fails because JDT per default does not make any usable completions. In order to solve this, we have to create fall back proposals for each local, method or field accessible in the current context and check their prefixes accordingly.

This is definitely something we want to have some time during M6 or M7. Tagging this bug with helpwanted. If anyone is interested to fix this, contributions are welcome.
Comment 2 Marcel Bruch CLA 2012-02-04 07:39:52 EST
Test case for this is here:

http://goo.gl/qvzyf --> def void testBug370572_2() (annotated with @Ignore ATM)
Comment 3 Marcel Bruch CLA 2012-06-09 15:56:51 EDT
joining this wit aggregator bug for subwords

*** This bug has been marked as a duplicate of bug 377373 ***