Downloading package 'Razor Language Server Telemetry (Linux / x64)' (9343 KB).................... Done!
Validating download...
Integrity Check succeeded.
Installing package 'Razor Language Server Telemetry (Linux / x64)'
Finished
Using dotnet configured on PATH
Dotnet path: /usr/share/dotnet/dotnet
Activating C# + C# Dev Kit...
waiting for named pipe information from server...
Language server process exited with null
[Error - 9:39:07 AM] Microsoft.CodeAnalysis.LanguageServer client: couldn't create connection to server.
Error: Timeout. Client cound not connect to server via named pipe
at q. (/home/vscode/.vscode-server/extensions/ms-dotnettools.csharp-2.23.15-linux-x64/dist/extension.js:2:1292059)
at Generator.next ()
at s (/home/vscode/.vscode-server/extensions/ms-dotnettools.csharp-2.23.15-linux-x64/dist/extension.js:2:1281535)
Downloading package 'Razor Language Server Telemetry (Linux / x64)' (9343 KB).................... Done!
Validating download...
Integrity Check succeeded.
Installing package 'Razor Language Server Telemetry (Linux / x64)'
Finished
Using dotnet configured on PATH
Dotnet path: /usr/share/dotnet/dotnet
Activating C# + C# Dev Kit...
waiting for named pipe information from server...
Language server process exited with null
[Error - 9:39:07 AM] Microsoft.CodeAnalysis.LanguageServer client: couldn't create connection to server.
Error: Timeout. Client cound not connect to server via named pipe
at q. (/home/vscode/.vscode-server/extensions/ms-dotnettools.csharp-2.23.15-linux-x64/dist/extension.js:2:1292059)
at Generator.next ()
at s (/home/vscode/.vscode-server/extensions/ms-dotnettools.csharp-2.23.15-linux-x64/dist/extension.js:2:1281535)
Describe the Issue
When the C# Dev Kit extension is installed in an dotnet:8.0 jammy devcontainer hosted on a Apple M1 Max, the following exception is thrown.
Installing Razor Telemetry Version = 7.0.0-preview.24168.4... Platform: linux, x86_64, name=ubuntu, version=22.04
Downloading package 'Razor Language Server Telemetry (Linux / x64)' (9343 KB).................... Done! Validating download... Integrity Check succeeded. Installing package 'Razor Language Server Telemetry (Linux / x64)'
Finished
Using dotnet configured on PATH Dotnet path: /usr/share/dotnet/dotnet Activating C# + C# Dev Kit... waiting for named pipe information from server... Language server process exited with null [Error - 9:39:07 AM] Microsoft.CodeAnalysis.LanguageServer client: couldn't create connection to server. Error: Timeout. Client cound not connect to server via named pipe at q. (/home/vscode/.vscode-server/extensions/ms-dotnettools.csharp-2.23.15-linux-x64/dist/extension.js:2:1292059)
at Generator.next ()
at s (/home/vscode/.vscode-server/extensions/ms-dotnettools.csharp-2.23.15-linux-x64/dist/extension.js:2:1281535)
Steps To Reproduce
Environment:
Host: Apple M1 Max
DevContainer: Platform: linux, x86_64, name=ubuntu, version=22.04
Config:
devcontainer.json
{ "name": "Azure Functions (.NET)", "dockerComposeFile": "docker-compose.yml", "service": "app", "workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}", "forwardPorts": [ 7071, 10000, 10001, 10002 ], "otherPortsAttributes": { "onAutoForward": "ignore" }, "features": { "ghcr.io/devcontainers/features/azure-cli:1": {}, "ghcr.io/jlaundry/devcontainer-features/azure-functions-core-tools:1": {} }, "customizations": { "vscode": { // Bug fix on Mac: https://github.com/microsoft/vscode-remote-release/issues/8169 "settings": { "extensions.verifySignature": false }, "extensions": [ "ms-azuretools.vscode-azurefunctions", "ms-dotnettools.csdevkit" ] } } }
docker-compose.yml
`version: "3"
services: app: build: context: . dockerfile: Dockerfile platform: linux/amd64 volumes:
../..:/workspaces:cached command: sleep infinity network_mode: service:azurite
azurite: image: mcr.microsoft.com/azure-storage/azurite restart: unless-stopped`
Dockerfile
FROM mcr.microsoft.com/devcontainers/dotnet:8.0-jammy
Error:
Installing Razor Telemetry Version = 7.0.0-preview.24168.4... Platform: linux, x86_64, name=ubuntu, version=22.04
Downloading package 'Razor Language Server Telemetry (Linux / x64)' (9343 KB).................... Done! Validating download... Integrity Check succeeded. Installing package 'Razor Language Server Telemetry (Linux / x64)'
Finished
Using dotnet configured on PATH Dotnet path: /usr/share/dotnet/dotnet Activating C# + C# Dev Kit... waiting for named pipe information from server... Language server process exited with null [Error - 9:39:07 AM] Microsoft.CodeAnalysis.LanguageServer client: couldn't create connection to server. Error: Timeout. Client cound not connect to server via named pipe at q. (/home/vscode/.vscode-server/extensions/ms-dotnettools.csharp-2.23.15-linux-x64/dist/extension.js:2:1292059)
at Generator.next ()
at s (/home/vscode/.vscode-server/extensions/ms-dotnettools.csharp-2.23.15-linux-x64/dist/extension.js:2:1281535)
Expected Behavior
C# + C# Dev Kit activates without error.
Environment Information
OS: macOS Sonoma Visual Studio Code Version: Version: 1.88.1 (Universal) Commit: e170252f762678dec6ca2cc69aba1570769a5d39 Date: 2024-04-10T17:42:52.765Z Electron: 28.2.8 ElectronBuildId: 27744544 Chromium: 120.0.6099.291 Node.js: 18.18.2 V8: 12.0.267.19-electron.0 OS: Darwin arm64 23.4.0 C# Dev Kit Version: 1.4.29