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 192667

Summary: Strange code completion
Product: php Reporter: schkovich <schkovich>
Component: EditorAssignee: Ondrej Brejla <obrejla>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: P3    
Version: 7.0   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: Test project
Screenshot of actual result

Description schkovich 2010-11-30 13:22:46 UTC
Product Version = NetBeans IDE Dev (Build 201011300001)
Operating System = Linux version 2.6.35-23-generic running on amd64
Java; VM; Vendor = 1.6.0_22
Runtime = Java HotSpot(TM) 64-Bit Server VM 17.1-b03

I am having quite strange issue with code completion. After invoking list of public methods and selecting desired one I am getting: $foo->Bar\Foo($buz). It does not apply to all cases. :(

To reproduce:
Open attached project. Go to index.php and on line 13 place cursor after $foo-> and hit Ctrl+space.

Actual result:
$foo->Bar\Foo($buz)

Expected result:
$foo->foo($buz)
Comment 1 schkovich 2010-11-30 13:23:29 UTC
Created attachment 103466 [details]
Test project
Comment 2 Sc0tTyXL 2011-01-15 10:42:57 UTC
I've tested this on the 2010-01-14 Build.

Works fine for me now
Comment 3 schkovich 2011-01-25 11:46:15 UTC
Created attachment 105328 [details]
Screenshot of actual result
Comment 4 schkovich 2011-01-25 11:47:04 UTC
I see no change. It's wrong as it was before.

Product Version: NetBeans IDE Dev (Build 201101250001)
Java: 1.6.0_22; Java HotSpot(TM) 64-Bit Server VM 17.1-b03
System: Linux version 2.6.35-24-generic running on amd64; UTF-8; en_US (nb)
Comment 5 OndrejBrejla 2011-03-08 14:49:36 UTC
I can reproduce it in NetBeans IDE Dev (Build 201103080000).
Comment 6 Ondrej Brejla 2011-10-03 14:03:10 UTC
Works for me properly in 7.1.