pdt icon indicating copy to clipboard operation
pdt copied to clipboard

Ctrt+Shift+T (Open PHP Type) finds nothing when you paste a class name into search box

Open pounard opened this issue 5 years ago • 7 comments

I don't know from when it happens, as far as I know I always known that bug. When I open the quick type search using CTRL+Shift+T and paste a type name in the search box, result remains always empty.

When I type using my keyboard the type name, it finds it.

I'm not sure, but it might behave the same with all other quick search dialogs.

Version is:

Eclipse IDE for PHP Developers (includes Incubating components)
Version: 2020-06 (4.16.0)
Build id: 20200615-1200

I have quite a few addons installed, including PDT Extensions, I in that regard, it might be one of them messing up, but I'm not sure.

  • OS: Running ArchLinux, uname output: Linux guinevere 5.7.6-arch1-1 #1 SMP PREEMPT Thu, 25 Jun 2020 00:14:47 +0000 x86_64 GNU/Linux

pounard avatar Jul 03 '20 07:07 pounard

Strange I cannot reproduce on Mac. Open Type -> paste name and it's visible. You trying to paste simple name like "DateTime" or FQN that not working in general?

zulus avatar Jul 10 '20 11:07 zulus

When pasting a class local name (i.e. not pasting Vendor\App\SomeClass but just SomeClass for example).

I'll retry with a fresh install / new workspace, I'm currently setting up a new dev box, I'll try it and report back to you.

pounard avatar Jul 10 '20 12:07 pounard

As a side/off-topic note, that's annoying to type *SomeThing to match SomeThing inside of words, could it be possible to have the search behaviour to be contains and not starts with per default ? Having this behaviour configurable and to be manually enabled on a per-workspace basis would be fine.

pounard avatar Jul 10 '20 13:07 pounard

As a side/off-topic note, that's annoying to type *SomeThing to match SomeThing inside of words, could it be possible to have the search behaviour to be contains and not starts with per default ? Having this behaviour configurable and to be manually enabled on a per-workspace basis would be fine.

It's easy to implement, for now we use similar approach to JDT/CDT. You can open enhancement request for this.

zulus avatar Jul 10 '20 13:07 zulus

You can open enhancement request for this.

Right, I'll do, thanks.

pounard avatar Jul 11 '20 14:07 pounard

Strange I cannot reproduce on Mac. Open Type -> paste name and it's visible. You trying to paste simple name like "DateTime" or FQN that not working in general?

Just tried right now. I have a class whose FQDN is \Goat\Dispatcher\Dispatcher when I paste only Dispatcher, nothing appears, when I paste the FQDN (with or without the leading \) as well, still nothing. When I type manually the type, it works (so it seems to be correctly indexed).

I have a base "Eclipse for PHP developer" fresh install (latest tarball download from eclipse.org 2 days ago) no plugin were manually installed.

In the logs, I have nothing but:

eclipse.buildId=4.16.0.I20200604-0540
java.version=1.8.0_252
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=fr_FR
Framework arguments:  -product org.eclipse.epp.package.php.product
Command-line arguments:  -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.php.product

org.eclipse.wst.html.ui
Info
Sat Jul 11 16:37:06 CEST 2020
No line style provider for org.eclipse.wst.html.SCRIPT.EVENTHANDLER

Hundred of times following each other.

I'm still using linux 64 bits version, no specific configuration was done to Eclipse.

I know that in the past, tons of GTK related bugs were opened in SWT, but I found nothing about paste events.

pounard avatar Jul 11 '20 14:07 pounard

Same issue here with Linux Mint 20 Ulyana

mauz avatar Mar 19 '21 11:03 mauz