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 - Code completion doesn't work in some cases
Summary: Code completion doesn't work in some cases
Status: NEW
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-12 12:29 UTC by Alexei Mokeev
Modified: 2012-04-24 13:45 UTC (History)
2 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
No Code Completion screenshot (5.00 KB, image/png)
2010-04-12 12:29 UTC, Alexei Mokeev
Details
Project for reproduction (217.05 KB, application/zip)
2010-04-12 12:30 UTC, Alexei Mokeev
Details

Note You need to log in before you can comment on or make changes to this bug.
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