Closed anfomin closed 6 years ago
I have similar problem as well.
Just in case, here is my log.
```
Starting OmniSharp server at 5/11/2018, 7:32:31 AM
Target: /Users/dbogatov/Desktop/CS-562/Project-Code
OmniSharp server started with Mono 5.4.1
Path: /Users/dbogatov/.vscode/extensions/ms-vscode.csharp-1.15.0/.omnisharp/1.30.0/omnisharp/OmniSharp.exe
PID: 45618
[info]: OmniSharp.Stdio.Host
Starting OmniSharp on MacOS 10.13.4 (x64)
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
Located 1 MSBuild instance(s)
1: StandAlone 15.0 - "/Users/dbogatov/.vscode/extensions/ms-vscode.csharp-1.15.0/.omnisharp/1.30.0/omnisharp/msbuild/15.0/Bin"
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
MSBUILD_EXE_PATH environment variable set to '/Users/dbogatov/.vscode/extensions/ms-vscode.csharp-1.15.0/.omnisharp/1.30.0/omnisharp/msbuild/15.0/Bin/MSBuild.dll'
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
Registered MSBuild instance: StandAlone 15.0 - "/Users/dbogatov/.vscode/extensions/ms-vscode.csharp-1.15.0/.omnisharp/1.30.0/omnisharp/msbuild/15.0/Bin"
MSBuildExtensionsPath = /Users/dbogatov/.vscode/extensions/ms-vscode.csharp-1.15.0/.omnisharp/1.30.0/omnisharp/msbuild
BypassFrameworkInstallChecks = true
CscToolPath = /Users/dbogatov/.vscode/extensions/ms-vscode.csharp-1.15.0/.omnisharp/1.30.0/omnisharp/msbuild/15.0/Bin/Roslyn
CscToolExe = csc.exe
MSBuildToolsPath = /Users/dbogatov/.vscode/extensions/ms-vscode.csharp-1.15.0/.omnisharp/1.30.0/omnisharp/msbuild/15.0/Bin
TargetFrameworkRootPath = /usr/local/Cellar/mono/5.4.1.6/lib/mono/xbuild-frameworks
[info]: OmniSharp.Cake.CakeProjectSystem
Detecting Cake files in '/Users/dbogatov/Desktop/CS-562/Project-Code'.
[info]: OmniSharp.Cake.CakeProjectSystem
Could not find any Cake files
[info]: OmniSharp.DotNet.DotNetProjectSystem
Initializing in /Users/dbogatov/Desktop/CS-562/Project-Code
[info]: OmniSharp.DotNet.DotNetProjectSystem
Auto package restore: False
[info]: OmniSharp.DotNet.DotNetProjectSystem
Update workspace context
[info]: OmniSharp.DotNet.DotNetProjectSystem
Resolving projects references
[info]: OmniSharp.MSBuild.ProjectSystem
No solution files found in '/Users/dbogatov/Desktop/CS-562/Project-Code'
[info]: OmniSharp.MSBuild.ProjectManager
Queue project update for '/Users/dbogatov/Desktop/CS-562/Project-Code/src/b-plus-tree/b-plus-tree.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
Queue project update for '/Users/dbogatov/Desktop/CS-562/Project-Code/src/cli/cli.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
Queue project update for '/Users/dbogatov/Desktop/CS-562/Project-Code/src/ore-schemes/cryptdb-ope/cryptdb-ope.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
Queue project update for '/Users/dbogatov/Desktop/CS-562/Project-Code/src/ore-schemes/practical-ore/practical-ore.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
Queue project update for '/Users/dbogatov/Desktop/CS-562/Project-Code/src/ore-schemes/shared/shared.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
Queue project update for '/Users/dbogatov/Desktop/CS-562/Project-Code/src/simulator/simulator.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
Queue project update for '/Users/dbogatov/Desktop/CS-562/Project-Code/test/test.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
Queue project update for '/Users/dbogatov/Desktop/CS-562/Project-Code/tools/data-gen/data-gen.csproj'
[info]: OmniSharp.Script.ScriptProjectSystem
Detecting CSX files in '/Users/dbogatov/Desktop/CS-562/Project-Code'.
[info]: OmniSharp.Script.ScriptProjectSystem
Could not find any CSX files
[info]: OmniSharp.Stdio.Host
Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpWorkspaceOptionsProvider
[info]: OmniSharp.Stdio.Host
Configuration finished.
[info]: OmniSharp.Stdio.Host
Omnisharp server running using Stdio at location '/Users/dbogatov/Desktop/CS-562/Project-Code' on host 45521.
[info]: OmniSharp.MSBuild.ProjectManager
Loading project: /Users/dbogatov/Desktop/CS-562/Project-Code/src/b-plus-tree/b-plus-tree.csproj
[info]: OmniSharp.MSBuild.ProjectManager
Adding project '/Users/dbogatov/Desktop/CS-562/Project-Code/src/b-plus-tree/b-plus-tree.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
Loading project: /Users/dbogatov/Desktop/CS-562/Project-Code/src/cli/cli.csproj
[info]: OmniSharp.MSBuild.ProjectManager
Adding project '/Users/dbogatov/Desktop/CS-562/Project-Code/src/cli/cli.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
Loading project: /Users/dbogatov/Desktop/CS-562/Project-Code/src/ore-schemes/cryptdb-ope/cryptdb-ope.csproj
[info]: OmniSharp.MSBuild.ProjectManager
Adding project '/Users/dbogatov/Desktop/CS-562/Project-Code/src/ore-schemes/cryptdb-ope/cryptdb-ope.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
Loading project: /Users/dbogatov/Desktop/CS-562/Project-Code/src/ore-schemes/practical-ore/practical-ore.csproj
[info]: OmniSharp.MSBuild.ProjectManager
Adding project '/Users/dbogatov/Desktop/CS-562/Project-Code/src/ore-schemes/practical-ore/practical-ore.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
Loading project: /Users/dbogatov/Desktop/CS-562/Project-Code/src/ore-schemes/shared/shared.csproj
[info]: OmniSharp.MSBuild.ProjectManager
Adding project '/Users/dbogatov/Desktop/CS-562/Project-Code/src/ore-schemes/shared/shared.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
Loading project: /Users/dbogatov/Desktop/CS-562/Project-Code/src/simulator/simulator.csproj
[info]: OmniSharp.MSBuild.ProjectManager
Adding project '/Users/dbogatov/Desktop/CS-562/Project-Code/src/simulator/simulator.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
Loading project: /Users/dbogatov/Desktop/CS-562/Project-Code/test/test.csproj
[info]: OmniSharp.MSBuild.ProjectManager
Adding project '/Users/dbogatov/Desktop/CS-562/Project-Code/test/test.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
Loading project: /Users/dbogatov/Desktop/CS-562/Project-Code/tools/data-gen/data-gen.csproj
[info]: OmniSharp.MSBuild.ProjectManager
Adding project '/Users/dbogatov/Desktop/CS-562/Project-Code/tools/data-gen/data-gen.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
Update project: b-plus-tree
[info]: OmniSharp.MSBuild.ProjectManager
Update project: cli
[info]: OmniSharp.MSBuild.ProjectManager
Update project: cryptdb-ope
[info]: OmniSharp.MSBuild.ProjectManager
Update project: practical-ore
[info]: OmniSharp.MSBuild.ProjectManager
Update project: shared
[info]: OmniSharp.MSBuild.ProjectManager
Update project: simulator
[info]: OmniSharp.MSBuild.ProjectManager
Update project: test
[info]: OmniSharp.MSBuild.ProjectManager
Update project: data-gen
Stacktrace:
at
I am not a language service guy, but I am fairly certain the issue is that the new OmniSharp requires a newer mono. So if you can, try upgrading your globally installed mono to 5.8.1 (or newer). There is a PR out currently to try and detect this.
If that doesn't help, someone who knows more about OmniSharp can hopefully help in the morning.
I uninstalled mono 5.4.1.6 (via brew) and installed latest 5.12 from mono-project. Error resolved, thank you @gregg-miskelly!
@anfomin / @dbogatov : There was a subtle bug in Mono that was exposed by Roslyn 2.7.0 that has since been fixed. Unfortunately, we forgot to update the minimum Mono version requirement in C# for VS Code. We should have a new release out shortly that addresses that problem.
Environment data
dotnet --info
output:VS Code version: 1.23.1 C# Extension version: 1.15.0
Steps to reproduce
Expected behavior
OmniSharp should start normal 😄
Actual behavior
There is error on OmniSharp log: error.txt
Project opens normal using OmniSharp
1.14.0
and1.15.0-beta4
versions.