plugin
plugin copied to clipboard
[Bug]: Laravel Idea plugin menu disappears during initial indexing (Package Develpment Only)
Bug description
Laravel Idea plugin menu disappears during initial indexing, and the regular pop-up window no longer opens. Everything was working fine until the latest update. Please advise.
Plugin version
5.7.0.221
Operating system
MacOS
Steps to reproduce
Start PhpStorm. Watching the Laravel menu item appear, then disappear, then appear again after a second, then after a while, it disappears completely. Clicking while it is visible does nothing.
No errors are thrown by the IDE, at least no visible ones. Tried upgrading and downgrading PHPStorm -- currently back on 2022.1.3. The issue persists on 1.4 also.
I tried to invalidate the project caches, repair IDE, restarted PhpStorm multiple times, and uninstalled and reinstalled the Laravel Idea plugin, all to no avail.
Hope this helps!
Relevant log output
No response
I just realized that the plugin is working correctly in another project. A closer inspection revealed that it was disabled in the Laravel Idea settings, and I turned it back on manually -- I am working inside a package skeleton directory from Spatie.
The plugin seemed to have been working in package projects right out of the box before. Was this a newly added functionality?
Hi. I fetch all composer packages installed and try to find one of these packages there:
"laravel/framework" "laravel/lumen-framework" "illuminate/support" "laravel-zero/framework"
Seems, that one package had one of these dependencies and removed it. Maybe changed "illuminate/support" to "illuminate/contracts". Probably I can include "illuminate/contracts" to this list...
I've created a new project with this skeleton. Everything is ok after installing all packages by composer install. It might need a restart to work properly, but usually, it's not needed.
@adelf Thank you! I'll try it out and let you know. Updated the Laravel Idea plugin to the latest version last night.
@adelf
Ok, I can still confirm that unless manually enabled, the Laravel Idea plugin still does not load when developing packages.
To clarify, when just a package source directory is opened in PHPStorm, the Laravel Idea menu item shows on startup but does not do anything, then disappears on its own. It needs to be turned on manually — in Settings / Languages & Frameworks / Laravel Idea, Plugin Enabled needs to be set to Manual for it to appear and work.
It works fine when opening a blank Laravel app, creating a packages directory, and symlinking to packages there. However, things are obviously created in the main app, and not in the package directory.
Perhaps this is the correct behavior, and I never noticed that it did not work in a package opened on its own before? Or did it?
Anyway, this is definitely not a showstopper. From the bottom of my heart, thank you for the amazingly useful tool you have created, Adel! A real-time-saver!
Thank you, Ty. I'll try to reproduce this.
Please let me know if there is any information I can provide that could be helpful to you — screencasts, logs, etc.