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.
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.
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.
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.
In such case I guess it is a duplicate of issue 139842 *** This issue has been marked as a duplicate of 139842 ***