Here's the error stack for VSCode: https://zerobin.net/?f856ac131aee6c2e#Ijt4gibjAb9gMF08zhdBTuklDno3b1uKfE/YPIRdUzc=
Stack overflow in Symfony project
@6h4n3m thank you for the details!
We have fixed related issues already, but this is a new one. We'll try to fix it asap.
We have fixed this one; will be ready in the next update.
Although even we have tested large codebases by ourselves, it is possible there will occur a similar problem somewhere else - in such a case - we'll be glad for the stack traces again.
Thank you!
JakubMisek Much appreciated, will this be available in 1.61.15267 or the update after that?
@6h4n3m yes, 1.61.15267
(and newer) should fix the issue (https://www.devsense.com/en/download).
Please let me know if it helps, thank you!
JakubMisek Issue is fixed, much appreciated (only tested Visual Studio 2022, didn't know how to get the preview version for VS Code).
Thank you for the confirmation!
Version for VSCode will be released soon
VSCode update has been released.
I hope it will work for you! Thank you for reporting the issue, and for any other feedback.
I have a similar problem. The PHP Language server keeps crashing and is subsequently being shut down: "The PHP Language Server server crashed 5 times in the last 3 minutes. The server will not be restarted.". The last two days it worked with the same project. After upgrading VSCode to 1.74.3 I'm back to the language server crashing after every startup of VSCode. I'm working on an M1 Pro MBP with macOS 12.6.2. What do you need from me in order to be able to help?
derfony Here's the stack trace: https://zerobin.net/?57df9977c1161328#im6ek81T+bFV7PSZ4uORtPwu8QmJoNMbM7FPILcHZrM=
derfony thank you! I'll try to release the fix within today
derfony we have fixed the code that causes this; however, we don't have any reproducible test cases.
Basically, there will be a very long expression in your workspace; I'd assume a string concatenation (thousands of .
) or another binary operator. This is probably in some generated PHP code.
We'll try to make such code and test the rest of the extension to see if it survives.
JakubMisek Thanks for your reply. I'm working on TYPO3-projects using Docker and DDEV. TYPO3 generates PHP-files that it caches in a temporary directory that resides withinside the workspace root. I tried emptying the respective folder (as it will be regenerated once any of the TYPO3-code is called anyway) and this helped me to start VSCode without the PHP Language Server crashing.
JakubMisek Now I've upgraded a project to a different TYPO3 Version (11LTS instead of 10LTS) and removing the generated code in var/cache
inside the workspace root does not help anymore. PHP version remained the same with 7.4.33. The PHP-Language-Server still works in projects using TYPO3 10LTS. Here's the stack trace: https://zerobin.net/?918a8a2a1dbbb220#wBP732OAH4+NRokthIgWE9pFGlXowxUFjnn+AD5gr6k=
derfony thank you for the update, and for the stack trace!
I'll try to fix it within the next update.
derfony Do you have the latest version, we should have fixed that on January '23 :/
JakubMisek Thanks @JakubMisek for again looking into the issue. I have version v1.26.11866 installed, from January 9th.
derfony the current version is 1.33
. I strongly recommend updating https://marketplace.visualstudio.com/items/DEVSENSE.phptools-vscode/changelog
JakubMisek My VSCode tells me there are no extensions to update. Weird. Will look into that, thanks for your help!