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 207425 - code completion hinting no longer works for namespaced statics
Summary: code completion hinting no longer works for namespaced statics
Status: RESOLVED DUPLICATE of bug 206521
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-18 06:36 UTC by evandelacruz
Modified: 2012-01-25 10:45 UTC (History)
0 users

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 evandelacruz 2012-01-18 06:36:21 UTC
Product Version = NetBeans IDE 7.1 (Build 201112071828)
Operating System = Windows 7 version 6.1 running on x86
Java; VM; Vendor = 1.6.0_30
Runtime = Java HotSpot(TM) Client VM 20.5-b03

This has affected me since 7.1 RC3, I believe.

When writing code, after entering double colons after a static class (which is how you access statics in PHP), Netbeans used to popup hints for code completion (a list of all available static methods and properties).  Now it does nothing.

I have also tried to use ctrl+space.  It says "No suggestions".

Of course at first I assumed my code was simply not being resolved do to poor namespace structure, bad phpdocs, or an outdated netbeans cache.  However, if I enter a static method name manually and then use ctrl+p within it's argument list, I will see the correct hints for the method arguments.  This suggests that it is resolving the statics just fine.  Also, using right-click and "go to declaration" works perfectly, further suggesting that netbeans is resolving the statics just fine.  However for some reason, it will not offer suggestions on the static class as it used to.

Steps to reproduce.

1) Use this code
namespace Foo\Bar;
class StaticClass
{
    public static function StaticMethod()
    {
        return false;
    }
}
\Foo\Bar\StaticClass::StaticMethod();

2) Click on the last line to set the cursor on the word "StaticMethod()"
3) Press ctrl+spacebar and it will say "no suggestions"

Expected behavior:
It should show a list of available static methods and properties (in this case, just one: "StaticMethod()")
Comment 1 Ondrej Brejla 2012-01-25 10:45:26 UTC

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