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 - Strange code completion
Summary: Strange code completion
Status: RESOLVED WORKSFORME
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.0
Hardware: PC Linux
: P3 normal with 1 vote (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-30 13:22 UTC by schkovich
Modified: 2011-10-03 14:03 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Test project (1.25 KB, application/octet-stream)
2010-11-30 13:23 UTC, schkovich
Details
Screenshot of actual result (9.81 KB, image/png)
2011-01-25 11:46 UTC, schkovich
Details

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