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 132472 - Code Completion doesn't work in new php file
Summary: Code Completion doesn't work in new php file
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: Tomasz Slota
URL:
Keywords: RANDOM
Depends on:
Blocks: 131609
  Show dependency tree
 
Reported: 2008-04-10 01:07 UTC by _ hong_lin
Modified: 2008-04-17 10:11 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Missing Code Completion screen shot (10.97 KB, image/png)
2008-04-10 01:08 UTC, _ hong_lin
Details
Code Completion I expected (27.54 KB, image/png)
2008-04-10 01:09 UTC, _ hong_lin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ hong_lin 2008-04-10 01:07:54 UTC
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.
Comment 1 _ hong_lin 2008-04-10 01:08:50 UTC
Created attachment 59941 [details]
Missing Code Completion screen shot
Comment 2 _ hong_lin 2008-04-10 01:09:47 UTC
Created attachment 59942 [details]
Code Completion I expected
Comment 3 _ hong_lin 2008-04-10 01:22:01 UTC
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.
Comment 4 Tomasz Slota 2008-04-10 09:32:05 UTC
CC is my area
Comment 5 Tomasz Slota 2008-04-10 12:04:01 UTC
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.
Comment 6 Petr Pisl 2008-04-11 10:02:55 UTC
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
Comment 7 Petr Pisl 2008-04-11 10:03:51 UTC
The P2 priority is because I'm not able to reproduce it and I saw it only on Hong's machine. 
Comment 8 Tomasz Slota 2008-04-16 08:53:13 UTC
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
Comment 9 Petr Pisl 2008-04-16 14:02:11 UTC
Could some one from QA test it on a Windows machine? I'm not able to reproduce on my. 
Comment 10 Tomasz Slota 2008-04-16 14:44:59 UTC
Hong if it is still reproducible on your machine please attache the log file
Comment 11 Petr Pisl 2008-04-17 10:11:18 UTC
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.