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 151661 - code completion fails to show function document
Summary: code completion fails to show function document
Status: RESOLVED DUPLICATE of bug 139842
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Tomasz Slota
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-29 06:44 UTC by Ashizawa Kazunori
Modified: 2009-05-06 14:33 UTC (History)
1 user (show)

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 Ashizawa Kazunori 2008-10-29 06:44:53 UTC
Product Version: NetBeans IDE 6.5 RC2 (Build 200810270001)
Java: 1.6.0_10; Java HotSpot(TM) Client VM 11.0-b15
System: SunOS version 5.11 running on sparc; UTF-8; en_US (nb)

code completion fails to show function document

Sample code:

        define("a", "b");
        function f0($arg0) {
            print($arg0);
        }
        f0();

Type Ctrl+Space in the last line between "(" and ")", then two
windows popup.

Upper window shows a="b".  It should show the definition of f0().

Lower window shows "a" first, then "f0()".  "f0()" shoould come
first.
Comment 1 Tomasz Slota 2008-10-29 09:43:37 UTC
There is nothing unusual in the described behavior: code completion offers values that make sense in the current context showing elements defined in the 
currently edited file on top. What you call the "upper window" is a documentation window that displays extra information about the element selected in the 
code completion window (the "lower window"). The order of elements is alphabetical, which makes it easy to find the right item if there is a long list.

See also issue 139842 (better online popup doc for args). Perhaps you expected behavior requested in this issue, we are going to implement it for the next 
release.
Comment 2 Ashizawa Kazunori 2008-10-30 07:56:08 UTC
Let me explain the issue more.

The issue is that the function is not placed at the top of code
completion window.  Please look at Java editor.  The function is
placed at the top of code completion window.  This behavior is
also preferable for PHP editor, I think.
Comment 3 Tomasz Slota 2009-05-06 14:33:29 UTC
In such case I guess it is a duplicate of issue 139842

*** This issue has been marked as a duplicate of 139842 ***