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 142018 - Code completion in function declaration
Summary: Code completion in function declaration
Status: RESOLVED DUPLICATE of bug 142019
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All Windows Vista
: P3 blocker (vote)
Assignee: Tomasz Slota
URL:
Keywords:
Depends on:
Blocks: 142091
  Show dependency tree
 
Reported: 2008-07-29 10:24 UTC by polan
Modified: 2008-08-08 04:32 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 polan 2008-07-29 10:24:48 UTC
Code completion in function declaration is now completely useless, because there are tons of constants on the top of 
the list, followed by even larger number of functions.

Since function calls are not allowed in function declaration, and constants don't make much sense, I really think they 
should be removed from the list.

The list should contain only:
 - classes
 - interfaces

and optionally:
 - 'array'
 - 'int' (although it's not supported since PHP 5.1)
 - 'string' (although it's not supported since PHP 5.1)

Hope that's possible to implement.
Comment 1 Tomasz Slota 2008-07-29 16:36:47 UTC
downgrading to P3, see issue 142091
Comment 2 rmatous 2008-07-30 17:52:17 UTC
Partly fixed:
http://hg.netbeans.org/main/rev/5ef2b7f8ba4f

Not fixed the iface part cause ifaces are currently not in index. So, now I think could be considered as duplicate of
#142019 Code completion + interfaces

*** This issue has been marked as a duplicate of 142019 ***
Comment 3 Quality Engineering 2008-07-31 04:11:59 UTC
Integrated into 'main-golden', available in build *200807310201* on http://bits.netbeans.org/dev/nightly/
Changeset: http://hg.netbeans.org/main/rev/5ef2b7f8ba4f
User: Radek Matous <rmatous@netbeans.org>
Log: #142018 Code completion in function declaration, part I
Comment 4 Tomasz Slota 2008-08-07 16:57:38 UTC
Additional fix: there should be no cc for ordinary (non-method) function names.

http://hg.netbeans.org/main/rev/914219ed3366


Comment 5 Quality Engineering 2008-08-08 04:32:29 UTC
Integrated into 'main-golden', available in build *200808080201* on http://bits.netbeans.org/dev/nightly/
Changeset: http://hg.netbeans.org/main/rev/914219ed3366
User: Tomasz Slota <tslota@netbeans.org>
Log: #142018: Code completion in function declaration