[ 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
EXPECTED RESULT: Code completion appears and the variable name is among
*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]
Created attachment 106985 [details]
Created attachment 106986 [details]
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]
Comment on attachment 106985 [details]
Comment on attachment 106986 [details]
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:
For the second one:
$foo = 2;
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.