Skip to content
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

Unable to start - The Psalm Language Server server crashed 5 times #3

Open
Loic-Hakisa opened this issue Apr 12, 2023 · 0 comments
Open

Comments

@Loic-Hakisa
Copy link

Hello,

I added psalm in vendor of the php container, and configured all settings in vscode, but I always get this kind of error at vscode startup :

vscode server is listening on 0.0.0.0: 41933

starting psalm server: docker-compose -f /CTM/back/docker-compose.yml -f /CTM/back/docker-compose.override.yml exec -T php php -d xdebug.start_with_request=no -f /var/www/html/vendor/bin/psalm-language-server -- -c /var/www/html/psalm.xml -r /var/www/html --find-dead-code --verbose --tcp=host.docker.internal:41933

Error: docker-compose sub-command exited with error code 1

Psalm process connected

Convert Local to Remote Path: file:///CTM/back file:///var/www/html

Convert Local to Remote Path: file:///CTM/back file:///var/www/html

server process stderr: Uncaught RuntimeException: PHP Error: Creation of dynamic property Psalm\Internal\LanguageServer\LanguageServer::$mapper is deprecated in /var/www/html/vendor/felixfbecker/advanced-json-rpc/lib/Dispatcher.php:53 in /var/www/html/vendor/vimeo/psalm/src/Psalm/Internal/ErrorHandler.php:66
Stack trace:
#0 /var/www/html/vendor/felixfbecker/advanced-json-rpc/lib/Dispatcher.php(53): Psalm\Internal\ErrorHandler::Psalm\Internal\{closure}(8192, 'Creation of dyn...', '/var/www/html/v...', 53)
#1 /var/www/html/vendor/vimeo/psalm/src/Psalm/Internal/LanguageServer/LanguageServer.php(116): AdvancedJsonRpc\Dispatcher->__construct(Object(Psalm\Internal\LanguageServer\LanguageServer), '/')
#2 /var/www/html/vendor/vimeo/psalm/src/Psalm/Internal/Analyzer/ProjectAnalyzer.php(481): Psalm\Internal\LanguageServer\LanguageServer->__construct(Object(Psalm\Internal\LanguageServer\ProtocolStreamReader), Object(Psalm\Internal\LanguageServer\ProtocolStreamWriter), Object(Psalm\Internal\Analyzer\ProjectAnalyzer))
#3 /var/www/html/vendor/vimeo/psalm/src/Psalm/Internal/Cli/LanguageServer.php(322): Psalm\Internal\Analyzer\ProjectAnalyzer->server('host.docker.int...', false)
#4 /var/www/html/vendor/vimeo/psalm/psalm-language-server(7): Psalm\Internal\Cli\LanguageServer::run(Array)
#5 /var/www/html/vendor/bin/psalm-language-server(120): include('/var/www/html/v...')
#6 {main}
(Psalm 4.30.0@d0bc6e25d89f649e4f36a534f330f8bb4643dd69 crashed due to an uncaught Throwable)


Psalm process disconnected

Error: docker-compose sub-command exited with error code 1

Any idea on what can be wrong ?

Best regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant