This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 137262 - [cc] Completion not offering variable name based on type
Summary: [cc] Completion not offering variable name based on type
Status: VERIFIED FIXED
Alias: None
Product: groovy
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Martin Janicek
URL:
Keywords:
Depends on:
Blocks: 151985
  Show dependency tree
 
Reported: 2008-06-16 10:14 UTC by martin_adamek
Modified: 2012-04-03 13:42 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description martin_adamek 2008-06-16 10:14:04 UTC
In this case:
class User {
    String |
}
completion should offer 's' and 'string' items as variable name, see Java editor.
Comment 1 schmidtm 2008-06-25 13:48:38 UTC
This should be fixed with:

http://hg.netbeans.org/main/rev/9900c8715e3f
Comment 2 martin_adamek 2008-06-25 15:36:52 UTC
If I try completion here:

String s|

first item is empty and second is 's'. I expected 's' and 'string'.

Comment 3 schmidtm 2008-07-14 15:55:44 UTC
This issues should be fixed with:

http://hg.netbeans.org/main/rev/c0437a8d2e3e
Comment 4 Quality Engineering 2008-07-17 04:33:51 UTC
Integrated into 'main-golden', available in NB_Trunk_Production #324 build
Changeset: http://hg.netbeans.org/main/rev/c0437a8d2e3e
User: Matthias Schmidt <schmidtm@netbeans.org>
Log: Fix for #137262: Completion not offering variable name based on type. Plus tests for new-vars completion.
Comment 5 Lukas Jungmann 2008-10-13 18:18:20 UTC
I don't see 's' nor "string" to be offered by cc in groovy class in the latest 6.5 build...
Comment 6 Martin Janicek 2011-12-02 14:31:10 UTC
Still valid issue - the problem is that s/string completion is offered only when trying to do so inside of some method. On the class-level there isn't the same behavior.

Should be fixed, changing TM --> 7.2
Comment 7 Martin Janicek 2012-02-20 14:04:20 UTC
--> Part of umbrella issue
Comment 8 Martin Janicek 2012-02-21 06:38:48 UTC
Fixed in: web-main #f2820fa8a2c7
Comment 9 Quality Engineering 2012-02-22 11:03:25 UTC
Integrated into 'main-golden', will be available in build *201202220400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/f2820fa8a2c7
User: Martin Janicek <mjanicek@netbeans.org>
Log: #137262 - [cc] Completion not offering variable name based on type
Comment 10 Vladimir Riha 2012-04-03 13:42:29 UTC
verified

Product Version: NetBeans IDE Dev (Build 201204021038)