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.
Summary: | [fields] code assist for variables in PHP file in include path not working | ||
---|---|---|---|
Product: | php | Reporter: | nairraf |
Component: | Editor | Assignee: | rmatous <rmatous> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | fzamboj, lathspell, michaelhodgins, teknoid, tmysik |
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | PC | ||
OS: | Windows 7 | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | Sample Symfony 1.3 project with missing auto-completion |
Description
nairraf
2010-02-03 15:33:38 UTC
I guess I should have mentioned that AjaxHelper is a builting CakePHP object that is automatically available to CakePHP views, and that the .ctp CakePHP "view" files are just php files with a .ctp extension. I also should have mentioned that I associated .ctp files with PHP files in netbeans already, so that when a .ctp file is opened, netbeans recognizes it as a PHP file and you get syntax highlighting/code assist for them. Sorry about that. --Ian I experience the same problem but on Linux and not with CakePHP but with Symfony. Sometimes autocomletion works, sometimes not although the variable is explicitly assigned with "new SomeClass()". The SomeClass() itself is auto-completable so NetBeans does know about it. Just the assigned object variable then offers not auto-completion. In case that matters here my exact version: Product Version: NetBeans IDE 6.8 (Build 200912041610) Java: 1.6.0_12; Java HotSpot(TM) Client VM 11.2-b01 System: Linux version 2.6.30-bpo.1-amd64 running on i386; ISO-8859-15; de_DE (nb) I also double checked the Tools -> Edit -> AutoCompletion settings as well as those of the include paths. (In reply to comment #2) > I experience the same problem but on Linux and not with CakePHP but with > Symfony. Sometimes autocomletion works, sometimes not although the variable is > explicitly assigned with "new SomeClass()". The SomeClass() itself is > auto-completable so NetBeans does know about it. Just the assigned object > variable then offers not auto-completion. In case that matters here my exact > version: > > Product Version: NetBeans IDE 6.8 (Build 200912041610) > Java: 1.6.0_12; Java HotSpot(TM) Client VM 11.2-b01 > System: Linux version 2.6.30-bpo.1-amd64 running on i386; ISO-8859-15; de_DE > (nb) > > I also double checked the Tools -> Edit -> AutoCompletion settings as well as > those of the include paths. Please, attach an example project, that would help us a lot. Thanks a lot! Attached you find a tarball of a new created Symfony 1.3 project. It's a lot automatic generated stuff in there but just focus on apps/frontend/modules/test/actions/actions.class.php and the following lines: $this->form = new ManageUsersForm(); // auto-completion works with this class! $this->form-> // CTRL-SPACE but no completion to e.g. configure()! The ManageUsersForm is in lib/form/doctrine/ManageUsersForm.class.php. The standard PHP functions are (apparently) all available in auto-completion. I have a NetBeans project include to ~/workspace/Symfony-1.3/lib which is the lib directory from public accessable SVN checkout of http://svn.symfony-project.com/branches/1.3/ Hope that helps. Created attachment 94392 [details]
Sample Symfony 1.3 project with missing auto-completion
reproducible it works in case $a = new ManageUsersForm; $a-> //code completion works $this->form = new ManageUsersForm(); $this->form-> //code completion doesn't work Product Version: NetBeans IDE Dev (Build 201002152000) Java: 1.6.0_16; Java HotSpot(TM) 64-Bit Server VM 14.2-b01 I'm using Zend Framework and I can attest that this bug is also present for me. Integrated into 'main-golden', will be available in build *201004300200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/ User: Log: Fixed (not ideal though, next improvements, fixes should come into next release): http://hg.netbeans.org/web-main/rev/5900b68694c3 http://hg.netbeans.org/web-main/rev/c89fc2658062 http://hg.netbeans.org/web-main/rev/83671e2c3b1b |