"Go to declaration" does not work in Netbeans PHP

Nam G VU picture Nam G VU · Dec 3, 2011 · Viewed 21.4k times · Source

Some of my defined classes are not loaded by the IDE when I call Ctrl+B, Go to declaration, Ctrl+click.

I'm using Windows 7, NetBeans, PHP 7.0.1

My classes are defined under <project-root>/foloder00/folder01/folder02/MyClass.php

I call MyClass <project-root>/index.php

Do you know what the problem is? And the workaround?

Answer

WonderLand picture WonderLand · Sep 27, 2012

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.