This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Go to declaration bug | ||
---|---|---|---|
Product: | php | Reporter: | GreenDrake |
Component: | Navigation | Assignee: | Tomas Mysik <tmysik> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 7.4 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | Cleaned part of very big project |
Description
GreenDrake
2014-01-17 14:20:32 UTC
I need sample (the smallest one) project where it can be reproduced. Then simply reopen. Thanks. Just one note, if itk_service() doesn't return proper object type, go to declaration can't (and will not) work. If it worked in previous versions it was just a side effect of a bug (unintended behavior) where all "same called" functions were suggested regardless their proper type. You can use var doc to set a proper type to $cache variable. /* @var $cache Lms2_Data_LoCache */ //with fully qualified name $oLo = $cache->get_lo($this->lo_id); // then gtd will work Created attachment 144088 [details]
Cleaned part of very big project
1. Attached test project with mentioned code part. 2. > Just one note, if itk_service() doesn't return proper object type, go to declaration can't (and will not) work. I cant say that all of them returns only objects (not even talking about _proper_ objects). And IDE can't really help in this situation other than enumerate all found methods (in my situation - sometimes around 10-20) with the same name. > If it worked in previous versions it was just a side effect of a bug (unintended behavior) where all "same called" functions were suggested regardless their proper type. I'm sorry, but it's PHP and how IDE can find which objects is inherited from right classes or directly the ones that we are looking? (Except @var tag of course.) By the way - 2 of 3 classes in my attachment for $cache->get_lo in fact returns valid objects, but GTD didn't work at all with it. And yes - this bug appeared about the time when 7.4 beta was released. > You can use var doc to set a proper type to $cache variable. > /* @var $cache Lms2_Data_LoCache */ //with fully qualified name Thanks, this works fine - I checked this before creating a task, but forgot to mention. Tested in clean OS with Windows 8.1, JDK 1.7.0_51 and NetBeans 7.3-7.4. Problem persists. What info do you guys need to fix this issue with php search. I'm tired to use 7.3.1 when 8.0.1 available. I have an project which search great in 7.3.1, but since 7.4 php "go to declaration" or ctrl+ mouse just dead. version 8.0.1 PHP version The "Go to declaration" (CTRL+Click or CTRL+B) has stopped working following this update (update initiated via the IDE update check). This certainly appears to be a bug as I cannot even click through to the parent of the current class or to classes in 'new' declarations. This function worked fine in 8.0 (In reply to andyr_it from comment #7) > version 8.0.1 PHP version > The "Go to declaration" (CTRL+Click or CTRL+B) has stopped working following > this update (update initiated via the IDE update check). > > This certainly appears to be a bug as I cannot even click through to the > parent of the current class or to classes in 'new' declarations. > > This function worked fine in 8.0 This is could be issue 247026. Try to delete your cache directory as described in https://netbeans.org/bugzilla/show_bug.cgi?id=247026#c3 . (In reply to Vladimir Riha from comment #8) > (In reply to andyr_it from comment #7) > > version 8.0.1 PHP version > > The "Go to declaration" (CTRL+Click or CTRL+B) has stopped working following > > this update (update initiated via the IDE update check). > > > > This certainly appears to be a bug as I cannot even click through to the > > parent of the current class or to classes in 'new' declarations. > > > > This function worked fine in 8.0 > > This is could be issue 247026. Try to delete your cache directory as > described in https://netbeans.org/bugzilla/show_bug.cgi?id=247026#c3 . Clearing the cache has resolved the issue. Thank you I deleted cache dir, but the issue is still there - search does not work. We need to fix this. Lets work on it. Have a same problem. Afeter update (auto vi system menu Help->Check update) from 8.0.0 -> 8.0.1, broke the following functions: - jump to declaration; - quick search (right top search form); - any popup help; Product Version = NetBeans IDE 8.0.1 (Build 201408251540) (#279f174c0395) Operating System = Linux version 3.13.0-35-generic running on amd64 Java; VM; Vendor = 1.7.0_51; Java HotSpot(TM) 64-Bit Server VM 24.51-b03; Oracle Corporation Runtime = Java(TM) SE Runtime Environment 1.7.0_51-b13 Java Home = /usr/lib/jvm/java-7-oracle/jre System Locale; Encoding = ru_RU (nb); UTF-8 Home Directory = /home/user Current Directory = /home/user User Directory = /home/user/.netbeans/8.0rc1 Cache Directory = /home/user/.cache/netbeans/8.0rc1 Installation = /home/user/netbeans-8.0rc1/nb /home/user/netbeans-8.0rc1/ergonomics /home/user/netbeans-8.0rc1/ide /home/user/netbeans-8.0rc1/extide /home/user/netbeans-8.0rc1/java /home/user/netbeans-8.0rc1/apisupport /home/user/netbeans-8.0rc1/webcommon /home/user/netbeans-8.0rc1/websvccommon /home/user/netbeans-8.0rc1/enterprise /home/user/netbeans-8.0rc1/mobility /home/user/netbeans-8.0rc1/profiler /home/user/netbeans-8.0rc1/php /home/user/netbeans-8.0rc1/harness /home/user/netbeans-8.0rc1/cnd /home/user/netbeans-8.0rc1/dlight /home/user/netbeans-8.0rc1/groovy /home/user/netbeans-8.0rc1/javacard /home/user/netbeans-8.0rc1/javafx /home/user/netbeans-8.0rc1/platform Boot & Ext. Classpath = /usr/lib/jvm/java-7-oracle/jre/lib/resources.jar:/usr/lib/jvm/java-7-oracle/jre/lib/rt.jar:/usr/lib/jvm/java-7-oracle/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-7-oracle/jre/lib/jsse.jar:/usr/lib/jvm/java-7-oracle/jre/lib/jce.jar:/usr/lib/jvm/java-7-oracle/jre/lib/charsets.jar:/usr/lib/jvm/java-7-oracle/jre/lib/jfr.jar:/usr/lib/jvm/java-7-oracle/jre/classes:/usr/lib/jvm/java-7-oracle/jre/lib/ext/sunpkcs11.jar:/usr/lib/jvm/java-7-oracle/jre/lib/ext/sunec.jar:/usr/lib/jvm/java-7-oracle/jre/lib/ext/localedata.jar:/usr/lib/jvm/java-7-oracle/jre/lib/ext/zipfs.jar:/usr/lib/jvm/java-7-oracle/jre/lib/ext/sunjce_provider.jar:/usr/lib/jvm/java-7-oracle/jre/lib/ext/dnsns.jar Application Classpath = /home/user/netbeans-8.0rc1/platform/lib/boot.jar:/home/user/netbeans-8.0rc1/platform/lib/org-openide-modules.jar:/home/user/netbeans-8.0rc1/platform/lib/org-openide-util.jar:/home/user/netbeans-8.0rc1/platform/lib/org-openide-util-lookup.jar:/home/user/netbeans-8.0rc1/platform/lib/locale/boot_ja.jar:/home/user/netbeans-8.0rc1/platform/lib/locale/boot_pt_BR.jar:/home/user/netbeans-8.0rc1/platform/lib/locale/boot_ru.jar:/home/user/netbeans-8.0rc1/platform/lib/locale/boot_zh_CN.jar:/home/user/netbeans-8.0rc1/platform/lib/locale/org-openide-modules_ja.jar:/home/user/netbeans-8.0rc1/platform/lib/locale/org-openide-modules_pt_BR.jar:/home/user/netbeans-8.0rc1/platform/lib/locale/org-openide-modules_ru.jar:/home/user/netbeans-8.0rc1/platform/lib/locale/org-openide-modules_zh_CN.jar:/home/user/netbeans-8.0rc1/platform/lib/locale/org-openide-util_ja.jar:/home/user/netbeans-8.0rc1/platform/lib/locale/org-openide-util-lookup_ja.jar:/home/user/netbeans-8.0rc1/platform/lib/locale/org-openide-util-lookup_pt_BR.jar:/home/user/netbeans-8.0rc1/platform/lib/locale/org-openide-util-lookup_ru.jar:/home/user/netbeans-8.0rc1/platform/lib/locale/org-openide-util-lookup_zh_CN.jar:/home/user/netbeans-8.0rc1/platform/lib/locale/org-openide-util_pt_BR.jar:/home/user/netbeans-8.0rc1/platform/lib/locale/org-openide-util_ru.jar:/home/user/netbeans-8.0rc1/platform/lib/locale/org-openide-util_zh_CN.jar:/usr/lib/jvm/java-7-oracle/lib/dt.jar:/usr/lib/jvm/java-7-oracle/lib/tools.jar Startup Classpath = /home/user/netbeans-8.0rc1/platform/core/org-openide-filesystems.jar:/home/user/netbeans-8.0rc1/platform/core/core.jar:/home/user/netbeans-8.0rc1/platform/core/locale/org-openide-filesystems_zh_CN.jar:/home/user/netbeans-8.0rc1/platform/core/locale/core_zh_CN.jar:/home/user/netbeans-8.0rc1/platform/core/locale/core_ru.jar:/home/user/netbeans-8.0rc1/platform/core/locale/org-openide-filesystems_ja.jar:/home/user/netbeans-8.0rc1/platform/core/locale/org-openide-filesystems_ru.jar:/home/user/netbeans-8.0rc1/platform/core/locale/core_ja.jar:/home/user/netbeans-8.0rc1/platform/core/locale/core_pt_BR.jar:/home/user/netbeans-8.0rc1/platform/core/locale/org-openide-filesystems_pt_BR.jar:/home/user/netbeans-8.0rc1/nb/core/org-netbeans-upgrader.jar:/home/user/netbeans-8.0rc1/nb/core/locale/core_nb_zh_CN.jar:/home/user/netbeans-8.0rc1/nb/core/locale/core_nb_pt_BR.jar:/home/user/netbeans-8.0rc1/nb/core/locale/core_nb_ru.jar:/home/user/netbeans-8.0rc1/nb/core/locale/core_nb_ja.jar:/home/user/netbeans-8.0rc1/nb/core/locale/org-netbeans-upgrader_zh_CN.jar:/home/user/netbeans-8.0rc1/nb/core/locale/org-netbeans-upgrader_ja.jar:/home/user/netbeans-8.0rc1/nb/core/locale/org-netbeans-upgrader_ru.jar:/home/user/netbeans-8.0rc1/nb/core/locale/org-netbeans-upgrader_pt_BR.jar:/home/user/netbeans-8.0rc1/nb/core/locale/core_nb.jar @vlukovni_01: Please try to close NetBeans, delete cache dir /home/user/.cache/netbeans/8.0rc1 and start NetBeans again. Vladimir, I did delete cache directory again - still search doesn't work. Let me know when you have a time I can share screen on skype or you can remote to my machine and see/debug by yourself. Regards, Vlad Look like I found starting point. Search doesn't work in my old project which was created several years ago with NB 6.x. Search is fine for new project created in NB 8.x. Now we need to figure out how to import/alter old project for search to work. Thx, Vlad Closing this issue as it seems to me that cleaning the cache directory helps. Please, submit a new issue for any other unrelated comments. Thanks. In my case the problem was fixed after clean build of this (Maven) project. And no, removing cache caused zero effect. |