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: PHP daily build 080409 Steps to reproduce it: 1. Create a new PHP File newEmptyPHP.php into a PHP Project. 2. In PHP Editor, will see: <?php /** * PHP Template. */ ?> 3. Enter an error syntax, for example, "<ph". Code Completion didn't work at all. See attachment MissingCCInNewPHPFile.PNG. 4. Edit the index.php file created with my PHP project with the same error syntax. Got a long list of suggestions, Code Completion worked fine in this case. See attachment CCInIndexPHPFile.PNG It is reproducible on a Windows Vista system as well.
Created attachment 59941 [details] Missing Code Completion screen shot
Created attachment 59942 [details] Code Completion I expected
Note: This issue can only reproduce when you create a new PHP file into your existing PHP project. Edit the PHP file created with my PHP project (for example, index.php) won't get the same error.
CC is my area
l don't think we can provide any meaningful cc items in the situation from the screenshots, so the correct behavior is no CC at all, as in the first screenshot. I think the behavior illustrated in the second screenshot is a P4 issue according to http://qa.netbeans.org/bugzilla/bug_priority_guidelines.html.
Yesterday I had a discussion with Hong about this issue. Also I saw the behavior on her computer. She doesn't have problem with code completion in errors, but with code completion at all. It means that the code completion doesn't work in the new php files, which during one IDE session. When you restart the IDE, then the code completion in the files works correctly, but if you create another new php file, the cc doesn't work in the file. This is really strange behavior. I tried it on my windows (running on top of Virtual Box) and it works. I think that the P1 was the right priority, unfortunately I'm not able to reproduce it. Due to the new information I'm increasing to P2. Hong, could you please try it with a todays build? Please, also copy the information from Help->About dialog, so we know more about your system. Also could you ask a someone from QA team with Windows machine to try to reproduce it? And last, could you try it in other editors, like in html editor (no php), whether the behavior is the same or whether this issue is only in php files. Thanks
The P2 priority is because I'm not able to reproduce it and I saw it only on Hong's machine.
Sounds like a problem with GSF, I will ask Tor if he has ever come across anything similar. Marking as RANDOM as we don't know the conditions to reproduce it
Could some one from QA test it on a Windows machine? I'm not able to reproduce on my.
Hong if it is still reproducible on your machine please attache the log file
The code completion is now much better. I'm closing this issue as fixed. If there will be new reproducible scenarios, then reopen or create new issue.