vscode-csharp: Omnisharp fails to load
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 monoDotnet Information
.NET Core SDK (reflecting any global.json): Version: 3.1.100 Commit: cd82f021f4Runtime 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 |
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 |
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 7
- Comments: 22 (10 by maintainers)
I’m getting this same issue. I’ve worked around it by setting
"omnisharp.useGlobalMono": "always"
and installing Mono via homebrew.The current workaround - if you are affected - would be to one of the following:
I would personally recommend the latter since the MSBuild behavior with global Mono install on your machine would be better.
ouch. I reckon we could bump the bundled runtime to 6.8.0 that’s also stable already.
Downgrade to ver 1.21.9 can prevent the problem temporary…
not all MSBuild tasks would work on .NET Core which would impact non-.NET Core projects.