"Go to declaration" does not work in Netbeans PHP "Go to declaration" does not work in Netbeans PHP php php

"Go to declaration" does not work in Netbeans PHP


As suggested by Nam, it is cache related. So another approach could be to delete the cache:

  1. Close NetBeans
  2. Delete cache folder (by default, on Linux it is located in /home/USER/.cache/netbeans)
  3. Open the project and wait for the scanning project task to finish.


Deleting the Netbeans cache and letting Netbeans rebuild the cache after start fixes the 'go to declaration' issue, as suggested by others.

On Windows 7 with Netbeans 8.0 the path to the cache is

c:\Users{username}\AppData\Local\NetBeans\Cache\


I found a workaround for myself. Share with you in case you might need it like me.

Project Property - Include Path - Add the location of the containing folder where it doesn't work/isn't loaded.

Cheers

enter image description here

enter image description here