“Go to declaration” does not work in Netbeans PHP

后端 未结 18 2332
眼角桃花
眼角桃花 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:19

    I resolved this issue deleting the nbproject directory on my project.

    After deleteting this directory, just restart your ide. It'll start going to declarations, functions and classes again.

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

    I had the same problem and resolved by installing JRE

    http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html

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

    If You working with Drupal in NetBeans and have the same ctrl+click (Go to declaration) issue:

    1. Add/associate *.module, *.inc extensions as text/x-php5 files (NetBeans > Options > Miscellaneous > Files).
    2. Close NetBeans.
    3. Clear NetBeans cache (as described above).
    4. Open the project and wait for the scanning project task to finish.
    0 讨论(0)
  • 2020-12-13 19:24

    For me, deleting the Cache folder did not work.

    Then i realized that the source files that i have opened in NetBeans, were not included as part of a project. So i went ahead and selected: File > Open Project > chose the original project folder in my htdocs (XAMPP).

    Then the declaration mapping worked like a charm. Hope it helps someone out there.

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

    For me Ctrl + Click does not work when I choose 'Put NetBeans metadata into a separate directory' when doing PHP in Netbeans 7.3.1 on Ubuntu

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

    For Linux users to delete cache:

    rm -fR /home/[user]/.cache/[netbeans_version]
    

    Then restart NetBeans.

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