enriquepiatti / Magicento

PHPStorm plugin for Magento developers
115 stars 35 forks source link

[Magicento2] Magento2 source code must be inside your PhpStorm project folder #314

Open ipkpjersi opened 3 years ago

ipkpjersi commented 3 years ago

Hello,

I am getting an error with Magicento2 saying that the Magento2 source code must be inside PhpStorm project folder, however, that's exactly what I have. One of my project folders is /var/www/html, and the source code is in /var/www/html/magento. I have set the path to Magento2 source as /var/www/html/magento which seems to be working but it still throws this warning.

Here is a picture of the warning, note that xdebug and Magento 2 etc themselves work fine just fine:

I am using PhpStorm 2020.2.3 on Ubuntu 18.04 Linux with Apache 2 and Magento 2.4.1.

ipkpjersi commented 3 years ago

I think this issue might be related to an issue on the official Magento plugin for PhpStorm: https://github.com/magento/magento2-phpstorm-plugin/issues/244

Edit: The workaround solution for both issues seems to be only open the Magento root folder directly but that's not ideal if you want multiple folders in the same PhpStorm window.