php-language-server
php-language-server copied to clipboard
Extension causes high cpu load
- Issue Type:
Performance - Extension Name:
php-intellisense - Extension Version:
2.3.10 - OS Version:
Linux x64 3.10.0-957.12.2.el7.x86_64 - VSCode version:
1.34.0
:warning: Make sure to attach this file from your home-directory:
:warning:/home/jacques/felixfbecker.php-intellisense-unresponsive.cpuprofile.txt
Find more details here: https://github.com/Microsoft/vscode/wiki/Explain:-extension-causes-high-cpu-load
It looks like its spawning php and not killing (or reusing) the previous process.
Same problem on vscode 1.36.0-insider, 99% cpu load
This is a huge issue for me. I do a lot of workspace switching on very large projects (Drupal), and the parser re-runs every single time I switch projects:
Parsing file:///c:/Users/.../dev/vendor/composer/include_paths.php
(ad infinitum)
[Info - 10:52:39 AM] All 16427 PHP files parsed in 797 seconds. 572 MiB allocated.
That's 13 minutes of extremely high CPU usage every time I open a workspace. Additionally, it takes over the "Output" tab and causes my terminal tab to lose focus.
There needs to be a way to pause or halt the parser, or possibly cache the parsed files.
Huge issue for me too, using a MacBook Pro i9 processor.
Seems like this extension is not maintained anymore (looks like @felixfbecker have lack of time or will to continue maintaining it) looking at need help badges on issues as well as unanswered queries. So only options are (1) someone takes over the project (forking or being added as member) and keeps maintanance (2) Move to something more maintained
I have seen Serenata being actively maintained but am not sure if there is VSCode extension. In VSCode I have switched to Intelliphense and works fine!
@mtangoo I'll happily review a PR
Duplicate of #465 Please search first before firing off issues people. ;-) #DoYourPart
switch to PHP Intelephense
@joeyorlando I switched to Serenata and is working fine!
Still using the PHP IntelliSense on VSCode and error persist as at this moment...