-
Notifications
You must be signed in to change notification settings - Fork 185
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
The PHP Language Server server crashed 5 times in the last 3 minutes. The server will not be restarted. #779
Comments
Looks like you're not going to get any answer or comment from the author on this. I used to think it was because I frequently opened Vscode without running a web server, because I just wanted to browse. But I realized it also happens when the webserver IS running. And it always gives the same stupid message about " 5 times in the last 3 minutes" -- even if I opened vscode less than a minute ago. |
this is quite stupid |
I got the same error just right after opening VSCode. |
Got something similar:
php --version: |
I'm hitting the same issue on PHP 8.0.2 (Archlinux).
|
I have the same issue with PHP 8.0.2 on Ubuntu 20.04 |
I have teh same issue after update PHP version to 8.0.2.
PHP Language Server: CRITICAL Error: Call to undefined method Microsoft\PhpParser\MissingToken::getResolvedName() in /home/re_try19/.vscode/extensions/felixfbecker.php-intellisense-2.3.14/vendor/felixfbecker/language-server/src/DefinitionResolver.php:1033
Stack trace:
#0 /home/re_try19/.vscode/extensions/felixfbecker.php-intellisense-2.3.14/vendor/felixfbecker/language-server/src/DefinitionResolver.php(815): LanguageServer\DefinitionResolver->resolveClassNameToType()
#1 /home/re_try19/.vscode/extensions/felixfbecker.php-intellisense-2.3.14/vendor/felixfbecker/language-server/src/DefinitionResolver.php(827): LanguageServer\DefinitionResolver->resolveExpressionNodeToType()
#2 /home/re_try19/.vscode/extensions/felixfbecker.php-intellisense-2.3.14/vendor/felixfbecker/language-server/src/DefinitionResolver.php(682): LanguageServer\DefinitionResolver->resolveExpressionNodeToType()
#3 /home/re_try19/.vscode/extensions/felixfbecker.php-intellisense-2.3.14/vendor/felixfbecker/language-server/src/DefinitionResolver.php(404): LanguageServer\DefinitionResolver->resolveExpressionNodeToType()
#4 /home/re_try19/.vscode/extensions/felixfbecker.php-intellisense-2.3.14/vendor/felixfbecker/language-server/src/DefinitionResolver.php(331): LanguageServer\DefinitionResolver->resolveMemberAccessExpressionNodeToFqn()
#5 /home/re_try19/.vscode/extensions/felixfbecker.php-intellisense-2.3.14/vendor/felixfbecker/language-server/src/TreeAnalyzer.php(175): LanguageServer\DefinitionResolver->resolveReferenceNodeToFqn()
#6 /home/re_try19/.vscode/extensions/felixfbecker.php-intellisense-2.3.14/vendor/felixfbecker/language-server/src/TreeAnalyzer.php(124): LanguageServer\TreeAnalyzer->collectDefinitionsAndReferences()
#7 /home/re_try19/.vscode/extensions/felixfbecker.php-intellisense-2.3.14/vendor/felixfbecker/language-server/src/TreeAnalyzer.php(140): LanguageServer\TreeAnalyzer->traverse()
#8 /home/re_try19/.vscode/extensions/felixfbecker.php-intellisense-2.3.14/vendor/felixfbecker/language-server/src/TreeAnalyzer.php(140): LanguageServer\TreeAnalyzer->traverse()
#9 /home/re_try19/.vscode/extensions/felixfbecker.php-intellisense-2.3.14/vendor/felixfbecker/language-server/src/TreeAnalyzer.php(136): LanguageServer\TreeAnalyzer->traverse()
#10 /home/re_try19/.vscode/extensions/felixfbecker.php-intellisense-2.3.14/vendor/felixfbecker/language-server/src/TreeAnalyzer.php(58): LanguageServer\TreeAnalyzer->traverse()
#11 /home/re_try19/.vscode/extensions/felixfbecker.php-intellisense-2.3.14/vendor/felixfbecker/language-server/src/PhpDocument.php(147): LanguageServer\TreeAnalyzer->__construct()
#12 /home/re_try19/.vscode/extensions/felixfbecker.php-intellisense-2.3.14/vendor/felixfbecker/language-server/src/PhpDocument.php(105): LanguageServer\PhpDocument->updateContent()
#13 /home/re_try19/.vscode/extensions/felixfbecker.php-intellisense-2.3.14/vendor/felixfbecker/language-server/src/PhpDocumentLoader.php(141): LanguageServer\PhpDocument->__construct()
#14 /home/re_try19/.vscode/extensions/felixfbecker.php-intellisense-2.3.14/vendor/felixfbecker/language-server/src/PhpDocumentLoader.php(120): LanguageServer\PhpDocumentLoader->create()
#15 [internal function]: LanguageServer\PhpDocumentLoader->LanguageServer\{closure}()
#16 /home/re_try19/.vscode/extensions/felixfbecker.php-intellisense-2.3.14/vendor/sabre/event/lib/coroutine.php(70): Generator->send()
#17 /home/re_try19/.vscode/extensions/felixfbecker.php-intellisense-2.3.14/vendor/sabre/event/lib/Promise.php(242): Sabre\Event\{closure}()
#18 /home/re_try19/.vscode/extensions/felixfbecker.php-intellisense-2.3.14/vendor/sabre/event/lib/Loop/Loop.php(261): Sabre\Event\Promise->Sabre\Event\{closure}()
#19 /home/re_try19/.vscode/extensions/felixfbecker.php-intellisense-2.3.14/vendor/sabre/event/lib/Loop/Loop.php(215): Sabre\Event\Loop\Loop->runNextTicks()
#20 /home/re_try19/.vscode/extensions/felixfbecker.php-intellisense-2.3.14/vendor/sabre/event/lib/Loop/Loop.php(194): Sabre\Event\Loop\Loop->tick()
#21 /home/re_try19/.vscode/extensions/felixfbecker.php-intellisense-2.3.14/vendor/sabre/event/lib/Loop/functions.php(122): Sabre\Event\Loop\Loop->run()
#22 /home/re_try19/.vscode/extensions/felixfbecker.php-intellisense-2.3.14/vendor/felixfbecker/language-server/bin/php-language-server.php(55): Sabre\Event\Loop\run()
#23 {main} |
Same here
PHP Language Server: CRITICAL Error: Call to undefined method Microsoft\PhpParser\MissingToken::getResolvedName() in /home/webserver/.vscode-server/extensions/felixfbecker.php-intellisense-2.3.14/vendor/felixfbecker/language-server/src/DefinitionResolver.php:1033
Stack trace:
#0 /home/webserver/.vscode-server/extensions/felixfbecker.php-intellisense-2.3.14/vendor/felixfbecker/language-server/src/DefinitionResolver.php(815): LanguageServer\DefinitionResolver->resolveClassNameToType()
#1 /home/webserver/.vscode-server/extensions/felixfbecker.php-intellisense-2.3.14/vendor/felixfbecker/language-server/src/DefinitionResolver.php(827): LanguageServer\DefinitionResolver->resolveExpressionNodeToType()
#2 /home/webserver/.vscode-server/extensions/felixfbecker.php-intellisense-2.3.14/vendor/felixfbecker/language-server/src/DefinitionResolver.php(682): LanguageServer\DefinitionResolver->resolveExpressionNodeToType()
#3 /home/webserver/.vscode-server/extensions/felixfbecker.php-intellisense-2.3.14/vendor/felixfbecker/language-server/src/DefinitionResolver.php(404): LanguageServer\DefinitionResolver->resolveExpressionNodeToType()
#4 /home/webserver/.vscode-server/extensions/felixfbecker.php-intellisense-2.3.14/vendor/felixfbecker/language-server/src/DefinitionResolver.php(331): LanguageServer\DefinitionResolver->resolveMemberAccessExpressionNodeToFqn()
#5 /home/webserver/.vscode-server/extensions/felixfbecker.php-intellisense-2.3.14/vendor/felixfbecker/language-server/src/TreeAnalyzer.php(175): LanguageServer\DefinitionResolver->resolveReferenceNodeToFqn()
#6 /home/webserver/.vscode-server/extensions/felixfbecker.php-intellisense-2.3.14/vendor/felixfbecker/language-server/src/TreeAnalyzer.php(124): LanguageServer\TreeAnalyzer->collectDefinitionsAndReferences()
#7 /home/webserver/.vscode-server/extensions/felixfbecker.php-intellisense-2.3.14/vendor/felixfbecker/language-server/src/TreeAnalyzer.php(140): LanguageServer\TreeAnalyzer->traverse()
#8 /home/webserver/.vscode-server/extensions/felixfbecker.php-intellisense-2.3.14/vendor/felixfbecker/language-server/src/TreeAnalyzer.php(140): LanguageServer\TreeAnalyzer->traverse()
#9 /home/webserver/.vscode-server/extensions/felixfbecker.php-intellisense-2.3.14/vendor/felixfbecker/language-server/src/TreeAnalyzer.php(136): LanguageServer\TreeAnalyzer->traverse()
#10 /home/webserver/.vscode-server/extensions/felixfbecker.php-intellisense-2.3.14/vendor/felixfbecker/language-server/src/TreeAnalyzer.php(140): LanguageServer\TreeAnalyzer->traverse()
#11 /home/webserver/.vscode-server/extensions/felixfbecker.php-intellisense-2.3.14/vendor/felixfbecker/language-server/src/TreeAnalyzer.php(136): LanguageServer\TreeAnalyzer->traverse()
#12 /home/webserver/.vscode-server/extensions/felixfbecker.php-intellisense-2.3.14/vendor/felixfbecker/language-server/src/TreeAnalyzer.php(140): LanguageServer\TreeAnalyzer->traverse()
#13 /home/webserver/.vscode-server/extensions/felixfbecker.php-intellisense-2.3.14/vendor/felixfbecker/language-server/src/TreeAnalyzer.php(140): LanguageServer\TreeAnalyzer->traverse()
#14 /home/webserver/.vscode-server/extensions/felixfbecker.php-intellisense-2.3.14/vendor/felixfbecker/language-server/src/TreeAnalyzer.php(136): LanguageServer\TreeAnalyzer->traverse()
#15 /home/webserver/.vscode-server/extensions/felixfbecker.php-intellisense-2.3.14/vendor/felixfbecker/language-server/src/TreeAnalyzer.php(140): LanguageServer\TreeAnalyzer->traverse()
#16 /home/webserver/.vscode-server/extensions/felixfbecker.php-intellisense-2.3.14/vendor/felixfbecker/language-server/src/TreeAnalyzer.php(136): LanguageServer\TreeAnalyzer->traverse()
#17 /home/webserver/.vscode-server/extensions/felixfbecker.php-intellisense-2.3.14/vendor/felixfbecker/language-server/src/TreeAnalyzer.php(140): LanguageServer\TreeAnalyzer->traverse()
#18 /home/webserver/.vscode-server/extensions/felixfbecker.php-intellisense-2.3.14/vendor/felixfbecker/language-server/src/TreeAnalyzer.php(136): LanguageServer\TreeAnalyzer->traverse()
#19 /home/webserver/.vscode-server/extensions/felixfbecker.php-intellisense-2.3.14/vendor/felixfbecker/language-server/src/TreeAnalyzer.php(58): LanguageServer\TreeAnalyzer->traverse()
#20 /home/webserver/.vscode-server/extensions/felixfbecker.php-intellisense-2.3.14/vendor/felixfbecker/language-server/src/PhpDocument.php(147): LanguageServer\TreeAnalyzer->__construct()
#21 /home/webserver/.vscode-server/extensions/felixfbecker.php-intellisense-2.3.14/vendor/felixfbecker/language-server/src/PhpDocument.php(105): LanguageServer\PhpDocument->updateContent()
#22 /home/webserver/.vscode-server/extensions/felixfbecker.php-intellisense-2.3.14/vendor/felixfbecker/language-server/src/PhpDocumentLoader.php(141): LanguageServer\PhpDocument->__construct()
#23 /home/webserver/.vscode-server/extensions/felixfbecker.php-intellisense-2.3.14/vendor/felixfbecker/language-server/src/PhpDocumentLoader.php(120): LanguageServer\PhpDocumentLoader->create()
#24 [internal function]: LanguageServer\PhpDocumentLoader->LanguageServer\{closure}()
#25 /home/webserver/.vscode-server/extensions/felixfbecker.php-intellisense-2.3.14/vendor/sabre/event/lib/coroutine.php(70): Generator->send()
#26 /home/webserver/.vscode-server/extensions/felixfbecker.php-intellisense-2.3.14/vendor/sabre/event/lib/Promise.php(242): Sabre\Event\{closure}()
#27 /home/webserver/.vscode-server/extensions/felixfbecker.php-intellisense-2.3.14/vendor/sabre/event/lib/Loop/Loop.php(261): Sabre\Event\Promise->Sabre\Event\{closure}()
#28 /home/webserver/.vscode-server/extensions/felixfbecker.php-intellisense-2.3.14/vendor/sabre/event/lib/Loop/Loop.php(215): Sabre\Event\Loop\Loop->runNextTicks()
#29 /home/webserver/.vscode-server/extensions/felixfbecker.php-intellisense-2.3.14/vendor/sabre/event/lib/Loop/Loop.php(194): Sabre\Event\Loop\Loop->tick()
#30 /home/webserver/.vscode-server/extensions/felixfbecker.php-intellisense-2.3.14/vendor/sabre/event/lib/Loop/functions.php(122): Sabre\Event\Loop\Loop->run()
#31 /home/webserver/.vscode-server/extensions/felixfbecker.php-intellisense-2.3.14/vendor/felixfbecker/language-server/bin/php-language-server.php(55): Sabre\Event\Loop\run()
#32 {main} |
Same issue CRITICAL TypeError: Argument 2 passed to LanguageServer\Index\DependenciesIndex::setDependencyIndex() must be an instance of LanguageServer\Index\Index, bool given, called in /home/******/.vscode-server/extensions/felixfbecker.php-intellisense-2.3.13/vendor/felixfbecker/language-server/src/Indexer.php on line 164 and defined in php 7.3 UPDATE Fixed via a reset of VS code. Working as expected. |
Same error... VSCode fresh install |
Please, if anyone ever fixes the issue, let us know I am also on Ubuntu 20.04, having PHP 8 and running Valet |
I wonder if uninstalling valet and enabling Apache2 would fix the problem. |
Same here
|
In my case, running composer update inside the extension folder solve the problem :)
|
That seems to have done it for me as well. I will keep an eye out but I re-enabled it and restarted VSCODE and didn't get the popup error saying it had crashed anymore. WOoohooo THANKS. |
Thank you for sharing this. Solved the issue on my system:
|
I don't want to
I really hate showing how new I am to all of this. But it may help to understand what this exactly did to fix it as it might be useful for other such problems with other packages and extensions. What did the command composer update do when executed in the particular extensions directory. |
For me too, running composer update inside the extension folder solve the problem :) |
This worked! Thanks :) |
Thanks ! The composer update trick worked fine :) |
Composer is a PHP package manager. Running |
I'm getting a lot of: I'm on Manjaro, PHP 8.0.7 UPDATE: Okay, patience is rewarded. |
Believe it or not just let it go for about 15 to 20 mins it eventually
stops and then it works with no more crashing. That's totally what happens
when you composer update in the directory
…On Tue, Jun 22, 2021, 7:14 PM saeed410 ***@***.***> wrote:
i got this error. and when i update package with composer return same
error in cmd Infinitely.
[image: errot]
<https://user-images.githubusercontent.com/9029702/123011220-396ef580-d3d5-11eb-8068-3027ea440610.PNG>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#779 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHZ4FDMBIRUZJRCVSHAXXO3TUEKMDANCNFSM4MKVEFDQ>
.
|
I'm using Code Server (https://github.com/cdr/code-server) on Oracle Linux 8 with PHP 8.0.9 and was getting the same issue. I confirm that executing |
Thanks! This worked for my Windows 10 Pro 21H1 machine running PHP 8.0.8. |
That's doesn't work for me... I'm getting this error : `PHP Fatal error: Uncaught ArgumentCountError: array_merge() does not accept unknown named parameters in /usr/share/php/Composer/DependencyResolver/DefaultPolicy.php:84 Stack trace: Kubuntu 18.04 Any idea ? |
Open this directory open composer.js and change line download latest version of source code from ReflectionDocBlock |
Fix language server crash issue felixfbecker#779 (comment)
Still not fixed and composer update does nothing same error after.
|
I just set up mine tonight and had all kinds of errors. After I declared the PHP executable path in settings.json some errors went away and new ones came. Uninstall Intellisense or whatever pops up in the dialog box (click the Gear icon). Then restart VScode and make sure no errors, then add back the Extensions. Probably because they were all written for 7.x and we are now on 8.0 would be my guess. |
I published an updated version of this project as this one is abandoned. |
Hello,
I'm getting this error since this morning an I do not know what caused or how to resolve it. I checked other similar problems and didn't get an answer there.
My PHP version is 7.3
The text was updated successfully, but these errors were encountered: