The PHP Language Server server crashed 5 times in the last 3 minutes. The server will not be restarted
Asked Answered
A

5

12

I have this error in my vscode after I upgraded to PHP8.

enter image description here

I tried to increase my memory_limit to 4GB or 8GB as this link described.

enter image description here

also, I using the v2.3.14 (last version) of the PHP IntelliSense extension.

enter image description here

Aimeeaimil answered 1/3, 2021 at 16:2 Comment(5)
Kindly check the log and output that Help / Toggle Developer Tools, tab ConsoleCincinnati
Disable it and contact the author. Also make sure that installed version of plugin supports your PHP version and update it if required.Transcendent
Check your PHP Error logs and resolve issues that they present.Winkelman
If you are using PHP 8 then PHP IntelliSense may not be ready for PHP 8 as version 2.3.14 was only made in late 2019.Winkelman
@Winkelman You are probably right about 2019 made but I'm checking the errors as you mentioned for getting closer to solve the problem. thank you.Aimeeaimil
K
24

Since my initial answer is from 2021 and in the meanwhile the extension is not maintained anymore, I recommend to follow the answer of air-dex below.


This fixed it for me on PHP 8.0.3:

cd ~/.vscode/extensions/felixfbecker.php-intellisense-2.3.14/

composer update

https://github.com/felixfbecker/php-language-server/issues/779

Kep answered 25/3, 2021 at 14:4 Comment(6)
I try to run this command on 8.0.7 Win 10, but it seems to be going in some sort of infinite loop of deprecation error message, Is that normal? as I waited for 5 minute but it keep going. and then I quit the command.Udometer
@SumitGupta same with me, have you fixed it?Rolypoly
@SumitGupta Maybe this can help you, since Windows may not recognize the "~" (tilde)Kep
Well After I break my loop (Ctrl + C) I just restart Code and it works fine without issue. so I never rerun command or do anything after that and it works.Udometer
Got the same deprecation loopRuggles
Same depreciation loop. My solution was to uninstall this extension.Subteen
S
7

Looks like Felix Becker's Extension is now unmaintained. I fixed the issue by replacing his extension with Damjan Cvetko's PHP IntelliSense, which is a maintained fork of this one: https://marketplace.visualstudio.com/items?itemName=zobo.php-intellisense

Sap answered 9/8, 2022 at 14:2 Comment(0)
M
5

I also had same issue on WSL2 Ubuntu 20.04.2 LTS trying to use PHP 8.0.2, although my vscode server path is slightly different. Ran the update, reopened vscode and everything is working like it should.

cd ~/.vscode-server/extensions/felixfbecker.php-intellisense-2.3.14/
composer update
Mining answered 25/4, 2021 at 14:36 Comment(0)
H
0

The problem for me is that I had both extensions installed. Uninstalling felix's solved the issue.

Hawking answered 10/5, 2023 at 12:57 Comment(1)
This does not really answer the question. If you have a different question, you can ask it by clicking Ask Question. To get notified when this question gets new answers, you can follow this question. Once you have enough reputation, you can also add a bounty to draw more attention to this question. - From ReviewTing
B
-1

The simplest way is:

uninstall

reload

install

Bodrogi answered 31/5, 2023 at 22:13 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.