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, NetBea
I encountered the same problem on Mac, I solved it by deleting netbeans cache directory:
MAC:
Remove following directory:
~/.netbeans/7.1.2/var/cache/
command:rm -rf ~/.netbeans/7.1.2/var/cache/
Windows XP:
Remove following directory:
C:\Documents and Settings\(user)\.netbeans\7.1.2\var\cache
Windows Vista / 7:
Remove following directory:
C:\Users\(user)\.netbeans\7.1.2\var\cache
Linux:
Remove following directory:
.netbeans/7.1.2/var/cache
LINK:Here is detailed discussion about the issue
Go to Tools->Options-> click on PHP Icon on top -> General tab -> find "Global include path" -> Add Folder -> .
This worked for me on netbeans 11
also
I got the same issue in Netbeans 11.0. My OS is Ubuntu 18.04. I solved the issue by clearing the cache of netbeans. Cache path of Netbeans 11 is
/home/USER/snap/netbeans/common/cache/11.0
Go to Tools->Options-> click on PHP Icon on top -> General tab -> find "Global include path" -> Add Folder ->
if(onLinux) { choose /var/www; } if(onWindows) { choose c:\path_to_htdocs or whatever; }
Ah, too much programming for today.. :)
For me, this repaired autocompletion and ctrl+click on method call.
For me, deleting the Cache didn't work. Deleting and recreating the project did.
For what it's worth, my Cache directory lives here:
C:\Users\{username}\AppData\Local\NetBeans\Cache
I'm using NetBeans 8.1 in Windows 7.
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\