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 151818 - does not show Documentation window for class members
Summary: does not show Documentation window for class members
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Tomasz Slota
URL:
Keywords:
: 154666 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-10-30 06:21 UTC by Ashizawa Kazunori
Modified: 2009-10-01 17:20 UTC (History)
3 users (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-30 06:21:53 UTC
Based on user's feedback.

Product Version: NetBeans IDE Dev (Build 200810290201)
Java: 1.6.0_06; Java HotSpot(TM) Client VM 10.0-b22
System: SunOS version 5.11 running on sparc; UTF-8; en_US (nb)

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)

does not show Documentation window for const and function

Sample code:

        class DemoClass {
            const demoConst = "string";
            function demoFunction() {
                return;
            }
        }
        DemoClass::demoConst;
        $var = new DemoClass;
        $var->demoFunction();

If input cursor is placed anywhere on the class name
"DemoClass", Ctrl+Shift+Space feature (Show Documentation) works
fine, i.e. shows Documentation window.  If input cursor is
placed at the end of const name (after "t" of "demoConst") or at
the end of function name (between "n" and "()"), the feature
still works.  If input cursor is placed elsewhere on const name
or function name, the feature does not work.
Comment 1 Mikhail Matveev 2008-10-30 17:53:02 UTC
Reproducible for me.
Comment 2 Tomasz Slota 2009-05-18 16:59:15 UTC
confirmed. (it works OK for functions, but not for any class members)
Comment 3 Tomasz Slota 2009-05-18 17:04:24 UTC
*** Issue 154666 has been marked as a duplicate of this issue. ***
Comment 4 Tomasz Slota 2009-09-24 17:00:16 UTC
Fixed:
http://hg.netbeans.org/web-main/rev/9bbdd984c3af

Note that there is a remaining minor problem in this area, I filed issue 173047 for it
Comment 5 Quality Engineering 2009-09-26 21:09:16 UTC
Integrated into 'main-golden', will be available in build *200909251401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/9bbdd984c3af
User: Tomasz Slota <tslota@netbeans.org>
Log: #151818: does not show Documentation window for class members
Comment 6 Filip Zamboj 2009-09-29 11:49:45 UTC
Product Version: NetBeans IDE 6.8 Beta (Build 200909281634)
Java: 1.6.0_16; Java HotSpot(TM) 64-Bit Server VM 14.2-b01
Comment 7 Filip Zamboj 2009-09-29 12:03:56 UTC
Product Version: NetBeans IDE 6.8 Beta (Build 200909281634)
Java: 1.6.0_16; Java HotSpot(TM) 64-Bit Server VM 14.2-b01

Sorry, I verified too fast. 

The problem originally reported by kasha is fixed but not entirely. 

consider the example given by kasha with added comments: 

/** 
 * This is class 
 */
class DemoClass {
    /**
     * this is constatn 
     */
    const demoConst = "string";
    /**
     * some comment to function 
     * @return <type> 
     */
    function demoFunction() {
        return;
    }
}

DemoClass::demoConst; // ctrl+shift+space works only on DemoClass and t and ;  
$var = new DemoClass; // works fine 
$var->demoFunction(); // doesn't work. works only between n and ( 

/** 
 * function 
 */
function myfunction() {}
myfunction(); //works well 







Comment 8 Tomasz Slota 2009-09-30 14:16:07 UTC
the rest should be fixed now:

http://hg.netbeans.org/web-main/rev/2d140b8793c4
Comment 9 Quality Engineering 2009-10-01 17:20:12 UTC
Integrated into 'main-golden', will be available in build *200910010513* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/2d140b8793c4
User: Tomasz Slota <tslota@netbeans.org>
Log: #151818: does not show Documentation window for class members