magento2-phpstorm-plugin icon indicating copy to clipboard operation
magento2-phpstorm-plugin copied to clipboard

Override this file in a project theme is not working

Open Hoszi opened this issue 6 months ago • 3 comments

When I right click on file and select "Override this file in a project theme" on the popup window dropdown list is empty. I am using the latest version of PHPStorm (Build #PS-251.25410.148, built on May 13, 2025) and the plugin (2025.1.1)

To Reproduce (*)

Steps to reproduce the behavior:

  1. choose any .phtml file
  2. right click and select "Override this file in a project theme"

Expected behavior (*)

The list should be filled with themes

Screenshots

Image

Please complete the following information: (*)

  • OS: Windows 11
  • PhpStorm/Intellij version: PhpStorm 2025.1.1 Build #PS-251.25410.148, built on May 13, 2025
  • Plugin Version: 2025.1.1

Hoszi avatar May 22 '25 09:05 Hoszi

Hi @Hoszi. Thank you for your report. To speed up processing of this issue, make sure that you provided sufficient information. Add a comment to assign the issue: @magento I am working on this


Join Magento Community Engineering Slack and ask your questions in #github channel.

m2-assistant[bot] avatar May 22 '25 09:05 m2-assistant[bot]

I confirm that I detect the same error, and not only in the list of themes. Nothing works anymore, even when I need to make a plugin or preference the list of modules in the project doesn't appear, so I can't select the module I want to work on and it doesn't generate the files correctly. It seems to simply no longer scan the project files correctly, so it no longer detects themes, modules, etc..

Image

SamueleMartini avatar May 23 '25 11:05 SamueleMartini

Bonjour,

Je reproduis le même souci remonté avec:

  • Version du plugin 2025.1.1
  • Version phpStorm 2025.1.1 (Build #PS-251.25410.148, built on May 13, 2025)
  • Version de Magento 2.4.7-p4

Image

Braham-M-Decade avatar May 29 '25 11:05 Braham-M-Decade

having the same issue with latest version of module and phpstorm using windows 11 and project in WSL2 ubuntu any solution ?

taoufiqaitali avatar Sep 17 '25 11:09 taoufiqaitali

I found a solution to the bug/problem.

In the .idea\magento2plugin.xml file, I had to change the value of magentoPath to $PROJECT_DIR$. After that, overwriting classes and files is possible again.

I use Windows 11 with WSL.

Virei-de avatar Oct 13 '25 22:10 Virei-de

I found a solution to the bug/problem.

In the .idea\magento2plugin.xml file, I had to change the value of magentoPath to $PROJECT_DIR$. After that, overwriting classes and files is possible again.

I use Windows 11 with WSL.

works for me, thanks for the workaround i notice that path in setting is with " \ " it work when changing to " / "

taoufiqaitali avatar Oct 14 '25 09:10 taoufiqaitali