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.
[ BUILD # : 201103100000 ] [ JDK VERSION : 1.6.23 ] Verify global variable code completion. Create a PHP function. Declare a global variable. Type several first symbols of the variable name and invoke code completion. EXPECTED RESULT: Code completion appears and the variable name is among suggestions. *FAIL* Suggestions don't become available outside the function scope. --- Verify variable from included file code completion. Include an other PHP file into PHP source. Open that PHP source and create a global variable there. Create a PHP function in the first source. Inside that function, type several first symbols of the variable name and invoke code completion. Choose that variable in the list and press Enter. EXPECTED RESULT: Code is completed properly. No require or include directive is auto-generated. *FAIL* Result: No suggestions.
Created attachment 106984 [details] class screenshot
Created attachment 106985 [details] function
Created attachment 106986 [details] comment
It works for me, see the attached screenshots, folding works for functions, classes, /* */ comments. Can you give me more details? I tried it in php file and php web page as well. Currently I don't have the newest build, I'll try the latest in the evening. Product Version: NetBeans IDE Dev (Build 201103090000) Java: 1.6.0_24; Java HotSpot(TM) Client VM 19.1-b02 System: Windows 7 version 6.1 running on x86; Cp1250; cs_CZ (nb)
Sorry, I have opend bad bug, all my comments don't belongs here...
Comment on attachment 106984 [details] class screenshot bad issue
Comment on attachment 106985 [details] function bad issue
Comment on attachment 106986 [details] comment bad issue
Did you use the keyword "global"? I did it kind of automatically (because I'm used to do it that way and I don't know if any other way is possible) and it works in both cases. For the first issue: <?php function myF(){ global $justVar; $<codeCompletion> }?> This works For the second one: second.php: <?php $foo = 2; ?> first.php: <?php include 'second.php'; function myF(){ global $f<codeCompletion> }?> This works as well. If you tested it differently, could you please attach the source files? Maybe I get it wrong...
Sorry I didn't close this issue, lot of work on my hands. It turned out the test suites were wrong, not netbeans itself.