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 183901

Summary: Code completion doesn't work in some cases
Product: php Reporter: Alexei Mokeev <av-nb>
Component: EditorAssignee: Ondrej Brejla <obrejla>
Status: NEW ---    
Severity: normal CC: Bazis007, fzamboj
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Attachments: No Code Completion screenshot
Project for reproduction

Description Alexei Mokeev 2010-04-12 12:29:43 UTC
Created attachment 97082 [details]
No Code Completion screenshot

This bug was reported by an attendee of STD in St. Petersbug. Please refer to the attached project for reproduction.

Steps:

1. Open attached project
2. Open starter.inc.php
3. Add a line below 
"trace("Starter Loading Completed");"
and type
"$former"

You will see that it's known and correctly refers class.former.inc.php

add -> and try to invoke code completion - nothing found.

Original reported also stated that sometimes completion works in similar situations, but only after some time of active work in the ide.
Comment 1 Alexei Mokeev 2010-04-12 12:30:31 UTC
Created attachment 97083 [details]
Project for reproduction
Comment 2 Filip Zamboj 2010-04-13 14:58:49 UTC
reproducible in 
Product Version: NetBeans IDE Dev (Build 100413-fd4a353d2a3a)

this should be fixed before 6.9 is out because it may be deeper problem.
Comment 3 rmatous 2010-04-13 15:37:43 UTC
global variables and their types are not intentionally offered in CC, because there might be tons of global variables with the same name and as a result we would need to offer merge of their possible types. Not sure => many times discussed, many times rejected/not implemented. So, any idea? Merge the types?
Comment 4 Bazis007 2010-05-28 10:00:16 UTC
As a variant it is possible to use type of the last found global variable, or add ability  in IDE to set type of variable manualy. 
Also i am notice, Eclipse PDT haven't smilar problem. Maybe it makes sense to borrow their experience?
Comment 5 Filip Zamboj 2010-09-15 12:31:18 UTC
batch reassigning