Community
Participate
Working Groups
I press Ctrl+H for open global search dialog. I use tab "File Search". "Scope" group list 3 radio buttons 1. Workspace | 2. Selected resources | 3. Enclosing project. If I select option 2 - "Selected resources" search found nothing with message "0 matches in empty scope". So it is look like PHP editor do not capable with this option. For example I can press Ctrl+H in any other editor like Java Editor or Type Script editor. Here I see second item named as "Resource in active editor", not as "Selected resources". And it is work exactly as intended - limit search scope only to file opened in active editor.
I press Ctrl+H when PHP editor is active.
With plug-in "UI Inspector for Eclipse" https://sourceforge.net/projects/rcpinspect/ I try find source of problem. Labels meaning: ScopePart_selectedResourcesScope_text=Selecte&d resources ScopePart_selectedResourcesScope_text_editor=Resource in active e&ditor From here: https://github.com/eclipse/eclipse.platform.text/blob/master/org.eclipse.search/search/org/eclipse/search/internal/ui/SearchMessages.properties#L190 Here relevant part code of Eclipse for set second radio button text: https://github.com/eclipse/eclipse.platform.text/blob/fbe99e2e4da55425ce6b8f66d9277017ccb44735/org.eclipse.search/search/org/eclipse/search/internal/ui/ScopePart.java#L210 As I see `selectedResourcesFromContainer(fSearchDialog).size()` return 0, so label set as ScopePart_selectedResourcesScope_text. Method selectedResourcesFromContainer: https://github.com/eclipse/eclipse.platform.text/blob/fbe99e2e4da55425ce6b8f66d9277017ccb44735/org.eclipse.search/search/org/eclipse/search/internal/ui/ScopePart.java#L166 Here I stuck because not know much about how Eclipse plugins work. But maybe it help in some way.
Also I want mention "CSS editor" is capable for "Resource in active e&ditor" option. It can be more suitable for test rather "Java Editor" or "Type Script editor" because it present in PDT by default. Or "XML editor". Too work. Or "Text editor".
New Gerrit change created: https://git.eclipse.org/r/152745
Gerrit change https://git.eclipse.org/r/152745 was merged to [master]. Commit: http://git.eclipse.org/c/pdt/org.eclipse.pdt.git/commit/?id=a9bd976a3fb2bb7222b558196c61f9dd1567d731
Thank You for detailed report ;)
Any chance for test nightly build on my Eclipse? Eclipse IDE for PHP Developers Version: 2019-03 (4.11.0) Build id: 20190314-1200 https://download.eclipse.org/tools/pdt/updates/latest-nightly/ not install 7.0 version. It suggest use 6.0 version. Even not 6.3.1 installed now.
You need 2019-09 and DLTK 6 (currently is nightly). DLTK repo: http://download.eclipse.org/technology/dltk/updates-dev/latest-nightly/ Upgrade to 2019-09 is simple: https://wiki.eclipse.org/FAQ_How_do_I_upgrade_Eclipse_IDE%3F
Thanks. It is work. I only do update Eclipse from http://download.eclipse.org/releases/2019-09/ All other it do self. Maybe because I add all other update sites before. I not installed DLTK 6 manually. Can confirm issue fixed now. Thanks for fast fix.
PDT is still compatible with DLTK 5.x But 6.0 fixes problem with frozing during startup ;)