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.
Steps to reproduce (based on comment #2 in issue #206521): Create following files: -- File foo.php <?php namespace Name1; class Foo { static public function bar() {} } -- File test.php <?php \| ?> Invoke CC at place of "|", Name1 is (among others) offered, hit enter to confirm => result is: "Name1" (without the leading "\"), the "\" was removed. Also notice following behavior: -- File test.php <?php \Name1\| ?> Invoke CC at "|", Foo is offered, hit enter to confirm => result is "Foo::" (not "\Name1\Foo::"), the beginning is removed Product Version: NetBeans IDE Dev (Build web-main-6696-on-20120111) Java: 1.7.0_02; Java HotSpot(TM) Client VM 22.0-b10 System: Linux version 3.0.0-14-generic-pae running on i386; UTF-8; en_US (nb)
I'm unable to reproduce this bug with Dev build 201201090601.
Ohhh...I know, where the problem is...(or I think that I know ;). There is a problem, that new PHP project is created as PHP_54 version...so it should be fixed in PHPCompletionItem:236...and there should be fixed PROPERTIES_CACHE too...because it doesn't invalidate now, when something in project properties changes.
Part 1 fixed in web-main: http://hg.netbeans.org/web-main/rev/624413195a32
This bug is fixed, I'll file a new one for caching issue.
verified Product Version: NetBeans IDE Dev (Build web-main-6711-on-20120113) Java: 1.7.0_02; Java HotSpot(TM) Client VM 22.0-b10 System: Linux version 3.0.0-14-generic-pae running on i386; UTF-8; en_US (nb)
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/624413195a32 User: Ondrej Brejla <obrejla@netbeans.org> Log: #207175 - Code completion for fully qualified namespaces removes already typed identifiers (part 1)