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.

Omnisharp fails to load

See original GitHub issue

Issue Description

Omnisharp fails to load

Steps to Reproduce

Open dotnet project and look at log

Expected Behavior

omnisharp should start

Actual Behavior

image not found and the server times out when trying to load

Logs

OmniSharp log
Starting OmniSharp server at 2/3/2020, 3:56:00 PM
    Target: /Users/-/dev/app

OmniSharp server started.
    Path: /Users/-/.vscode/extensions/ms-vscode.csharp-1.21.10/.omnisharp/1.34.11-beta.9/run
    PID: 56441

dyld: Library not loaded: /Library/Frameworks/Mono.framework/Versions/6.6.0/lib/libintl.8.dylib
  Referenced from: /Users/-/.vscode/extensions/ms-vscode.csharp-1.21.10/.omnisharp/1.34.11-beta.9/bin/mono
  Reason: image not found
/Users/-/.vscode/extensions/ms-vscode.csharp-1.21.10/.omnisharp/1.34.11-beta.9/run: line 28: 56446 Abort trap: 6           "${mono_cmd}" "${omnisharp_cmd}" "$@"
[ERROR] Error: OmniSharp server load timed out. Use the 'omnisharp.projectLoadTimeout' setting to override the default delay (one minute)
C# log
Downloading package 'OmniSharp for OSX' (44823 KB).................... Done!
Validating download...
Integrity Check succeeded.
Installing package 'OmniSharp for OSX'

Downloading package '.NET Core Debugger (macOS / x64)' (41849 KB).................... Done!
Validating download...
Integrity Check succeeded.
Installing package '.NET Core Debugger (macOS / x64)'

Downloading package 'Razor Language Server (macOS / x64)' (50424 KB).................... Done!
Installing package 'Razor Language Server (macOS / x64)'

Finished

Getting latest OmniSharp version information
Downloading package 'Latest OmniSharp Version Information' (1 KB).................... Done!
Installing OmniSharp Version = 1.34.11-beta.9...
Platform: darwin, x86_64

Downloading package 'OmniSharp for OSX, Version = 1.34.11-beta.9' (44823 KB).................... Done!
Installing package 'OmniSharp for OSX, Version = 1.34.11-beta.9'

Finished

Environment information

VSCode version: 1.41.1 C# Extension: 1.21.10

Mono Information OmniSharp using built-in mono
Dotnet Information .NET Core SDK (reflecting any global.json): Version: 3.1.100 Commit: cd82f021f4

Runtime Environment: OS Name: Mac OS X OS Version: 10.15 OS Platform: Darwin RID: osx.10.15-x64 Base Path: /usr/local/share/dotnet/sdk/3.1.100/

Host (useful for support): Version: 3.1.0 Commit: 65f04fb6db

.NET Core SDKs installed: 2.2.207 [/usr/local/share/dotnet/sdk] 2.2.300 [/usr/local/share/dotnet/sdk] 3.0.100 [/usr/local/share/dotnet/sdk] 3.1.100 [/usr/local/share/dotnet/sdk]

.NET Core runtimes installed: Microsoft.AspNetCore.All 2.2.5 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All] Microsoft.AspNetCore.All 2.2.8 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All] Microsoft.AspNetCore.App 2.2.5 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 2.2.8 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 3.0.0 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 3.1.0 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 2.2.5 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 2.2.8 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 3.0.0 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 3.1.0 [/usr/local/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
alexa-skills-kit-toolkit ask-toolkit 1.0.2
amvim auiworks 1.30.0
ariake-dark wart 0.2.2
bracket-pair-colorizer-2 CoenraadS 0.0.29
code-settings-sync Shan 3.4.3
code-spell-checker streetsidesoftware 1.7.22
colonize vmsynkov 2.2.2
csharp ms-vscode 1.21.10
debugger-for-chrome msjsdiag 4.12.6
dotenv mikestead 1.0.1
dotnet-test-explorer formulahendry 0.7.1
EditorConfig EditorConfig 0.14.4
folderize ee92 0.0.5
gc-excelviewer GrapeCity 2.1.32
ginfuru-vscode-jekyll-syntax ginfuru 0.1.0
git-project-manager felipecaputo 1.7.1
gitlens eamodio 10.2.0
language-stylus sysoev 1.11.0
mssql ms-mssql 1.8.0
npm-intellisense christian-kohler 1.3.0
output-colorizer IBM 0.1.2
partial-diff ryu1kn 1.4.1
pdf tomoki1207 0.5.1
poor-mans-t-sql-formatter-vscode TaoKlerks 1.6.10
powershell ms-vscode 2020.1.0
python ms-python 2020.1.58038
regex chrmarti 0.2.0
slack-theme felipe-mendes 1.9.11
terraform mauve 1.4.0
turndown-vscode kurre 1.0.2
vsc-community-material-theme Equinusocio 1.4.0
vsc-material-theme Equinusocio 32.4.0
vsc-material-theme-icons equinusocio 1.1.3
vscode-coverage-gutters ryanluker 2.4.3
vscode-css-formatter aeschli 1.0.1
vscode-docker ms-azuretools 0.10.0
vscode-eslint dbaeumer 2.0.15
vscode-fileutils sleistner 3.0.1
vscode-github-notifications-bell fabiospampinato 2.3.1
vscode-icons vscode-icons-team 9.7.0
vscode-jekyll-snippets ginfuru 0.9.1
vscode-markdownlint DavidAnson 0.34.0
vscode-npm-script eg2 0.3.11
vscode-pull-request-github GitHub 0.14.0
vscode-sort-json richie5um2 1.18.0
vscode-stylint HaaLeo 0.1.3
vscode-zipexplorer slevesque 0.3.1
vsliveshare ms-vsliveshare 1.0.1510
vsliveshare-audio ms-vsliveshare 0.1.80
wordcount ms-vscode 0.1.0
xml DotJoshJohnson 2.5.0

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:7
  • Comments:22 (10 by maintainers)

github_iconTop GitHub Comments

9reactions
andrew-myobcommented, Feb 4, 2020

I’m getting this same issue. I’ve worked around it by setting "omnisharp.useGlobalMono": "always" and installing Mono via homebrew.

6reactions
lap888commented, Feb 4, 2020

I’m getting this same issue. I’ve worked around it by setting "omnisharp.useGlobalMono": "always" and installing Mono via homebrew.

i only update mono the problem have sloved,but "omnisharp.useGlobalMono" still is default!

brew update && brew install mono

Mono JIT compiler version 6.8.0.96 (tarball Thu Jan 16 04:16:52 GMT 2020)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
	TLS:           
	SIGSEGV:       altstack
	Notification:  kqueue
	Architecture:  amd64
	Disabled:      none
	Misc:          softdebug 
	Interpreter:   yes
	LLVM:          supported, not enabled.
	Suspend:       hybrid
	GC:            sgen (concurrent by default)
Read more comments on GitHub >

github_iconTop Results From Across the Web

Omnisharp not loading properly - Visual Studio Code and Unity
I'm able to type code and it works in unity but I would like to have autocomplete and get rid of this error...
Read more >
Omnisharp with VS Code: Error, "Project Loading Failed"
YouTube user : Axiom He explains how to fix Omnisharp loading. After I followed his video, It fixed my loading problem. On your...
Read more >
Autocomplete in unity isn't working : r/Unity3D - Reddit
[fail]: OmniSharp. ... Failed to load project file '/Users/myname/Unity Projects/FP ... Attempted to update project that is not loaded: ...
Read more >
Omnisharp not working with Mono and Unity on Gentoo
[warn]: OmniSharp.MSBuild.ProjectManager Failed to load project file '/home/okeyer/DLP/unity_projects/PReny/Assembly-CSharp.csproj'.
Read more >
In Unity + VSCode, Fixed vscode intellisense not working.
The following error was displayed in the "Output" tab of VSCode. errormessage. [warn]: OmniSharp.MSBuild.ProjectManager Failed to load ...
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