Closed solrevdev closed 4 years ago
looks like the problem is i nthe Cellar installation of Mono.
Try installing mono 6.6.0 from the official installer https://www.mono-project.com/download/stable/ or set "omnisharp.useGlobalMono": "never"
Success! š
Thank you @filipw that was indeed the issue!
So for completeness, these are the steps I took.
I downloaded version 6.4.0.198 from the mono site (as I have Visual Studio for macOS also installed) and ran the installer.
I then ran source .zshrc
from my terminal to refresh things followed by mono --version
So this is the version now installed globally.
I then restarted VSCode and š
I forgot to add thank you very much @filipw !
š
great š
Please paste the output from your clipboard## Issue Description ##
Steps to Reproduce
For me, running
dotnet new mvc
thencode .
in the terminal followed bydotnet build
in VSCode's terminal window compiled fine but showed approx 120 problems in VSCode's problems window.Red squiggles everywhere!
For more info and screenshots see this twitter thread https://twitter.com/solrevdev/status/1207634539469819904
Expected Behavior
Problems window in VSCode should have no errors
Actual Behavior
Problems window in VSCode full of errors
Logs
OmniSharp log
C# log
Environment information
VSCode version: 1.42.0-insider C# Extension: 1.21.9
Mono Information
OmniSharp using global mono :6.6.0Dotnet Information
.NET Core SDK (reflecting any global.json): Version: 3.1.100 Commit: cd82f021f4 Runtime Environment: OS Name: Mac OS X OS Version: 10.14 OS Platform: Darwin RID: osx.10.14-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: 3.1.100 [/usr/local/share/dotnet/sdk] .NET Core runtimes installed: Microsoft.AspNetCore.App 3.1.0 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 2.1.13 [/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-downloadVisual Studio Code Extensions
|Extension|Author|Version| |---|---|---| |advanced-new-file|patbenatar|1.2.0| |arc-plus|ph-hawkins|1.0.1| |auto-close-tag|formulahendry|0.5.6| |auto-rename-tag|formulahendry|0.1.1| |azure-account|ms-vscode|0.8.7| |bash-debug|rogalmic|0.3.6| |bash-ide-vscode|mads-hartmann|1.4.0| |beautify|HookyQR|1.5.0| |bracket-pair-colorizer|CoenraadS|1.0.61| |chat|karigari|0.31.0| |code-settings-sync|Shan|3.4.3| |code-spell-checker|streetsidesoftware|1.7.20| |code-streaming|gitduck|0.0.33| |csharp|ms-vscode|1.21.9| |csharpextensions|jchannon|1.3.1| |dark-plus-material|vangware|2.2.1| |debugger-for-chrome|msjsdiag|4.12.3| |docomment|k--kato|0.1.8| |dotenv|mikestead|1.0.1| |dotnet-test-explorer|formulahendry|0.7.1| |EditorConfig|EditorConfig|0.14.4| |editorconfiggenerator|nepaul|0.2.1| |emojisense|bierner|0.5.3| |es7-react-js-snippets|dsznajder|2.5.0| |gc-excelviewer|GrapeCity|2.1.32| |gistfs|vsls-contrib|0.0.23| |githistory|donjayamanne|0.4.11| |github-plus-theme|thenikso|1.2.1| |gitlens|eamodio|10.2.0| |horizon-theme-vscode|jolaleye|2.0.2| |html-css-class-completion|Zignd|1.19.0| |html-snippets|abusaidm|0.2.1| |identical-sublime-monokai-csharp-theme-colorizer|maximetinu|0.11.1| |linux-themes|SolarLiner|1.0.1| |LiveServer|ritwickdey|5.6.1| |LogFileHighlighter|emilast|2.6.0| |markdown-all-in-one|yzhang|2.6.1| |material-icon-theme|PKief|3.9.2| |material-palenight-theme|whizkydee|1.9.7| |material-theme|zhuangtongfa|3.2.1| |msbuild-project-tools|tintoy|0.3.2| |night-owl|sdras|1.1.3| |noctis|liviuschera|10.22.0| |npm-intellisense|christian-kohler|1.3.0| |nuget-reverse-package-search|jesschadwick|0.1.68| |one-monokai|azemoh|0.4.4| |partial-diff|ryu1kn|1.4.0| |path-intellisense|christian-kohler|1.4.2| |polacode|pnp|0.3.4| |powershell|ms-vscode|2019.12.0| |prettier-vscode|esbenp|3.17.0| |python|ms-python|2019.12.54270-dev| |quicktype|quicktype|12.0.46| |quokka-vscode|WallabyJs|1.0.267| |razor-snippets-for-asp-net-core|aledev29|0.0.3| |regex|chrmarti|0.2.0| |remote-containers|ms-vscode-remote|0.96.0| |remote-ssh|ms-vscode-remote|0.48.0| |remote-ssh-edit|ms-vscode-remote|0.48.0| |remote-ssh-explorer|ms-vscode-remote|0.48.0| |remote-wsl|ms-vscode-remote|0.41.6| |rest-client|humao|0.23.0| |roslynator|josefpihrt-vscode|2.2.0| |shell-format|foxundermoon|6.1.3| |sort-lines|Tyriar|1.9.0| |sqltools|mtxr|0.21.5| |swagger-viewer|Arjun|2.2.2| |theme-cobalt2|wesbos|2.1.6| |theme-dracula|dracula-theme|2.19.0| |theme-monokai-pro-vscode|monokai|1.1.14| |theme-panda|tinkertrain|1.3.0| |theme-setimonokai|SmukkeKim|0.0.1| |transformer|dakara|1.6.0| |vetur|octref|0.22.6| |viml|dunstontc|0.1.7| |vsc-material-theme|Equinusocio|30.0.0| |vscode-css-peek|pranaygp|3.0.2| |vscode-custom-css|be5invis|3.0.9| |vscode-docker|ms-azuretools|0.9.0| |vscode-eslint|dbaeumer|2.0.6| |vscode-firefox-debug|firefox-devtools|2.6.1| |vscode-html-css|ecmel|0.2.3| |vscode-icons|vscode-icons-team|9.6.0| |vscode-language-pack-en-GB|MS-CEINTL|1.41.2| |vscode-mysql|formulahendry|0.4.0| |vscode-npm-script|eg2|0.3.10| |vscode-nuget-package-manager|jmrog|1.1.6| |vscode-openapi|42Crunch|2.0.2| |vscode-peacock|johnpapa|3.2.0| |vscode-remote-extensionpack|ms-vscode-remote|0.19.0| |vscode-sort-json|richie5um2|1.18.0| |vscode-surround|yatki|1.0.2| |vscode-theme-onedark|akamud|2.1.0| |vscode-theme-onelight|akamud|2.1.0| |vscode-todo-plus|fabiospampinato|4.14.1| |vscode-trello-viewer|Ho-Wan|0.6.0| |vscode-typescript-tslint-plugin|ms-vscode|1.2.3| |vscode-wakatime|WakaTime|2.2.1| |vscode-yaml|redhat|0.6.1| |vscodeintellicode|VisualStudioExptTeam|1.2.2| |vsliveshare|ms-vsliveshare|1.0.1404| |vsliveshare-audio|ms-vsliveshare|0.1.80| |vsliveshare-pack|ms-vsliveshare|0.3.4| |vsonline|ms-vsonline|1.0.1424| |winteriscoming|johnpapa|1.3.0| |wrapSelection|konstantin|0.6.8| |xml|DotJoshJohnson|2.5.0|;