-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IDEA hangs for minutes when working with frameworks like Laravel #33
Comments
Yeah -- had to disable this plugin as it's not usable in Laravel project. E.g. I have to wait like 15-20 seconds when typing each letter when typing view name in
Project is pretty much empty. I mean -- just under 40 new classes: around 15 is some "support library" and the rest is basically an control panel logic (AdminLTE based) with login/reset pwd/logout and manage admin users functionality only (.php & .blade.php files -- together under 70 new files of PHP-related code -- not counting CSS/JS and stuff). Maybe it's related to composer packages installed (e.g. "barryvdh/laravel-ide-helper" and the way how ide-helper/metadata files work)? Just in case: here is appropriate section of it:
|
Only use it on a particular expression (instead of whole file) on explicit user action like Ctrl+Space, Ctrl+Click, etc... This should fix the problem of validation lagging for several seconds each time you change code
@bazzik, thanks for your detailed description. I managed to reproduce and fix the problem (I hope for the good). The problem was that each time a file got changed the Type Provider from my plugin was triggered to resolve each expression in the file. Deep resolution of one expression takes 100+ milliseconds when some tricky abstractions (like Laravel's models) are concerned, and there are usually hundreds of expressions in a file... I disabled the Type Provider by default, so plugin will not cause reindexing hang for seconds anymore. Option to enable it back, just in case, is located at Settings -> Languages & Frameworks -> PHP -> deep-assoc-completion -> Enable Background Deep Type Provider. |
Reported by a reliable source.
Should checkout some big projects and reproduce. Then fix. Maybe put a 1 second timeout in resolver.
The text was updated successfully, but these errors were encountered: