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

Plugin doesn't seem to work in PhpStorm 2022.1.2

Open stephansteiner opened this issue 3 years ago • 3 comments

After upgrading phpStorm to 2022.1.2 the Magento2 plugin stopped working. No context menu with Magento2 related items appear, neither in the project browser nor the editor context menu.

Describe the bug (*)

After opening phpStorm 2022.1.2 with a Magento2 project, project browser context menu items related to Magento2 don't show up.

To Reproduce (*)

Open phpStorm 2022.1.2, open any magento2 project, make sure the Magento2 plugin is loaded and activated for this project. In the project browser, go to app/code and right click to open the dropdown menu. It should show below the menu item "New" some magento2 specific options (you can spot them by the magento icon in front): Magento2 Module Dependency Injection XML File (di.xml) in phpStorm 2022.1.2 these menu items are missing

Same in the editor pane: open any class file in the editor, got to a public function, right click on the line with the function definition and right click: the downdown menu should show least 3 menu items related to magento2: Create a new Plugin Override this class by a new Preference Create a new Web API declaration for this method in phpStorm 2022.1.2 these menu items are missing

Expected behavior (*)

Menu items should appear as they have done before in phpStorm 2021.3.3. When installing a older phpStorm (2021.3.3) and repeating the steps above, all context menu items reappear again.

Screenshots

Project Browser Options as in phpStorm 2021.3.3 Code editor options as in phpStorm 2021.3.3

Please complete the following information: (*)

  • OS: macOS Big Sur 11.6.7
  • PhpStorm/Intellij version: 2022.1.2 (not working) and 2021.3.3 (working)
  • Plugin Version: 4.3.1

stephansteiner avatar Jun 18 '22 06:06 stephansteiner

Hi @stephansteiner. 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


m2-assistant[bot] avatar Jun 18 '22 06:06 m2-assistant[bot]

Hello, @stephansteiner!

There is a breaking changes in the provided PhpStorm version. We are thinking about a new release that will support this version and of course it won't support previous versions...but we do not have enough closed tasks to go in live.

We will discuss what to do next.

Thank you for your report.

bohdan-harniuk avatar Jun 19 '22 09:06 bohdan-harniuk

As a temporary fix you can downgrade your PHPStorm version.

bohdan-harniuk avatar Jun 19 '22 09:06 bohdan-harniuk

Hello, @stephansteiner!

This issue was fixed by JetBrains long time ago. Sorry, for late notice.

Regards,

bohdan-harniuk avatar Aug 23 '22 10:08 bohdan-harniuk