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 161487 - erroneous code completion
Summary: erroneous code completion
Status: RESOLVED INCOMPLETE
Alias: None
Product: groovy
Classification: Unclassified
Component: Grails (show other bugs)
Version: 6.x
Hardware: HP Windows Vista
: P3 blocker (vote)
Assignee: Petr Hejl
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2009-03-30 16:20 UTC by douglasv
Modified: 2009-10-14 14:58 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
non-relevent code suggestions (415.71 KB, image/jpeg)
2009-04-18 02:05 UTC, douglasv
Details

Note You need to log in before you can comment on or make changes to this bug.
Description douglasv 2009-03-30 16:20:31 UTC
the code completion hints are nonsensical; on the rare occasions they appear

for instance, while typing "assertEquals "nullable", testUser.err..
caused a pop-up box with suggestions starting with the bewildering "addShutdownHook(Closure)" followed by "any" etc

there are no code completions or suggestions offered as I type , but when they are offered they
are totally irrelevent
Comment 1 Petr Hejl 2009-03-30 16:27:48 UTC
Thanks for the report. Can you provide a minimal sample file (or snippet) for reproducing this?
Comment 2 Petr Hejl 2009-03-30 20:39:03 UTC
I think there are several issues here
1) there is only basic type inference
2) perhaps the cc was invoked just before dot, so displaying everything (for object due to 1) )
3) performance

I'll try to improve 3) for 6.7.
BTW You can invoke cc in context when you really want it by pressing ctrl-space.
Comment 3 douglasv 2009-04-18 02:05:43 UTC
Created attachment 80395 [details]
non-relevent code suggestions
Comment 4 Petr Hejl 2009-10-14 14:58:05 UTC
Can you provide steps to reproduce? Or a snippet to reproduce this? Screenshot does not help.