dotnet / dotnet/vscode-dotnet-runtime

Bicep language service does not work in WSL because it cannot install .Net

Open
#309 5 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
209
Forks
455
PR merge metrics
No merged PRs in 30d

Description

**Repro steps:**

1. I downloaded the extension and opened a bicep file. The language server started working and it shouted that it cannot download .Net.

2. I tried to install .Net manually. And the SDK version is: 5.0.401.
One important thing is that I'm running WSL (Ubuntu 20.04). On Windows, the language server works without problems

**Extension Version:** 1.0.0
**Error Message:** .NET Acquisition Failed: Installation failed: Error: Command failed: "/home/anonymous/.vscode-server/extensions/ms-dotnettools.vscode-dotnet-runtime-1.3.0/dist/install scripts/dotnet-install.sh" -InstallDir "/home/anonymous/.vscode-server/data/User/globalStorage/ms-dotnettools.vscode-dotnet-runtime/.dotnet/5.0.10" -Version 5.0.10 -Runtime dotnet
/home/anonymous/.vscode-server/extensions/ms-dotnettools.vscode-dotnet-runtime-1.3.0/dist/install scripts/dotnet-install.sh: 7: Syntax error: newline unexpected

**Error Stack:** Error: .NET Acquisition Failed: Installation failed: Error: Command failed: "/home/anonymous/.vscode-server/extensions/ms-dotnettools.vscode-dotnet-runtime-1.3.0/dist/install scripts/dotnet-install.sh" -InstallDir "/home/anonymous/.vscode-server/data/User/globalStorage/ms-dotnettools.vscode-dotnet-runtime/.dotnet/5.0.10" -Version 5.0.10 -Runtime dotnet
/home/anonymous/.vscode-server/extensions/ms-dotnettools.vscode-dotnet-runtime-1.3.0/dist/install scripts/dotnet-install.sh: 7: Syntax error: newline unexpected

at /home/anonymous/.vscode-server/extensions/ms-dotnettools.vscode-dotnet-runtime-1.3.0/dist/extension.js:2:13778
at processTicksAndRejections (internal/process/task_queues.js:93:5)

The file located at /home//.vscode-server/data/logs/20210928T101017/exthost5/ms-dotnettools.vscode-dotnet-runtime/DotNetAcquisition-ms-dotnettools.vscode-dotnet-runtime-1633010973546.txt was empty

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.