Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to download omnisharp binary and start omnisharp process #7966

Open
itn3000 opened this issue Feb 6, 2025 · 1 comment
Open

Failed to download omnisharp binary and start omnisharp process #7966

itn3000 opened this issue Feb 6, 2025 · 1 comment

Comments

@itn3000
Copy link

itn3000 commented Feb 6, 2025

Issue Description

Steps to Reproduce

  1. install C# extension
  2. set omnisharp.useModernNet=true and dotnet.server.useOmnisharp=true in vscode's settings.json
  3. create new csharp project with dotnet new console
  4. open directory with vscode

Expected Behavior

omnisharp will be downloaded from internet and start omnisharp process.

Actual Behavior

omnisharp downloading is failed and cannot start omnisharp process

Logs

OmniSharp log

Post the output from Output-->OmniSharp log here
[STDERR] Could not execute because the specified command or file was not found.

C# log

Post the output from Output-->C# here
2025-02-06 02:56:42.555 [info] Downloading package 'Razor Language Server for OmniSharp (Linux / x64)' 
2025-02-06 02:56:42.555 [info] Failed at stage: downloadPackage

2025-02-06 02:56:42.555 [info] TypeError: Cannot read properties of undefined (reading 'HttpsProxyAgent')

Environment information

VSCode version: 1.96.4
C# Extension: 2.63.32
Using OmniSharp: true

Mono Information Unable to find Mono. Ensure that Mono's '/bin' folder is added to your environment's PATH variable.
Dotnet Information .NET SDK: Version: 8.0.404 Commit: 7b190310f2 Workload version: 8.0.400-manifests.7ab0bf57 MSBuild version: 17.11.9+a69bbaaf5

Runtime Environment:
OS Name: ubuntu
OS Version: 24.04
OS Platform: Linux
RID: ubuntu.24.04-x64
Base Path: /usr/lib/dotnet/sdk/8.0.404/

.NET workloads installed:
Configured to use loose manifests when installing new manifests.
There are no installed workloads to display.

Host:
Version: 8.0.12
Architecture: x64
Commit: 89ef51c5d8

.NET SDKs installed:
6.0.428 [/usr/lib/dotnet/sdk]
8.0.112 [/usr/lib/dotnet/sdk]
8.0.404 [/usr/lib/dotnet/sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 6.0.36 [/usr/lib/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 8.0.8 [/usr/lib/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 8.0.11 [/usr/lib/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 8.0.12 [/usr/lib/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.36 [/usr/lib/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.8 [/usr/lib/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.11 [/usr/lib/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.12 [/usr/lib/dotnet/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/download

Visual Studio Code Extensions
Extension Author Version Folder Name
csharp ms-dotnettools 2.63.32 ms-dotnettools.csharp-2.63.32-linux-x64
csharp-ls vytautassurvila 0.0.24 vytautassurvila.csharp-ls-0.0.24
terraform hashicorp 2.34.3 hashicorp.terraform-2.34.3-linux-x64
vscode-dotnet-runtime ms-dotnettools 2.2.6 ms-dotnettools.vscode-dotnet-runtime-2.2.6
@hansWurst-creator
Copy link

hansWurst-creator commented Feb 11, 2025

Starting OmniSharp server at 2/11/2025, 9:36:24 AM
    Target: c:\vscode_Development\GrobODA\GrobODA.sln

OmniSharp server started with .NET 9.0.102
.
    Path: c:\Users\zindathmi\.vscode\extensions\ms-dotnettools.csharp-2.63.32-win32-x64\.omnisharp\1.39.12-net6.0\OmniSharp.dll
    PID: 17872

[STDERR] Could not execute because the specified command or file was not found.

Possible reasons for this include:
* You misspelled a built-in dotnet command.
* You intended to execute a .NET program, but dotnet-c:\Users\zindathmi\.vscode\extensions\ms-dotnettools.csharp-2.63.32-win32-x64\.omnisharp\1.39.12-net6.0\OmniSharp.dll does not exist.
* You intended to run a global tool, but a dotnet-prefixed executable with this name could not be found on the PATH.
[ERROR] Error: OmniSharp server load timed out. Use the 'omnisharp.projectLoadTimeout' setting to override the default delay (one minute).

also broken here

reverting back to version 2.63.28 fixes this problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants