“Go to declaration” does not work in Netbeans PHP

后端 未结 18 2331
眼角桃花
眼角桃花 2020-12-13 18:37

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

相关标签:
18条回答
  • 2020-12-13 19:33

    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

    0 讨论(0)
  • 2020-12-13 19:34

    I had the same problem with Netbeans 8.0.2.

    Clearing the cache had no effect then I noticed the syntax coloring was not working either. The issue was the abbreviated comment tag was not recognized <? and when I changed it to <?php then syntax coloring and Ctrl-B worked again.

    0 讨论(0)
  • 2020-12-13 19:34

    I had the same problem on ubuntu 16.04 and I solved it doing what was written here

    • Edit netbeans.conf (on Ubuntu 16.04 /etc/netbeans.conf)
    • Add the --cp:p /usr/share/java/jcodings.jar to netbeans_default_options
    0 讨论(0)
  • 2020-12-13 19:35

    OS Linux Centos 7 Netbeans 8.0.2 Problem solved Project Properties / Code Assistance Check property Extra Source Files

    0 讨论(0)
  • 2020-12-13 19:36

    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.
    0 讨论(0)
  • 2020-12-13 19:37

    In windows system, we cannot see the AppData folder directly. So we need to browse the below given path to delete the Netbeans cache: C:\Users{username}\AppData\Local\NetBeans Delete the cache folder. If it still doesn't work then delete the sub-folders inside C:\Users{username}\AppData\Roaming\NetBeans\8.2\var Then reopen your netbeans and let it scan projects.

    0 讨论(0)
提交回复
热议问题