plugin icon indicating copy to clipboard operation
plugin copied to clipboard

[Bug]: "Replace qualifier with an import" in blade files not working when plugin enabled

Open EranNL opened this issue 1 year ago • 2 comments

Bug description

When editing a blade file, I don't have the option to replace the FQCN with an import. Disabled, that option works again. With plugin not enabled: afbeelding

When plugin enabled: afbeelding

Also notice the color that has been changed.

Plugin version

8.1.3.241

Operating system

MacOS

Steps to reproduce

  1. Call the "Show context actions" when the selector is on a FQCN.

Relevant log output

No response

EranNL avatar Mar 29 '24 17:03 EranNL

Any update?

vtimjans avatar Aug 13 '24 08:08 vtimjans

I confirm I have the same issue, I can't import a class in Blade files

maicol07 avatar Aug 29 '24 20:08 maicol07

Do you know if this issue still exists? It could be an old Blade plugin issue.

Image

adelf avatar May 30 '25 05:05 adelf

And there is another issue about it: https://youtrack.jetbrains.com/issue/WI-81479

adelf avatar May 30 '25 05:05 adelf

@adelf Thanks for picking this up. The issue still remains, but funny is that now it also does not work with the plugin disabled:

Using plugin version: 10.2.1.251 on PHPstorm 2025.2 EAP

EranNL avatar May 30 '25 20:05 EranNL

You can try to delete the vendor/_laravel_idea folder. It might help. If yes, it is a PhpStorm issue - https://youtrack.jetbrains.com/issue/WI-81479

adelf avatar May 30 '25 20:05 adelf

@adelf Don't have that folder, but I think it still is a PHPstorm issue now, since it still doesn't work when disabling the plugin

EranNL avatar May 31 '25 09:05 EranNL

Ok. Closing this for now. You can track the JetBrains issue now.

adelf avatar May 31 '25 09:05 adelf

@adelf It works (again perhaps, idk) in PHPstorm, but still not when using the plugin. So it looks like it is not merely a PHPstorm-issue.

WIth plugin disabled:

Image

With plugin enabled:

Image

EranNL avatar Jun 06 '25 10:06 EranNL

@EranNL could you try 10.2.2.251 version? If the problem still appears, could you please go to the main menu (PhpStorm, or Help) > About PhpStorm > Copy and Close, and put this info here.

adelf avatar Jun 06 '25 12:06 adelf

@adelf NIce, that does seem to work. Thanks!

EranNL avatar Jun 09 '25 12:06 EranNL