[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]
1.
Diagnostic data
PHP version: PHP 8.1.11 (cli) (built: Sep 29 2022 20:02:53) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.11, Copyright (c) Zend Technologies
with Zend OPcache v8.1.11, Copyright (c), by Zend Technologies
Psalm version: unknown
"Psalm Language Server" channel in the OUTPUT panel (Last 1000 lines)
```
[INFO - 7:31:06 PM] Starting language server
[WARN - 7:31:07 PM] Psalm Version could not be detected. Got "Command failed: /usr/local/bin/php -dxdebug.remote_autostart=0 -dxdebug.remote_enable=0 -dxdebug_profiler_enable=0 -f /Users/venkateshwar/projects/ascension/vendor/vimeo/psalm/psalm-language-server -- --version
". Assuming unknown
[Info - 7:31:07 PM] Connection to server got closed. Server will restart.
[WARN - 7:31:07 PM] Psalm Version could not be detected. Got "Command failed: /usr/local/bin/php -dxdebug.remote_autostart=0 -dxdebug.remote_enable=0 -dxdebug_profiler_enable=0 -f /Users/venkateshwar/projects/ascension/vendor/vimeo/psalm/psalm-language-server -- --version
". Assuming unknown
[Info - 7:31:08 PM] Connection to server got closed. Server will restart.
[WARN - 7:31:08 PM] Psalm Version could not be detected. Got "Command failed: /usr/local/bin/php -dxdebug.remote_autostart=0 -dxdebug.remote_enable=0 -dxdebug_profiler_enable=0 -f /Users/venkateshwar/projects/ascension/vendor/vimeo/psalm/psalm-language-server -- --version
". Assuming unknown
[Info - 7:31:08 PM] Connection to server got closed. Server will restart.
[WARN - 7:31:08 PM] Psalm Version could not be detected. Got "Command failed: /usr/local/bin/php -dxdebug.remote_autostart=0 -dxdebug.remote_enable=0 -dxdebug_profiler_enable=0 -f /Users/venkateshwar/projects/ascension/vendor/vimeo/psalm/psalm-language-server -- --version
". Assuming unknown
[Info - 7:31:08 PM] Connection to server got closed. Server will restart.
[WARN - 7:31:08 PM] Psalm Version could not be detected. Got "Command failed: /usr/local/bin/php -dxdebug.remote_autostart=0 -dxdebug.remote_enable=0 -dxdebug_profiler_enable=0 -f /Users/venkateshwar/projects/ascension/vendor/vimeo/psalm/psalm-language-server -- --version
". Assuming unknown
[Error - 7:31:09 PM] Connection to server got closed. Server will not be restarted.
```
Extension version: 2.7.0
VS Code version: Code 1.73.1 (Universal) (6261075646f055b99068d3688932416f2346dd3b, 2022-11-09T02:08:38.961Z)
OS version: Darwin arm64 21.4.0
Modes:
Sandboxed: No
Type: Bug
Behaviour
Expected
XXX
Actual
XXX
Steps to reproduce:
[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]
1.
Diagnostic data
PHP version: PHP 8.1.11 (cli) (built: Sep 29 2022 20:02:53) (NTS) Copyright (c) The PHP Group Zend Engine v4.1.11, Copyright (c) Zend Technologies with Zend OPcache v8.1.11, Copyright (c), by Zend Technologies
Psalm version: unknown
"Psalm Language Server" channel in the OUTPUT panel (Last 1000 lines)
``` [INFO - 7:31:06 PM] Starting language server [WARN - 7:31:07 PM] Psalm Version could not be detected. Got "Command failed: /usr/local/bin/php -dxdebug.remote_autostart=0 -dxdebug.remote_enable=0 -dxdebug_profiler_enable=0 -f /Users/venkateshwar/projects/ascension/vendor/vimeo/psalm/psalm-language-server -- --version ". Assuming unknown [Info - 7:31:07 PM] Connection to server got closed. Server will restart. [WARN - 7:31:07 PM] Psalm Version could not be detected. Got "Command failed: /usr/local/bin/php -dxdebug.remote_autostart=0 -dxdebug.remote_enable=0 -dxdebug_profiler_enable=0 -f /Users/venkateshwar/projects/ascension/vendor/vimeo/psalm/psalm-language-server -- --version ". Assuming unknown [Info - 7:31:08 PM] Connection to server got closed. Server will restart. [WARN - 7:31:08 PM] Psalm Version could not be detected. Got "Command failed: /usr/local/bin/php -dxdebug.remote_autostart=0 -dxdebug.remote_enable=0 -dxdebug_profiler_enable=0 -f /Users/venkateshwar/projects/ascension/vendor/vimeo/psalm/psalm-language-server -- --version ". Assuming unknown [Info - 7:31:08 PM] Connection to server got closed. Server will restart. [WARN - 7:31:08 PM] Psalm Version could not be detected. Got "Command failed: /usr/local/bin/php -dxdebug.remote_autostart=0 -dxdebug.remote_enable=0 -dxdebug_profiler_enable=0 -f /Users/venkateshwar/projects/ascension/vendor/vimeo/psalm/psalm-language-server -- --version ". Assuming unknown [Info - 7:31:08 PM] Connection to server got closed. Server will restart. [WARN - 7:31:08 PM] Psalm Version could not be detected. Got "Command failed: /usr/local/bin/php -dxdebug.remote_autostart=0 -dxdebug.remote_enable=0 -dxdebug_profiler_enable=0 -f /Users/venkateshwar/projects/ascension/vendor/vimeo/psalm/psalm-language-server -- --version ". Assuming unknown [Error - 7:31:09 PM] Connection to server got closed. Server will not be restarted. ```
User Settings
``` phpExecutablePath: "/usr/local/bin/php" phpExecutableArgs: ["-dxdebug.remote_autostart=0","-dxdebug.remote_enable=0","-dxdebug_profiler_enable=0"] psalmVersion: null psalmScriptPath: "vendor/vimeo/psalm/psalm-language-server" psalmScriptArgs: [] disableAutoComplete: false maxRestartCount: 5 unusedVariableDetection: false enableVerbose: false connectToServerWithTcp: false enableUseIniDefaults: false logLevel: "INFO" analyzedFileExtensions: [{"scheme":"file","language":"php"},{"scheme":"untitled","language":"php"}] configPaths: ["psalm.xml","psalm.xml.dist"] hideStatusMessageWhenRunning: true ```
Extension version: 2.7.0 VS Code version: Code 1.73.1 (Universal) (6261075646f055b99068d3688932416f2346dd3b, 2022-11-09T02:08:38.961Z) OS version: Darwin arm64 21.4.0 Modes: Sandboxed: No
System Info
|Item|Value| |---|---| |CPUs|Apple M1 Max (10 x 24)| |GPU Status|2d_canvas: enabledcanvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off| |Load (avg)|13, 19, 18| |Memory (System)|32.00GB (1.58GB free)| |Process Argv|--crash-reporter-id d452b00c-a9e6-469d-b290-65af84dfc875| |Screen Reader|no| |VM|0%|
A/B Experiments
``` vsliv368cf:30146710 vsreu685:30147344 python383:30185418 vspor879:30202332 vspor708:30202333 vspor363:30204092 vslsvsres303:30308271 pythonvspyl392:30443607 vserr242cf:30382550 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vshan820:30294714 vstes263:30335439 pythondataviewer:30285071 vscod805cf:30301675 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 cmake_vspar411:30581797 vsaa593cf:30376535 pythonvs932:30410667 cppdebug:30492333 vsclangdf:30486550 c4g48928:30535728 dsvsc012:30540252 azure-dev_surveyone:30548225 pyindex848cf:30577861 nodejswelcome1:30587005 fc301958:30595537 3biah626:30602489 gswce1:30612156 3d0df643:30613357 dbltrim-noruby:30604474 89544117:30613380 ```