vscode-csharp
vscode-csharp copied to clipboard
Omnisharp fails to install on a flaky network
Issue Description
When on a flaky network the download procedure seems to silently ignore download failures and blindly proceeds to run the installation, which fails and Omnisharp complains about missing files.
Steps to Reproduce
- Be on a flaky network
- Install the extension
Expected Behavior
Installation succeeds and extension starts up.
Actual Behavior
Installation fails
Logs
Curl samples
OmniSharp log
[ERROR] Error: spawn /home/gtaillon/.vscode-server/extensions/ms-dotnettools.csharp-1.23.4/.omnisharp/1.37.3/run ENOENT
C# log
Downloading package 'OmniSharp for Linux (x64)' (47313 KB)......... Retrying from 'https://roslynomnisharp.blob.core.windows.net/releases/1.37.3/omnisharp-linux-x64-1.37.3.zip' (47313 KB)
Environment information
VSCode version: 1.50.1 C# Extension: 1.23.4
Mono Information
OmniSharp using built-in monoDotnet Information
.NET Core SDK (reflecting any global.json): Version: 3.1.403 Commit: 9e895200cdRuntime Environment: OS Name: debian OS Version: 10 OS Platform: Linux RID: debian.10-x64 Base Path: /usr/share/dotnet/sdk/3.1.403/
Host (useful for support): Version: 3.1.9 Commit: 774fc3d6a9
.NET Core SDKs installed: 2.2.402 [/usr/share/dotnet/sdk] 3.1.403 [/usr/share/dotnet/sdk]
.NET Core runtimes installed: Microsoft.AspNetCore.All 2.2.8 [/usr/share/dotnet/shared/Microsoft.AspNetCore.All] Microsoft.AspNetCore.App 2.2.8 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 3.1.9 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 2.2.8 [/usr/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 3.1.9 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
To install additional .NET Core runtimes or SDKs: https://aka.ms/dotnet-download
Visual Studio Code Extensions
Extension | Author | Version |
---|---|---|
azure-account | ms-vscode | 0.9.3 |
azurecli | ms-vscode | 0.5.0 |
azurerm-vscode-tools | msazurermtools | 0.13.0 |
csharp | ms-dotnettools | 1.23.4 |
powershell | ms-vscode | 2020.6.0 |
vscode-azurefunctions | ms-azuretools | 1.0.0 |
vscode-dotnet-runtime | ms-dotnettools | 0.1.2 |
Similar with https://github.com/OmniSharp/omnisharp-vscode/issues/1085. Now the downloading takes forever again:
Installing C# dependencies...
Platform: linux, x86_64, name=ubuntu, version=20.10
Downloading package 'OmniSharp for Linux (x64)' (47313 KB).
Can the auto updating be disabled completely? I really don't feel like waiting 30mins every time I need to do something in C#
same happen here too. extremely slow download at 20 KiB/s (monitored via "nethogs") but for other downloads its fast.
If this helpful for anyone, upon a bit of digging I found these
- It downloads from "20.60.232.193" address (gathered from "iftop" and "lsof").
- It consistently downloads from there