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 183002 - [69cat][editor] Messy code completion of method defined by interface
Summary: [69cat][editor] Messy code completion of method defined by interface
Status: RESOLVED DUPLICATE of bug 176351
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P4 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-28 00:28 UTC by schkovich
Modified: 2011-08-16 09:24 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Correctly invoked code competition (53.58 KB, image/png)
2010-03-28 00:35 UTC, schkovich
Details
Messy code (17.84 KB, image/png)
2010-03-28 00:39 UTC, schkovich
Details
your method (49.46 KB, image/png)
2010-05-11 14:28 UTC, schkovich
Details
method that I prefer (45.33 KB, image/png)
2010-05-11 14:29 UTC, schkovich
Details

Note You need to log in before you can comment on or make changes to this bug.
Description schkovich 2010-03-28 00:28:28 UTC
Product Version = NetBeans IDE Dev (Build 201003270201)
Operating System = Linux version 2.6.31-20-generic running on amd64
Java; VM; Vendor = 1.6.0_15
Runtime = Java HotSpot(TM) 64-Bit Server VM 14.1-b02

When creating method defined by interface code completion will correctly suggest available method names but hitting enter creates messy code.
Comment 1 schkovich 2010-03-28 00:35:45 UTC
Created attachment 96081 [details]
Correctly invoked code competition

Image displays correctly invoked code completion showing methods defined by interface
Comment 2 schkovich 2010-03-28 00:39:04 UTC
Created attachment 96082 [details]
Messy code

Image displays messy code created after selecting desired method name defined by interface and hitting enter.
Comment 3 rmatous 2010-03-28 13:48:14 UTC
Happens just in case when method skeleton already exists like this:
public function |($param) {
        ;
}

| represents current offset in the document.

Typically is CC used:
1/ public function |
2/ |

So, bug but P4, I think
Comment 4 schkovich 2010-05-11 13:18:53 UTC
I think that in the latest builds there is regression. I tried to invoke code completion as you suggested but I am getting "no suggestions".

Further on there is similar problem with PHP magic methods. I did open the bug regarding magic methods problem but it's closed at some point I can't find it anymore. :(

If I am right I think that priority should be changed. This problem should be resolved in 6.9. It's annoying. :)
Comment 5 rmatous 2010-05-11 14:00:50 UTC
works for me, don't see regression in the latest builds there
Comment 6 schkovich 2010-05-11 14:28:41 UTC
Created attachment 98775 [details]
your method
Comment 7 schkovich 2010-05-11 14:29:22 UTC
Created attachment 98777 [details]
method that I prefer
Comment 8 schkovich 2010-05-11 14:31:59 UTC
Product Version: NetBeans IDE Dev (Build 201005060200)
Java: 1.6.0_20; Java HotSpot(TM) 64-Bit Server VM 16.3-b01
System: Linux version 2.6.32-22-generic running on amd64; UTF-8; en_US (nb)

In Build 201005060200 the way to invoke code completion you suggested in comment #3 is not working. That sounds to me as regression since it was working at time you suggested how to invoke code completion.
Comment 9 Filip Zamboj 2010-09-15 12:31:10 UTC
batch reassigning
Comment 10 Tomas Mysik 2011-06-08 14:57:33 UTC
Batch reassigning.
Comment 11 Ondrej Brejla 2011-08-16 09:24:31 UTC
Doesn't work for constructors as well...same problem.

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