-
Notifications
You must be signed in to change notification settings - Fork 727
Description
Issue Description
On a WSL Linux distro with mono installed there is no way to use the "omnisharp.useGlobalMono": "never". settings.json shows "This setting can only be applied in user settings in local window or in remote settings in remote window."
Steps to Reproduce
WSL Distro with dotnet and mono-complete installed, try to open code in a project inside this WSL distro.
Expected Behavior
Successful omnisharp initialization using "omnisharp.useGlobalMono": "never"
Actual Behavior
No way to use "omnisharp.useGlobalMono": "never" inside WSL, settings.json shows "This setting can only be applied in user settings in local window or in remote settings in remote window."
Logs
OmniSharp log
Starting OmniSharp server at 3/6/2021, 10:55:39 AM
Target: /home/castello/tmp/liveuno/MyApp/MyApp.sln
OmniSharp server started.
Path: /home/castello/.vscode-server-insiders/extensions/ms-dotnettools.csharp-1.23.9/.omnisharp/1.37.6/run
PID: 18260
[info]: OmniSharp.Stdio.Host
Starting OmniSharp on debian 0.0 (x64)
[info]: OmniSharp.Services.DotNetCliService
DotNetPath set to dotnet
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
Located 1 MSBuild instance(s)
1: StandAlone 16.8.0 - "/home/castello/.vscode-server-insiders/extensions/ms-dotnettools.csharp-1.23.9/.omnisharp/1.37.6/omnisharp/.msbuild/Current/Bin"
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
MSBUILD_EXE_PATH environment variable set to '/home/castello/.vscode-server-insiders/extensions/ms-dotnettools.csharp-1.23.9/.omnisharp/1.37.6/omnisharp/.msbuild/Current/Bin/MSBuild.exe'
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
Registered MSBuild instance: StandAlone 16.8.0 - "/home/castello/.vscode-server-insiders/extensions/ms-dotnettools.csharp-1.23.9/.omnisharp/1.37.6/omnisharp/.msbuild/Current/Bin"
CscToolExe = csc.exe
MSBuildToolsPath = /home/castello/.vscode-server-insiders/extensions/ms-dotnettools.csharp-1.23.9/.omnisharp/1.37.6/omnisharp/.msbuild/Current/Bin
CscToolPath = /home/castello/.vscode-server-insiders/extensions/ms-dotnettools.csharp-1.23.9/.omnisharp/1.37.6/omnisharp/.msbuild/Current/Bin/Roslyn
BypassFrameworkInstallChecks = true
MSBuildExtensionsPath = /home/castello/.vscode-server-insiders/extensions/ms-dotnettools.csharp-1.23.9/.omnisharp/1.37.6/omnisharp/.msbuild
[info]: OmniSharp.WorkspaceInitializer
Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpFormattingWorkspaceOptionsProvider, Order: 0
[info]: OmniSharp.WorkspaceInitializer
Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.Completion.CompletionOptionsProvider, Order: 0
[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.ImplementTypeWorkspaceOptionsProvider, Order: 110
[info]: OmniSharp.WorkspaceInitializer
Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.BlockStructureWorkspaceOptionsProvider, Order: 140
[info]: OmniSharp.Cake.CakeProjectSystem
Detecting Cake files in '/home/castello/tmp/liveuno/MyApp'.
[info]: OmniSharp.Cake.CakeProjectSystem
Could not find any Cake files
[info]: OmniSharp.MSBuild.ProjectSystem
Detecting projects in '/home/castello/tmp/liveuno/MyApp/MyApp.sln'.
[fail]: OmniSharp.WorkspaceInitializer
The project system 'OmniSharp.MSBuild.ProjectSystem' threw exception during initialization.
System.ArgumentException: An item with the same key has already been added. Key: Debug|Any CPU.ActiveCfg
at System.Collections.Generic.Dictionary`2[TKey,TValue].TryInsert (TKey key, TValue value, System.Collections.Generic.InsertionBehavior behavior) [0x0015a] in <9f0df102fe6e4cfea29d2e46f585d8a5>:0
at System.Collections.Generic.Dictionary`2[TKey,TValue].Add (TKey key, TValue value) [0x00000] in <9f0df102fe6e4cfea29d2e46f585d8a5>:0
at OmniSharp.MSBuild.ProjectSystem.GetProjectPathsAndIdsFromSolution (System.String solutionFilePath) [0x00104] in <ecc03816ab954b569caf0cd018c8f575>:0
at OmniSharp.MSBuild.ProjectSystem.GetInitialProjectPathsAndIds () [0x0002f] in <ecc03816ab954b569caf0cd018c8f575>:0
at OmniSharp.MSBuild.ProjectSystem.Initalize (Microsoft.Extensions.Configuration.IConfiguration configuration) [0x00158] in <ecc03816ab954b569caf0cd018c8f575>:0
at OmniSharp.WorkspaceInitializer.Initialize (System.IServiceProvider serviceProvider, System.Composition.Hosting.CompositionHost compositionHost) [0x00139] in <c13615cca0c74ceaa15dfd4227fc93cf>:0
[info]: OmniSharp.Script.ScriptProjectSystem
Detecting CSX files in '/home/castello/tmp/liveuno/MyApp'.
[info]: OmniSharp.Script.ScriptProjectSystem
Could not find any CSX files
[info]: OmniSharp.WorkspaceInitializer
Configuration finished.
[info]: OmniSharp.Stdio.Host
Omnisharp server running using Stdio at location '/home/castello/tmp/liveuno/MyApp' on host 18161.
C# log
Environment information
VSCode version: 1.55.0-insider
C# Extension: 1.23.9
Mono Information
OmniSharp using built-in monoDotnet Information
.NET SDK (reflecting any global.json): Version: 5.0.103 Commit: 9effbc8ad5Runtime Environment:
OS Name: debian
OS Version:
OS Platform: Linux
RID: debian-x64
Base Path: /usr/share/dotnet/sdk/5.0.103/
Host (useful for support):
Version: 5.0.3
Commit: eae88cc11b
.NET SDKs installed:
3.1.406 [/usr/share/dotnet/sdk]
5.0.103 [/usr/share/dotnet/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 3.1.12 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 5.0.3 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 3.1.12 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 5.0.3 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
To install additional .NET runtimes or SDKs:
https://aka.ms/dotnet-download
Visual Studio Code Extensions
| Extension | Author | Version |
|---|---|---|
| checkpatch | idanp | 0.0.8 |
| csharp | ms-dotnettools | 1.23.9 |
| gitlens | eamodio | 11.3.0 |
| jupyter | ms-toolsai | 2021.4.625511240 |
| linuxkerneldev | microhobby | 0.2.0 |
| python | ms-python | 2021.2.625869727 |
| uno-platform | MicroHobby | 0.0.1 |
| vscode-docker | ms-azuretools | 1.10.0 |