-
-
Notifications
You must be signed in to change notification settings - Fork 123
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
phpactor.WARNING: Killed process "3356912" because it lived longer than 5s #2655
Comments
Well, since you already know what command is failing from your log message you could run this command with Xdebug enabled and see where it spends most of it's time. |
I enabled xdebug, set the log level to xdebug, and then opened one of the larger files. There is nothing that seems to take a particularly long time, but there are a lot, hundreds, of messages "...Could not find internal stub for xxx", and those then may add up i assume. The log is attached. Any idea how to teach phpactor about the structure of this laravel project? |
I mean that's interesting to see. Looks like it takes a long time to resolve classes. Are you using composer in this project? What does the profile from XDebug say? |
Yes its using composer; i installed xdebug and enabled it, but i am not sure how to find out what xdebug profile says. I feel like i just need to teach phpactor where the code is. bullet point 'ide_helper' or something like this. Or some configuration issue. For example in the logfile on line 35 it says
Well it should not be Class "App\Http\Controllers\App\Http\Controllers", jut App\Http\Controllers. Its somehow doubling up the path. |
So there are a few things that you can try. (I don't have an idea what specifically could be the problem):
|
Hello friends,
i am using neovim 0.95 with the lazy plugin, native LSP + phpactor (via mason) for my laravel project. On smaller files, things run smoothly. On larger files, lets say 1000 Lines, i don't get any annotations / linting and instead get an error message in the log file that reads like this:
[2024-05-14 07:12:16] phpactor.WARNING: Killed process "3356912" ('/usr/bin/php8.1' '/root/.local/share/nvim/mason/bin/phpactor' 'language-server:diagnostics' '--uri=file:///srv/www/test/app/Http/Controllers/MessageController.php' '--config-extra={"worse_reflection.enable_context_location": false}') because it lived longer than 5s {"channel":"LSP"} []
How to start troubleshooting this? My project isn't that large/complex i think, how can i help phpactor understand the project more easily so it doesn't choke? phpactor index:build -vvv will finish in ~2 seconds and report no errors, all green.
The text was updated successfully, but these errors were encountered: