question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

C# v1.24.2 omnisharp/OmniSharp.exe"': No such file or directory.

See original GitHub issue

Environment data

dotnet --info output: VS Code version: 1.66.0 C# Extension version: 1.24.2

OmniSharp log

Starting OmniSharp server at 4/1/2022, 11:50:34 AM Target: project location

OmniSharp server started with Mono 6.8.0. Path: /Users/{{username}}/.vscode/extensions/ms-dotnettools.csharp-1.24.2-darwin-x64/.omnisharp/1.38.3-beta.31/omnisharp/OmniSharp.exe PID: 1898

Cannot open assembly ‘“/Users/chiehchihchen/.vscode/extensions/ms-dotnettools.csharp-1.24.2-darwin-x64/.omnisharp/1.38.3-beta.31/omnisharp/OmniSharp.exe”’: No such file or directory. [ERROR] Error: OmniSharp server load timed out. Use the ‘omnisharp.projectLoadTimeout’ setting to override the default delay (one minute).

Steps to reproduce

update to v1.24.2 on mac, tries to run VScode C# on mac

Expected behavior

To be able to run, use intellisense properly without issue

Actual behavior

Cannot open assembly ‘“Users/{{username}}/.vscode/extensions/ms-dotnettools.csharp-1.24.2-darwin-x64/.omnisharp/1.38.3-beta.31/omnisharp/OmniSharp.exe”’: No such file or directory. [ERROR] Error: OmniSharp server load timed out. Use the ‘omnisharp.projectLoadTimeout’ setting to override the default delay (one minute).

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
nohwndcommented, Apr 1, 2022

Fix is merged, thanks @filipw The packages for 1.24.3 are building.

2reactions
Ping-Gaocommented, Apr 1, 2022

I am having the same issue on mac, even with omnisharp 1.38.2 and ms-dotnettools.csharp 1.24.2 and "omnisharp.path":"latest not present in my .vscode/settings.json.

I have installed ms-dotnettools.csharp 1.24.1 and removed .vscode/extensions/ms-dotnettools.csharp-1.24.2-darwin-arm64 and this now works. Culprit seems to be latest version of this extension.

That worked for me, thx.

Read more comments on GitHub >

github_iconTop Results From Across the Web

vs code Problems with C# extension, Some projects have ...
ProjectManager Attempted to update project that is not loaded: /Users/zeyad/Documents/Sandbox/CSharpTut/Zeyad.csproj [info]: OmniSharp.Roslyn.
Read more >
Cannot get code completion to work in Visual Studio Code ...
Code completion does not work (see first image). This is caused I think by OmniSharp not understanding the project (?) and crashing.
Read more >
OmniSharp - Vim Awesome
OmniSharp -vim is a plugin for Vim to provide IDE like abilities for C#. OmniSharp works on Windows, and on Linux and OS...
Read more >
omnisharp-vscode - Discover .NET
.NET Framework builds of OmniSharp no longer ship with Mono or the MSBuild tooling (See announcement omnisharp-roslyn#2339). To ensure that the C# extension ......
Read more >
PSA for those writing C# in VSCode (all 10 of us): Omnisharp ...
If the path to your current C# project/solution has a space in it, Omnisharp will not work. Current work around is to copy...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found