-
Notifications
You must be signed in to change notification settings - Fork 686
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
Omnisharp not working on Mac #3407
Comments
One error that stands out:
|
Looks similar to #3314 |
I have installed mono with brew
gives
and
|
After uninstalling mono with brew (
|
So the problem is (I think), mono via brew ships an older version of msbuild (16.1 vs 16.3) |
Hi @gerjandev, Glad things are working for you now. We definitely prefer the mono installer over a brew install. -Joey |
After installing all new versions (.NET Core, Mono, VS Code, Blazor template), omnisharp does not work anymore.
Logs
OmniSharp log
OmniSharp server started with Mono 6.4.0.
Path: /Users/gerjan/.vscode/extensions/ms-vscode.csharp-1.21.7/.omnisharp/1.34.7/omnisharp/OmniSharp.exe
PID: 81837
Starting OmniSharp on MacOS 10.15.1 (x64)
info: OmniSharp.Services.DotNetCliService
DotNetPath set to dotnet
info: OmniSharp.MSBuild.Discovery.MSBuildLocator
Located 2 MSBuild instance(s)
1: Mono 16.3 - "/usr/local/Cellar/mono/6.4.0.198/lib/mono/msbuild/Current/bin"
2: StandAlone 16.3 - "/Users/gerjan/.vscode/extensions/ms-vscode.csharp-1.21.7/.omnisharp/1.34.7/omnisharp/.msbuild/Current/Bin"
info: OmniSharp.MSBuild.Discovery.MSBuildLocator
Registered MSBuild instance: Mono 16.3 - "/usr/local/Cellar/mono/6.4.0.198/lib/mono/msbuild/Current/bin"
CscToolExe = csc.exe
CscToolPath = /Users/gerjan/.vscode/extensions/ms-vscode.csharp-1.21.7/.omnisharp/1.34.7/omnisharp/.msbuild/Current/Bin/Roslyn
info: OmniSharp.Cake.CakeProjectSystem
Detecting Cake files in '/Users/gerjan/Development/BlazorPortfolio'.
info: OmniSharp.Cake.CakeProjectSystem
Could not find any Cake files
info: OmniSharp.MSBuild.ProjectSystem
No solution files found in '/Users/gerjan/Development/BlazorPortfolio'
info: OmniSharp.MSBuild.ProjectManager
Queue project update for '/Users/gerjan/Development/BlazorPortfolio/BlazorPortfolio.csproj'
info: OmniSharp.Script.ScriptProjectSystem
Detecting CSX files in '/Users/gerjan/Development/BlazorPortfolio'.
info: OmniSharp.Script.ScriptProjectSystem
Could not find any CSX files
info: OmniSharp.WorkspaceInitializer
Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpFormattingWorkspaceOptionsProvider, Order: 0
info: OmniSharp.MSBuild.ProjectManager
Loading project: /Users/gerjan/Development/BlazorPortfolio/BlazorPortfolio.csproj
info: OmniSharp.WorkspaceInitializer
Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.RenameWorkspaceOptionsProvider, Order: 100
info: OmniSharp.WorkspaceInitializer
Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.EditorConfigWorkspaceOptionsProvider, Order: 200
info: OmniSharp.WorkspaceInitializer
Configuration finished.
info: OmniSharp.Stdio.Host
Omnisharp server running using Stdio at location '/Users/gerjan/Development/BlazorPortfolio' on host 81814.
info: OmniSharp.MSBuild.ProjectManager
Successfully loaded project file '/Users/gerjan/Development/BlazorPortfolio/BlazorPortfolio.csproj'.
info: OmniSharp.MSBuild.ProjectManager
Adding project '/Users/gerjan/Development/BlazorPortfolio/BlazorPortfolio.csproj'
info: OmniSharp.MSBuild.ProjectManager
Update project: BlazorPortfolio
[warn]: OmniSharp.MSBuild.PackageDependencyChecker
BlazorPortfolio: Did not find 'Microsoft.NETCore.App' in lock file.
C# log
Environment information
VSCode version: 1.40.1
C# Extension: 1.21.7
Mono Information
OmniSharp using global mono :6.4.0Dotnet Information
.NET Core SDK (reflecting any global.json): Version: 3.1.100-preview3-014645 Commit: b32d27f4b3Runtime 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-preview3-014645/
Host (useful for support):
Version: 3.1.0-preview3.19553.2
Commit: 13f35c3d86
.NET Core SDKs installed:
3.1.100-preview3-014645 [/usr/local/share/dotnet/sdk]
.NET Core runtimes installed:
Microsoft.AspNetCore.App 3.1.0-preview3.19555.2 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 3.1.0-preview3.19553.2 [/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
The text was updated successfully, but these errors were encountered: