Closed dandev486 closed 1 year ago
Duplicate of https://github.com/dotnet/vscode-csharp/issues/5722
Until the above is resolved, I would recommend setting the dotnet.server.useOmnisharp
flag which will switch back to the old behavior.
I had a similar issue which I just found a solution that I wrote about here. Hope it helps! 🤞
Type: Bug
Issue Description
When creating a project without a solution file, the new language server seems unable to start.
In time, not sure if it is related somehow, but from the automatically collected information when opening the issue through the issue reporter, it seems that the extension is unable to identify an SDK, which can be seen in this report at
.NET SDKs installed: No SDKs were found.
, when I have two of them (and the extension itself also performed an additional installation within the extension folder - even though it seems to be just the runtime).The only active configuration for the new extension version, was to disable telemetry.
Steps to Reproduce
In a terminal, create a new console application and then open it with Visual Studio Code, with the C# Extension installed.
Expected Behavior
Language server starts and provides features such as intellisense, refactoring, etc.
Actual Behavior
Language server freezes at startup.
Logs
C# log
C# LSP Trace Logs
Environment information
VSCode version: 1.80.2 C# Extension: 2.0.320 Using OmniSharp: false
Dotnet Information
Host: Version: 7.0.9 Architecture: x64 Commit: 8e9a17b221 .NET SDKs installed: No SDKs were found. .NET runtimes installed: Microsoft.NETCore.App 7.0.9 [/home/dandev486/.config/Code/User/globalStorage/ms-dotnettools.vscode-dotnet-runtime/.dotnet/7.0.9/shared/Microsoft.NETCore.App] Other architectures found: None Environment variables: Not set global.json file: Not found Learn more: https://aka.ms/dotnet/info Download .NET: https://aka.ms/dotnet/downloadVisual Studio Code Extensions
|Extension|Author|Version|Folder Name| |---|---|---|---| |cpptools|ms-vscode|1.16.3|ms-vscode.cpptools-1.16.3-linux-x64| |csharp|ms-dotnettools|2.0.320|ms-dotnettools.csharp-2.0.320-linux-x64| |EditorConfig|EditorConfig|0.16.4|editorconfig.editorconfig-0.16.4| |python|ms-python|2023.12.0|ms-python.python-2023.12.0| |vscode-docker|ms-azuretools|1.26.0|ms-azuretools.vscode-docker-1.26.0| |vscode-dotnet-runtime|ms-dotnettools|1.6.0|ms-dotnettools.vscode-dotnet-runtime-1.6.0| |vscode-theme-onedark|akamud|2.3.0|akamud.vscode-theme-onedark-2.3.0| |vscode-theme-onelight|akamud|2.3.0|akamud.vscode-theme-onelight-2.3.0|;Extension version: 2.0.320 VS Code version: Code 1.80.2 (2ccd690cbff1569e4a83d7c43d45101f817401dc, 2023-07-27T20:41:52.615Z) OS version: Linux x64 6.1.0-10-amd64 Modes: