I just wanted to code something in VSCode and the PHP-Tools-Extension seems to no longer work.
I am always getting the Message "Couldn't start client PHP Language Server" and in the Output-Window there is
[Error - 4:13:48 PM] Starting client failed
Launching server using command dotnet failed.
and in the logs there is
[2021-01-21 15:23:33.339] [renderer5] [error] spawn dotnet ENOENT: Error: spawn dotnet ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:264:19)
at onErrorNT (internal/child_process.js:456:16)
at processTicksAndRejections (internal/process/task_queues.js:81:21)
[2021-01-21 15:23:34.264] [renderer5] [error] Launching server using command dotnet failed.
I am not quite sure what the issue is.
Currently I am running the following versions:
OS: macOS Big Sur 11.1
VSCode: 1.52.1 (OSX)
PHP-Tools: v1.2.5843
dotnet: 5.0.102
I already reinstalled the PHP-Tools and checked if dotnet was available from the terminal.
Edit: I reinstalled VSCode and Dotnet as well, still the same issue.
Any suggestions on what I could try?
Greetings
Simon
Edit: I think I found one issue by executing the server directly:
~/.vscode/extensions/devsense.phptools-vscode-1.2.5843/out/server
❯ dotnet Devsense.PHP.LanguageServer.dll
It was not possible to find any compatible framework version
The framework 'Microsoft.NETCore.App', version '3.0.0' was not found.
- The following frameworks were found:
5.0.2 at [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
You can resolve the problem by installing the specified framework and/or SDK.
The specified framework can be found at:
- https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=3.0.0&arch=x64&rid=osx.11.0-x64
After installing the Dotnet 3.1 LTS there are no more errors but in VSCode I have the same issue.