Latest release could break working project (v1.18.0)
See original GitHub issueIssue Description
When selecting a project on command palette, it failed to load this project. (my terminology might be wrong, basically the “flame” symbol didn’t turn green and display project name, it stayed yellow for a bit and then disappeared.)
logs are outputted with an error at the end:
[info]: OmniSharp.Script.ScriptProjectSystem
Could not find any CSX files
[info]: OmniSharp.WorkspaceInitializer
Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpWorkspaceOptionsProvider
[dbug]: OmniSharp.MSBuild.Discovery.MSBuildLocator
Attempting to resolve 'Microsoft.Build.Tasks.Core.resources, Version=15.1.0.0, Culture=en-US, PublicKeyToken=b03f5f7f11d50a3a'
[dbug]: OmniSharp.MSBuild.Discovery.MSBuildLocator
FAILURE: Could not locate '/Library/Frameworks/Mono.framework/Versions/5.12.0/lib/mono/msbuild/15.0/bin/Microsoft.Build.Tasks.Core.resources.dll'.
[info]: OmniSharp.WorkspaceInitializer
Configuration finished.
[info]: OmniSharp.Stdio.Host
Omnisharp server running using Stdio at location '/Users/df/git/game/project-source' on host 717.
[ERROR] Error: command 'dotnet.test.run' already exists
Steps to Reproduce
Selecting a project on command palette, wait for it to load.
(Obviously I don’t know if it’s codebase specific, or setting specific, all I can confirm is that this repo works just fine yesterday; and I noticed an update log today)
[2019-03-28 12:18:20.117] [sharedprocess] [info] Deleted from disk ms-vscode.csharp /Users/df/.vscode/extensions/ms-vscode.csharp-1.17.1
So the upgrade from 1.17.1
to 1.18.0
caused this issue.
Expected Behavior
Works like 1.17.1 without changing settings.
Actual Behavior
I don’t know why it doesn’t work at the moment.
Logs
Starting OmniSharp server at 3/28/2019, 2:09:00 PM
Target: /Users/df/git/game/project-source/project-source.sln
OmniSharp server started with Mono 5.12.0.
Path: /Users/df/.vscode/extensions/ms-vscode.csharp-1.18.0/.omnisharp/1.32.11/omnisharp/OmniSharp.exe
PID: 976
[dbug]: OmniSharp.CompositionHostBuilder
Loaded OmniSharp.Cake, Version=1.32.0.0, Culture=neutral, PublicKeyToken=null
[dbug]: OmniSharp.CompositionHostBuilder
Loaded OmniSharp.DotNet, Version=1.32.0.0, Culture=neutral, PublicKeyToken=null
[dbug]: OmniSharp.CompositionHostBuilder
Loaded OmniSharp.DotNetTest, Version=1.32.0.0, Culture=neutral, PublicKeyToken=null
[dbug]: OmniSharp.CompositionHostBuilder
Loaded OmniSharp.Host, Version=1.32.0.0, Culture=neutral, PublicKeyToken=null
[dbug]: OmniSharp.CompositionHostBuilder
Loaded OmniSharp.MSBuild, Version=1.32.0.0, Culture=neutral, PublicKeyToken=null
[dbug]: OmniSharp.CompositionHostBuilder
Loaded OmniSharp.Plugins, Version=1.32.0.0, Culture=neutral, PublicKeyToken=null
[dbug]: OmniSharp.CompositionHostBuilder
Loaded OmniSharp.Roslyn, Version=1.32.0.0, Culture=neutral, PublicKeyToken=null
[dbug]: OmniSharp.CompositionHostBuilder
Loaded OmniSharp.Roslyn.CSharp, Version=1.32.0.0, Culture=neutral, PublicKeyToken=null
[dbug]: OmniSharp.CompositionHostBuilder
Loaded OmniSharp.Script, Version=1.32.0.0, Culture=neutral, PublicKeyToken=null
[info]: OmniSharp.Stdio.Host
Starting OmniSharp on MacOS 10.14.3 (x64)
[info]: OmniSharp.Services.DotNetCliService
DotNetPath set to dotnet
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
Located 2 MSBuild instance(s)
1: Mono 15.0 - "/Library/Frameworks/Mono.framework/Versions/5.12.0/lib/mono/msbuild/15.0/bin"
2: StandAlone 15.0 - "/Users/df/.vscode/extensions/ms-vscode.csharp-1.18.0/.omnisharp/1.32.11/omnisharp/msbuild/15.0/Bin"
[dbug]: OmniSharp.MSBuild.Discovery.MSBuildLocator
SUCCESS: Resolved to '/Library/Frameworks/Mono.framework/Versions/5.12.0/lib/mono/msbuild/15.0/bin/Microsoft.Build.Utilities.Core.dll' (name-only).
[dbug]: OmniSharp.MSBuild.Discovery.MSBuildLocator
SUCCESS: Resolved to '/Library/Frameworks/Mono.framework/Versions/5.12.0/lib/mono/msbuild/15.0/bin/Microsoft.Build.Tasks.Core.dll' (name-only).
[dbug]: OmniSharp.MSBuild.Discovery.MSBuildLocator
SUCCESS: Resolved to '/Library/Frameworks/Mono.framework/Versions/5.12.0/lib/mono/msbuild/15.0/bin/Microsoft.Build.Framework.dll' (name-only).
[dbug]: OmniSharp.MSBuild.Discovery.MSBuildLocator
SUCCESS: Resolved to '/Library/Frameworks/Mono.framework/Versions/5.12.0/lib/mono/msbuild/15.0/bin/Microsoft.Build.dll' (name-only).
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
Registered MSBuild instance: Mono 15.0 - "/Library/Frameworks/Mono.framework/Versions/5.12.0/lib/mono/msbuild/15.0/bin"
CscToolPath = /Users/df/.vscode/extensions/ms-vscode.csharp-1.18.0/.omnisharp/1.32.11/omnisharp/msbuild/15.0/Bin/Roslyn
CscToolExe = csc.exe
[dbug]: OmniSharp.MSBuild.Discovery.MSBuildLocator
Attempting to resolve 'Microsoft.AspNetCore.Razor.Language, Version=3.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
[dbug]: OmniSharp.MSBuild.Discovery.MSBuildLocator
FAILURE: Could not locate '/Library/Frameworks/Mono.framework/Versions/5.12.0/lib/mono/msbuild/15.0/bin/Microsoft.AspNetCore.Razor.Language.dll'.
[dbug]: OmniSharp.MSBuild.Discovery.MSBuildLocator
Attempting to resolve 'Microsoft.CodeAnalysis.VisualBasic.Workspaces, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
[dbug]: OmniSharp.MSBuild.Discovery.MSBuildLocator
FAILURE: Could not locate '/Library/Frameworks/Mono.framework/Versions/5.12.0/lib/mono/msbuild/15.0/bin/Microsoft.CodeAnalysis.VisualBasic.Workspaces.dll'.
[dbug]: OmniSharp.MSBuild.Discovery.MSBuildLocator
Attempting to resolve 'Microsoft.CodeAnalysis.VisualBasic.Features, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
[dbug]: OmniSharp.MSBuild.Discovery.MSBuildLocator
FAILURE: Could not locate '/Library/Frameworks/Mono.framework/Versions/5.12.0/lib/mono/msbuild/15.0/bin/Microsoft.CodeAnalysis.VisualBasic.Features.dll'.
[info]: OmniSharp.Cake.CakeProjectSystem
Detecting Cake files in '/Users/df/git/game/project-source'.
[info]: OmniSharp.Cake.CakeProjectSystem
Could not find any Cake files
[info]: OmniSharp.WorkspaceInitializer
Project system 'OmniSharp.DotNet.DotNetProjectSystem' is disabled in the configuration.
[dbug]: OmniSharp.MSBuild.ProjectSystem
MSBuild environment:
Mode: Standalone
RunningTests: False
RunningInVisualStudio: False
MSBuildToolsDirectory32: /Library/Frameworks/Mono.framework/Versions/5.12.0/lib/mono/msbuild/15.0/bin
MSBuildToolsDirectory64: /Library/Frameworks/Mono.framework/Versions/5.12.0/lib/mono/msbuild/15.0/bin
MSBuildSDKsPath: /Library/Frameworks/Mono.framework/Versions/5.12.0/lib/mono/msbuild/15.0/bin/Sdks
CurrentMSBuildConfigurationFile: /Library/Frameworks/Mono.framework/Versions/5.12.0/lib/mono/msbuild/15.0/bin/MSBuild.dll.config
CurrentMSBuildExePath: /Library/Frameworks/Mono.framework/Versions/5.12.0/lib/mono/msbuild/15.0/bin/MSBuild.dll
CurrentMSBuildToolsDirectory: /Library/Frameworks/Mono.framework/Versions/5.12.0/lib/mono/msbuild/15.0/bin
VisualStudioInstallRootDirectory:
MSBuildExtensionsPath: /Library/Frameworks/Mono.framework/Versions/5.12.0/lib/mono/msbuild/15.0/bin
[dbug]: OmniSharp.MSBuild.ProjectLoader
'CscToolPath' set to '/Users/df/.vscode/extensions/ms-vscode.csharp-1.18.0/.omnisharp/1.32.11/omnisharp/msbuild/15.0/Bin/Roslyn'
[dbug]: OmniSharp.MSBuild.ProjectLoader
'CscToolExe' set to 'csc.exe'
[info]: OmniSharp.MSBuild.ProjectSystem
Detecting projects in '/Users/df/git/game/project-source/project-source.sln'.
[info]: OmniSharp.MSBuild.ProjectManager
Queue project update for '/Users/df/git/game/project-source/CorePlayerManager.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
Queue project update for '/Users/df/git/game/project-source/Plugin-Rewired-Player.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
Queue project update for '/Users/df/git/game/project-source/NaughtyAttributes.Core.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
Queue project update for '/Users/df/git/game/project-source/Plugins-SRP-Profiler.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
Queue project update for '/Users/df/git/game/project-source/CinemachinePostProcessing.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
Queue project update for '/Users/df/git/game/project-source/CorePlayerGenerated.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
Queue project update for '/Users/df/git/game/project-source/NaughtyAttributes.Editor.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
Queue project update for '/Users/df/git/game/project-source/CoreEditorShaderGraph.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
Queue project update for '/Users/df/git/game/project-source/Plugin-Rewired-Internal-Editor.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
Queue project update for '/Users/df/git/game/project-source/Plugin-Rewired-ControlMapper-Editor.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
Queue project update for '/Users/df/git/game/project-source/CinemachinePostProcessingEditor.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
Queue project update for '/Users/df/git/game/project-source/Plugin-Rewired-Cinemachine-Editor.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
Queue project update for '/Users/df/git/game/project-source/Plugins-SDF-Generator.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
Queue project update for '/Users/df/git/game/project-source/Plugin-Rewired-UnityUI-Editor.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
Queue project update for '/Users/df/git/game/project-source/Plugin-Assembly-Debug.csproj'
[info]: OmniSharp.Script.ScriptProjectSystem
Detecting CSX files in '/Users/df/git/game/project-source'.
[info]: OmniSharp.MSBuild.ProjectManager
Loading project: /Users/df/git/game/project-source/CorePlayerManager.csproj
[dbug]: OmniSharp.MSBuild.Discovery.MSBuildLocator
Attempting to resolve 'Microsoft.Build.resources, Version=15.1.0.0, Culture=en-US, PublicKeyToken=b03f5f7f11d50a3a'
[dbug]: OmniSharp.MSBuild.Discovery.MSBuildLocator
FAILURE: Could not locate '/Library/Frameworks/Mono.framework/Versions/5.12.0/lib/mono/msbuild/15.0/bin/Microsoft.Build.resources.dll'.
[info]: OmniSharp.Script.ScriptProjectSystem
Could not find any CSX files
[info]: OmniSharp.WorkspaceInitializer
Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpWorkspaceOptionsProvider
[dbug]: OmniSharp.MSBuild.Discovery.MSBuildLocator
Attempting to resolve 'Microsoft.Build.Tasks.Core.resources, Version=15.1.0.0, Culture=en-US, PublicKeyToken=b03f5f7f11d50a3a'
[dbug]: OmniSharp.MSBuild.Discovery.MSBuildLocator
FAILURE: Could not locate '/Library/Frameworks/Mono.framework/Versions/5.12.0/lib/mono/msbuild/15.0/bin/Microsoft.Build.Tasks.Core.resources.dll'.
[info]: OmniSharp.WorkspaceInitializer
Configuration finished.
[info]: OmniSharp.Stdio.Host
Omnisharp server running using Stdio at location '/Users/df/git/game/project-source' on host 717.
[ERROR] Error: command 'dotnet.test.run' already exists
C# log
Installing C# dependencies...
Platform: darwin, x86_64
Downloading package 'OmniSharp for OSX' (32349 KB).................... Done!
Validating download...
Integrity Check succeeded.
Installing package 'OmniSharp for OSX'
Downloading package '.NET Core Debugger (macOS / x64)' (51487 KB).................... Done!
Validating download...
Integrity Check succeeded.
Installing package '.NET Core Debugger (macOS / x64)'
Downloading package 'Razor Language Server (macOS / x64)' (44312 KB).................... Done!
Installing package 'Razor Language Server (macOS / x64)'
Finished
Environment information
VSCode version: 1.32.3 C# Extension: 1.18.0
Mono Information
OmniSharp using global mono :5.12.0Dotnet Information
.NET Command Line Tools (2.1.4)Product Information: Version: 2.1.4 Commit SHA-1 hash: 5e8add2190
Runtime Environment: OS Name: Mac OS X OS Version: 10.14 OS Platform: Darwin RID: osx.10.12-x64 Base Path: /usr/local/share/dotnet/sdk/2.1.4/
Microsoft .NET Core Shared Framework Host
Version : 2.0.5 Build : 17373eb129b3b05aa18ece963f8795d65ef8ea54
Visual Studio Code Extensions
Extension | Author | Version |
---|---|---|
applescript | idleberg | 0.14.2 |
csharp | ms-vscode | 1.18.0 |
mel | sator-imaging | 0.1.2 |
python | ms-python | 2019.3.6139 |
shader | slevesque | 1.1.4 |
shaderlabvscodefree | amlovey | 1.1.3 |
unity-debug | Unity | 2.7.2 |
vscode-jade-snippets | mrmlnc | 1.0.1 |
IMPORTANT NOTE
This issue disappears after I:
- Updated Mono to latest stable (5.18.1)
- Updated .Net Core SDK to latest stable (2.2.105)
- And restarted VS Code.
Without restarting VS Code, even though C# extension recognized the new SDK and Mono, the error remained on project selection.
C# extension should really warn users against compatibility issues (and whether a program restart is needed…)
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (1 by maintainers)
Top GitHub Comments
Same issue.
[ERROR] Error: command ‘o.fixAll.solution’ already exists
OmniSharp v1.23.0 VSCode 1.48.0 Windows 10 1903 .Net Core 3.1
First opened a folder with vscode and OmniSharp could start correctly. But when I select another project or restart OmniSharp, the OmniSharp service cannot start. The log was:
[ERROR] Error: command ‘o.fixAll.solution’ already exists
Restart VSCode or reload VSCode window could solve this problem…