I'm having a problem with Netbeans 8.1 working on Symfony2 project - I don't have any code hints and autocomplete suggestions. It applies to both userland code written by me and autoloaded from vendors.
For example when I want to implement an interface, there's no hint for missing methods. I don't even get autocomplete for $this.
I already tried to clear cache directory with no success.
My Netbeans info:
Product Version: NetBeans IDE 8.1 (Build 20151231-debian-8.1)
Java: 1.8.0_111; OpenJDK 64-Bit Server VM 25.111-b14
Runtime: OpenJDK Runtime Environment 1.8.0_111-8u111-b14-2ubuntu0.16.04.2-b14
Running on Ubuntu 16.04.1 LTS
Perhaps someone had that problem?
I had this problem when I excluded vendors directory in Netbeans project properties. I did it when I wanted Netbeans to use code sniffer.
Maybe you'll find it helpful information.
Upgrading to Netbeans 8.2 solved the issue (I'm not sure if it would not work with reinstallation of Netbeans 8.1).
I had to download new version from https://netbeans.org/downloads/index.html because it was not available through apt.
Related
So, problem is strange:
ctrl+click works only for native php methods and functions and don't :
For this example I used Laravel 5.5 + https://github.com/barryvdh/laravel-ide-helper, which should add methods of frameworks.
Autocomplite don't work even for methods of class in same file. What should I do to enable this feature?
Ubuntu 16.04
Product Version: NetBeans IDE 8.1 (Build 20151231-debian-8.1)
Updates: NetBeans IDE is updated to version NetBeans 8.1 Patch 1
I tried with Laravel, Yii2 and Zend Framework applications. What should I do to fix that?
This solution helps me:
I used a version from rep (apt-get install netbeans) and php was installed as a plugin. When I installed php-version
http://download.netbeans.org/netbeans/8.2/final/bundles/netbeans-8.2-php-linux-x86.sh
http://download.netbeans.org/netbeans/8.2/final/bundles/netbeans-8.2-php-linux-x64.sh
, everything start works correct.
I would like to update the versions of php available in Netbeans 7.1 (I know it is only for hints),
I have php 5.4 working in my pc, but in netbeans I have available only php5.3 and 5.2, I would like to have 5.4 too
https://prnt.sc/fqxyoo
*I can not update netbeans because from 7.2 to 8.x it crashes inmediatelly after starting, but that is another history, so I would like only how to add php5.4 in netbeans 7.1
Thanks
Check your php version with the help of phpinfo(). But netbeans does not bundle the php. Check in php download url and download what you want.
I tryed install phpunit with netbeans and the installation done correctly! But, when a try generate the phpunit class, the follow error occurred: "The referenced parameter '--ansi' is not registered." and the file was not generated.
Anyone have any idea about this?
It happened the same to me. It seems that we were using the old phpunit-skelgen 1.2.1 version. Apparently, NetBeans 8.0.1 assumes you are using the newest version of phpunit-skelgen, that is 2.0.1.
So, you only have to update the phpunit-skelgen version, for example using this: https://phar.phpunit.de/phpunit-skelgen.phar
I copied that file to where I had my previous phpunit-skelgen.bat files: C:\xampp\php. Of course, this may vary according to your OS or your project structure.
After that, configure NetBeans to use the downloaded file instead of the old file. Something around Tools > Options in Netbeans menu.
Hope this helps!
I'm editing a PHP file in Netbeans that is not part of a project. Although I have PHP 5.3 installed, Netbeans complains about my use of a lambda function: "Language feature not compatible with PHP version indicated in project settings".
Is there a way to tell Netbeans to think in 5.3 when I don't have project settings to edit?
I'm using Netbeans 7.0 with PHP 5.3.3 on Ubuntu.
UPDATE: The code is working, it's just the inspection that is borken.
Right click your project in the Projects tab, click Properties, then on the Sources tab, set the PHP Version. I'm using Netbeans 7.1.2
Go to File Menu of net beans and select project properties of the project and change the version of php from # PHP Version : PHP 5.6 or another.
This Error Showing for PHP version(language feature not compatible with php version indicated in project settings)
I recently did an update to my NetBeans (v7.0.1). I just tried creating a lambda fn and the IDE didn't show any warnings/errors. Try updating your NB.
I have a project that's intended to use some PHP as well as Java and Javascript, so I installed the PDT PHP plug-in for Eclipse, using the Install New Software menu option. Now Eclipse agrees PDT is installed, but no PHP features like creating or editing PHP files are appearing anywhere. Is there something else I need to do to activate PDT? (I did restart Eclipse like it said I needed to.)
Right click on your project, Configure (it's at the bottom of the list)->Add PHP Support...
After it's done, you should see a little P symbol in the project's icon.
Just create new project using the wizard, and choose PHP one. After Eclipse will know that your project is actually based on PHP, it will show you all the features.
In case if you have existing project, just open the PHP perspective.
I've once had a similar problem. Eclipse was running with the JRE 1.4, and it seems the JRE 1.5 or later is required to run the PDT. I switched to Java 1.6 and that solved the problem.
I run into this sometimes with eclipse plugins.
Have you tried uninstalling it, removing the jar and files it from eclipse/plugins and eclipse/features, then installing it again?
If you don't feel like doing that. Try installing it in a clean eclipse instance and if it works then it's just a config issue with eclipse.
You might have not installed all of the tools too.
The solution I eventually came up with was to just install Aptana Studio, a PHP IDE based on Eclipse, whose standalone version can coexist happily with the regular Eclipse on the same machine.
In order to have PHP support in eclipse project, you need to add PHPNature to the project. It's a kind of configuration paramter of eclipse project. When you craete a new PHP project using a wizard, check the .project file in a new project directory. There is a PHPNature line. Copy this line into .project of your java project.
Another solution is to separate java and php code in a different projects, each one craeted by right wizard.