Netbeans + php, Why autocomplete and CTRL+Click don't work? - php

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.

Related

How to Update php in Netbeans

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.

How to integrate NetBeans 8.0 with Codeigniter

I am new to develop in php using Netbeans IDE. I use NetBeans 8.0 version. I want to develop a project using Codeigniter framework. But still I was unable to find a way to start a project with Codeigniter template.
When I'm creating a new project, Netbeans ask me to use number of php frameworks such as Symfony, Nette2, Zend2, Doctrine & etc. But there are no anything as Codeigniter.
I tried lots of solutions in stackoverflow. but some of them are for older netbeans versions and others are not working for me.
I downloaded the netbeans CI plugin from https://github.com/nbphpcouncil/nb-ci-plugin/releases
When I was try to install that plugin, NetBeans says that it needs some more plugins to be installed.
How to integrate Codeigniter framework to the NetBeans 8.0..?
Thanks in advance..
I'm using NetBeans 8.2 Patch 2 (Full IDE). I installed both NBM files from the link, that you paste and everything was fine. You need NetBeans with PHP support, if you not want the full IDE. So after installing the 2 nbm files, I can choose the codeigniter framework at the new PHP project wizard.
Regards
Chris

Netbeans missing code hints for PHP

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.

Where do I find a copy of Zend PHP Debugger for PHP 5.4?

I'm trying to find a copy of the Zend debugger for PHP 5.4.
I've followed the various tutorials on the web telling me to download the Studio Web Debugger from the zend website, but unfortunately it only contains the binaries for PHP 5.3 (and below). I can't seem to find any mention anywhere of the Zend Debugger for PHP 5.4 ... it seems like they no longer make it and instead want you to use their full Server product instead.
Amazingly, Zend, "The PHP Company", will sell you Zend Studio, but they will not package a 5.4 version of the Studio Debugger in the related download. I would think they could get an updated version out since 5.4 has been released for over a year...
In any event, a work around has been making the rounds on the Internets.
Here is a full set of instructions for a Debian based system.
It was based largely on this Zend Forum post...
http://forums.zend.com/viewtopic.php?t=47568&f=59#p148893
The gist is to lift a 5.4 debugger file from an old Zend Server download an use it instead.
Many thanks to the original posters.
I had the same problem - however recent versions of the debuggers for php 5.3.x and php 5.4.x are included in the free version of Zend Server, so you can install that, make a copy of the .dll or .so that you need, and then uninstall it.
I did this to get at a version of ZendDebugger.dll that would work with php 5.3 and Zend Studio 10, but there is a 5.4 version of Zend Server aswell.

Set PHP version in Netbeans 7 for non-project files

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.

Categories