Code Monkey home page Code Monkey logo

muhammadsammy / free-vscode-csharp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dotnet/vscode-csharp

115.0 115.0 13.0 39.71 MB

Free/Libre fork of the official C# extension for vscode

Home Page: https://open-vsx.org/extension/muhammad-sammy/csharp

License: Other

JavaScript 0.20% TypeScript 98.31% C# 1.28% HTML 0.02% Smalltalk 0.01% Shell 0.10% PowerShell 0.08%
c-sharp code-server csharp debugger dotnet gitpod netcoredbg omnisharp oni theia theia-ide vscode vscode-extension vscode-oss vscode-remote vscode-server vscodium

free-vscode-csharp's People

Contributors

333fred avatar 50wliu avatar akshita31 avatar allisonchou avatar arkalyanms avatar chuckries avatar colombod avatar cosifne avatar david-driscoll avatar davidwengier avatar dependabot[bot] avatar dibarbet avatar dotnet-bot avatar dustincampbell avatar filipw avatar gregg-miskelly avatar ivanz avatar janaka avatar jasonmalinowski avatar joerobich avatar lacomc avatar maryamariyan avatar muhammadsammy avatar nohwnd avatar ntaylormullen avatar rajkumar42 avatar ryanbrandenburg avatar ryzngard avatar savpek avatar wardengnaw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

free-vscode-csharp's Issues

Cannot find dotnet path

I have a portable VSCodium (1.82) and portable dotnet sdk (7.0.400). VSCodium is launched via custom cmd-file where DOTNET_ROOT environment variable is set.

In the VSCodium settings there're the following lines:

  "dotnetAcquisitionExtension.existingDotnetPath": [
      {
        "extensionId": "muhammad-sammy.csharp",
        "path": "${env:DOTNET_ROOT}/dotnet.exe"
      }
  ],

When I launch VSCodum, I get an error:

Failed to find dotnet info from path, falling back to acquire runtime via ms-dotnettools.vscode-dotnet-runtime
Could not find extension target platform in %vscodium_path%\data\extensions\muhammad-sammy.csharp-2.0.436\.vsixmanifest
[Error - 8:06:48 PM] Microsoft.CodeAnalysis.LanguageServer client: couldn't create connection to server.
Error: Cannot find dotnet path '${env:DOTNET_ROOT}\dotnet.exe'
	at t.DotnetRuntimeExtensionResolver.<anonymous> (%vscodium_path%\data\extensions\muhammad-sammy.csharp-2.0.436\dist\extension.js:2:1128383)
	at Generator.next (<anonymous>)
	at s (%vscodium_path%\data\extensions\muhammad-sammy.csharp-2.0.436\dist\extension.js:2:1127327)

I can't remember such a behaviour with the previous versions 1.2x. But I'm not sure it's a free-omnisharp issue.

System.InvalidOperationException: We don't have an MSBuild to use

I've updated to .NET 8, VSCodium 1.84.2 and free-vscode-csharp v2.10.28.
Now at the start I get the following notification for each project in a workspace:

[Error - 9:41:41 AM] [LanguageServerProjectSystem] Exception thrown while loading %file_path_of_csproj% StreamJsonRpc.RemoteInvocationException: We don't have an MSBuild to use; HasUsableMSBuildAsync should have been called first to check. - line 133
   at StreamJsonRpc.JsonRpc.InvokeCoreAsync[TResult](RequestId id, String targetName, IReadOnlyList`1 arguments, IReadOnlyList`1 positionalArgumentDeclaredTypes, IReadOnlyDictionary`2 namedArgumentDeclaredTypes, CancellationToken cancellationToken, Boolean isParameterObject)
   at Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.LanguageServerProjectSystem.LoadOrReloadProjectAsync(ProjectToLoad projectToLoad, BuildHostProcessManager buildHostProcessManager, CancellationToken cancellationToken) in /_/src/Features/LanguageServer/Microsoft.CodeAnalysis.LanguageServer/HostWorkspace/LanguageServerProjectSystem.cs:line 206
RPC server exception:
System.InvalidOperationException: We don't have an MSBuild to use; HasUsableMSBuildAsync should have been called first to check. - line 133
      at Roslyn.Utilities.Contract.Fail(String message, Int32 lineNumber) in /_/src/Workspaces/SharedUtilitiesAndExtensions/Compiler/Core/Utilities/Contract.cs:line 154
      at Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.BuildHost.EnsureMSBuildLoaded(String projectFilePath) in /_/src/Workspaces/Core/MSBuild.BuildHost/BuildHost.cs:line 133
      at Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.BuildHost.IsProjectFileSupportedAsync(String projectFilePath, CancellationToken cancellationToken) in /_/src/Workspaces/Core/MSBuild.BuildHost/BuildHost.cs:line 163
      at InvokeStub_BuildHost.IsProjectFileSupportedAsync(Object, Object, IntPtr*)
      at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)

Debugging Error

Clicking this button on a unit test:
image

Results in:
image

can't parse: [json.exception.type_error.302] type must be array, but is string

launch.json:

{
  "version": "0.2.0",
  "configurations": [
    {
      "name": ".NET Core Launch (web)",
      "type": "coreclr",
      "request": "launch",
      "preLaunchTask": "build",
      "program": "${workspaceFolder}/XXX/bin/Debug/net6.0/XXX.dll",
      "cwd": "${workspaceFolder}/src/XXX",
      "stopAtEntry": false,
    }
  ]
}

(Also happens with default configuration)

My best guess is that the error is coming from here, but I truly have no idea.
https://github.com/OmniSharp/omnisharp-vscode/blob/f807bafc3a332ea612f7b82a7bc0dc1a793825de/src/coreclr-debug/debuggerEventsProtocol.ts#L39

Pop!_OS
.NET 7.0.102
XXX/.vscode-oss/extensions/muhammad-sammy.csharp-1.25.0-universal/.omnisharp/1.39.0-net6.0/OmniSharp.dll

Log:

[dbug]: OmniSharp.Stdio.Host
        ************ Request ************
{
  "Type": "request",
  "Seq": 396,
  "Command": "/project",
  "Arguments": {
    "FileName": "XXX.Client.Tests/XXX.cs"
  }
}
[dbug]: OmniSharp.Stdio.Host
        ************  Response (5.3838ms) ************ 
{
  "Request_seq": 396,
  "Command": "/project",
  "Running": true,
  "Success": true,
  "Message": null,
  "Body": {
    "MsBuildProject": {
      "ProjectGuid": "00000000-0000-0000-0000-000000000000",
      "Path": "XXX.Client.Tests/XXX.Client.Tests.csproj",
      "AssemblyName": "XXX.Client.Tests",
      "TargetPath": "XXX.Client.Tests/bin/Debug/net6.0/XXX.Client.Tests.dll",
      "TargetFramework": ".NETCoreApp,Version=v6.0",
      "SourceFiles": [
        "XXX.Client.Tests/XXX.cs",
        "XXX/.nuget/packages/microsoft.net.test.sdk/17.3.2/build/netcoreapp2.1/Microsoft.NET.Test.Sdk.Program.cs",
        "XXX.Client.Tests/obj/Debug/net6.0/XXX.Client.Tests.GlobalUsings.g.cs",
        "XXX.Client.Tests/obj/Debug/net6.0/.NETCoreApp,Version=v6.0.AssemblyAttributes.cs",
        "XXX.Client.Tests/obj/Debug/net6.0/XXX.Client.Tests.AssemblyInfo.cs"
      ],
      "TargetFrameworks": [
        {
          "Name": ".NETCoreApp",
          "FriendlyName": ".NETCoreApp",
          "ShortName": "net6.0"
        }
      ],
      "OutputPath": "bin\\Debug/net6.0/",
      "IntermediateOutputPath": "obj\\Debug/net6.0/",
      "Configuration": "Debug",
      "Platform": "AnyCPU",
      "IsExe": true,
      "IsUnityProject": false
    },
    "ScriptProject": null
  },
  "Seq": 2282,
  "Type": "response"
}
[dbug]: OmniSharp.Stdio.Host
        ************ Request ************
{
  "Type": "request",
  "Seq": 397,
  "Command": "/v2/debugtest/getstartinfo",
  "Arguments": {
    "FileName": "XXX.Client.Tests/XXX.cs",
    "MethodName": "XXX.Client.Tests.XXXTests.CreateLead",
    "TestFrameworkName": "mstest",
    "TargetFrameworkVersion": ".NETCoreApp,Version=v6.0",
    "NoBuild": false
  }
}
[info]: OmniSharp.DotNetTest.VSTestManager
        read: {"MessageType":"TestSession.Connected","Payload":null}
[dbug]: OmniSharp.DotNetTest.VSTestManager
        send: {"MessageType":"ProtocolVersion","Payload":1}
[info]: OmniSharp.DotNetTest.VSTestManager
        read: {"MessageType":"ProtocolVersion","Payload":1}
[info]: OmniSharp.DotNetTest.DebugSessionManager
        Debug session started.
[dbug]: OmniSharp.DotNetTest.VSTestManager
        send: {"MessageType":"TestDiscovery.Start","Payload":{"Sources":["XXX.Client.Tests/bin/Debug/net6.0/XXX.Client.Tests.dll"],"RunSettings":"\n<RunSettings>\n    <RunConfiguration>\n        <TargetFrameworkVersion>.NETCoreApp,Version=v6.0</TargetFrameworkVersion>\n    </RunConfiguration>\n</RunSettings>"}}
[dbug]: OmniSharp.DotNetTest.VSTestManager
        read: {"MessageType":"TestDiscovery.TestFound","Payload":[{"Properties":[{"Key":{"Id":"TestCase.FullyQualifiedName","Label":"FullyQualifiedName","Category":"","Description":"","Attributes":1,"ValueType":"System.String"},"Value":"XXX.Client.Tests.XXXTests.GetEnums"},{"Key":{"Id":"TestCase.ExecutorUri","Label":"Executor Uri","Category":"","Description":"","Attributes":1,"ValueType":"System.Uri"},"Value":"executor://MSTestAdapter/v2"},{"Key":{"Id":"TestCase.Source","Label":"Source","Category":"","Description":"","Attributes":0,"ValueType":"System.String"},"Value":"XXX.Client.Tests/bin/Debug/net6.0/XXX.Client.Tests.dll"},{"Key":{"Id":"TestCase.CodeFilePath","Label":"File Path","Category":"","Description":"","Attributes":0,"ValueType":"System.String"},"Value":"XXX.Client.Tests/XXX.cs"},{"Key":{"Id":"TestCase.DisplayName","Label":"Name","Category":"","Description":"","Attributes":0,"ValueType":"System.String"},"Value":"GetEnums"},{"Key":{"Id":"TestCase.Id","Label":"Id","Category":"","Description":"","Attributes":1,"ValueType":"System.Guid"},"Value":"5b58f0bc-0b70-c1a9-0c58-828c895fba1a"},{"Key":{"Id":"TestCase.LineNumber","Label":"Line Number","Category":"","Description":"","Attributes":1,"ValueType":"System.Int32"},"Value":43},{"Key":{"Id":"TestCase.ManagedType","Label":"ManagedType","Category":"","Description":"","Attributes":1,"ValueType":"System.String"},"Value":"XXX.Client.Tests.XXXTests"},{"Key":{"Id":"TestCase.ManagedMethod","Label":"ManagedMethod","Category":"","Description":"","Attributes":1,"ValueType":"System.String"},"Value":"GetEnums"},{"Key":{"Id":"MSTestDiscoverer.TestClassName","Label":"ClassName","Category":"","Description":"","Attributes":1,"ValueType":"System.String"},"Value":"XXX.Client.Tests.XXXTests"},{"Key":{"Id":"TestCase.Hierarchy","Label":"Hierarchy","Category":"","Description":"","Attributes":2,"ValueType":"System.String[]"},"Value":["XXX.Client.Tests","XXXTests"]},{"Key":{"Id":"TestObject.Traits","Label":"Traits","Category":"","Description":"","Attributes":5,"ValueType":"System.Collections.Generic.KeyValuePair`2[[System.String],[System.String]][]"},"Value":[]}]},{"Properties":[{"Key":{"Id":"TestCase.FullyQualifiedName","Label":"FullyQualifiedName","Category":"","Description":"","Attributes":1,"ValueType":"System.String"},"Value":"XXX.Client.Tests.XXXTests.CreateLead"},{"Key":{"Id":"TestCase.ExecutorUri","Label":"Executor Uri","Category":"","Description":"","Attributes":1,"ValueType":"System.Uri"},"Value":"executor://MSTestAdapter/v2"},{"Key":{"Id":"TestCase.Source","Label":"Source","Category":"","Description":"","Attributes":0,"ValueType":"System.String"},"Value":"XXX.Client.Tests/bin/Debug/net6.0/XXX.Client.Tests.dll"},{"Key":{"Id":"TestCase.CodeFilePath","Label":"File Path","Category":"","Description":"","Attributes":0,"ValueType":"System.String"},"Value":"XXX.Client.Tests/XXX.cs"},{"Key":{"Id":"TestCase.DisplayName","Label":"Name","Category":"","Description":"","Attributes":0,"ValueType":"System.String"},"Value":"CreateLead"},{"Key":{"Id":"TestCase.Id","Label":"Id","Category":"","Description":"","Attributes":1,"ValueType":"System.Guid"},"Value":"840e335e-1a15-2179-9ed8-37a6e5413b75"},{"Key":{"Id":"TestCase.LineNumber","Label":"Line Number","Category":"","Description":"","Attributes":1,"ValueType":"System.Int32"},"Value":61},{"Key":{"Id":"TestCase.ManagedType","Label":"ManagedType","Category":"","Description":"","Attributes":1,"ValueType":"System.String"},"Value":"XXX.Client.Tests.XXXTests"},{"Key":{"Id":"TestCase.ManagedMethod","Label":"ManagedMethod","Category":"","Description":"","Attributes":1,"ValueType":"System.String"},"Value":"CreateLead"},{"Key":{"Id":"MSTestDiscoverer.TestClassName","Label":"ClassName","Category":"","Description":"","Attributes":1,"ValueType":"System.String"},"Value":"XXX.Client.Tests.XXXTests"},{"Key":{"Id":"TestCase.Hierarchy","Label":"Hierarchy","Category":"","Description":"","Attributes":2,"ValueType":"System.String[]"},"Value":["XXX.Client.Tests","XXXTests"]},{"Key":{"Id":"TestObject.Traits","Label":"Traits","Category":"","Description":"","Attributes":5,"ValueType":"System.Collections.Generic.KeyValuePair`2[[System.String],[System.String]][]"},"Value":[]}]},{"Properties":[{"Key":{"Id":"TestCase.FullyQualifiedName","Label":"FullyQualifiedName","Category":"","Description":"","Attributes":1,"ValueType":"System.String"},"Value":"XXX.Client.Tests.XXXTests.CreateLeadEmailExisting"},{"Key":{"Id":"TestCase.ExecutorUri","Label":"Executor Uri","Category":"","Description":"","Attributes":1,"ValueType":"System.Uri"},"Value":"executor://MSTestAdapter/v2"},{"Key":{"Id":"TestCase.Source","Label":"Source","Category":"","Description":"","Attributes":0,"ValueType":"System.String"},"Value":"XXX.Client.Tests/bin/Debug/net6.0/XXX.Client.Tests.dll"},{"Key":{"Id":"TestCase.CodeFilePath","Label":"File Path","Category":"","Description":"","Attributes":0,"ValueType":"System.String"},"Value":"XXX.Client.Tests/XXX.cs"},{"Key":{"Id":"TestCase.DisplayName","Label":"Name","Category":"","Description":"","Attributes":0,"ValueType":"System.String"},"Value":"CreateLeadEmailExisting"},{"Key":{"Id":"TestCase.Id","Label":"Id","Category":"","Description":"","Attributes":1,"ValueType":"System.Guid"},"Value":"a1ac4aa1-88c8-08c8-51af-3f903c59f804"},{"Key":{"Id":"TestCase.LineNumber","Label":"Line Number","Category":"","Description":"","Attributes":1,"ValueType":"System.Int32"},"Value":130},{"Key":{"Id":"TestCase.ManagedType","Label":"ManagedType","Category":"","Description":"","Attributes":1,"ValueType":"System.String"},"Value":"XXX.Client.Tests.XXXTests"},{"Key":{"Id":"TestCase.ManagedMethod","Label":"ManagedMethod","Category":"","Description":"","Attributes":1,"ValueType":"System.String"},"Value":"CreateLeadEmailExisting"},{"Key":{"Id":"MSTestDiscoverer.TestClassName","Label":"ClassName","Category":"","Description":"","Attributes":1,"ValueType":"System.String"},"Value":"XXX.Client.Tests.XXXTests"},{"Key":{"Id":"TestCase.Hierarchy","Label":"Hierarchy","Category":"","Description":"","Attributes":2,"ValueType":"System.String[]"},"Value":["XXX.Client.Tests","XXXTests"]},{"Key":{"Id":"TestObject.Traits","Label":"Traits","Category":"","Description":"","Attributes":5,"ValueType":"System.Collections.Generic.KeyValuePair`2[[System.String],[System.String]][]"},"Value":[]}]},{"Properties":[{"Key":{"Id":"TestCase.FullyQualifiedName","Label":"FullyQualifiedName","Category":"","Description":"","Attributes":1,"ValueType":"System.String"},"Value":"XXX.Client.Tests.XXXTests.PatchConcerns"},{"Key":{"Id":"TestCase.ExecutorUri","Label":"Executor Uri","Category":"","Description":"","Attributes":1,"ValueType":"System.Uri"},"Value":"executor://MSTestAdapter/v2"},{"Key":{"Id":"TestCase.Source","Label":"Source","Category":"","Description":"","Attributes":0,"ValueType":"System.String"},"Value":"XXX.Client.Tests/bin/Debug/net6.0/XXX.Client.Tests.dll"},{"Key":{"Id":"TestCase.CodeFilePath","Label":"File Path","Category":"","Description":"","Attributes":0,"ValueType":"System.String"},"Value":"XXX.Client.Tests/XXX.cs"},{"Key":{"Id":"TestCase.DisplayName","Label":"Name","Category":"","Description":"","Attributes":0,"ValueType":"System.String"},"Value":"PatchConcerns"},{"Key":{"Id":"TestCase.Id","Label":"Id","Category":"","Description":"","Attributes":1,"ValueType":"System.Guid"},"Value":"72540e0d-5bcd-ea94-bb78-f5fc6e4df042"},{"Key":{"Id":"TestCase.LineNumber","Label":"Line Number","Category":"","Description":"","Attributes":1,"ValueType":"System.Int32"},"Value":183},{"Key":{"Id":"TestCase.ManagedType","Label":"ManagedType","Category":"","Description":"","Attributes":1,"ValueType":"System.String"},"Value":"XXX.Client.Tests.XXXTests"},{"Key":{"Id":"TestCase.ManagedMethod","Label":"ManagedMethod","Category":"","Description":"","Attributes":1,"ValueType":"System.String"},"Value":"PatchConcerns"},{"Key":{"Id":"MSTestDiscoverer.TestClassName","Label":"ClassName","Category":"","Description":"","Attributes":1,"ValueType":"System.String"},"Value":"XXX.Client.Tests.XXXTests"},{"Key":{"Id":"TestCase.Hierarchy","Label":"Hierarchy","Category":"","Description":"","Attributes":2,"ValueType":"System.String[]"},"Value":["XXX.Client.Tests","XXXTests"]},{"Key":{"Id":"TestObject.Traits","Label":"Traits","Category":"","Description":"","Attributes":5,"ValueType":"System.Collections.Generic.KeyValuePair`2[[System.String],[System.String]][]"},"Value":[]}]},{"Properties":[{"Key":{"Id":"TestCase.FullyQualifiedName","Label":"FullyQualifiedName","Category":"","Description":"","Attributes":1,"ValueType":"System.String"},"Value":"XXX.Client.Tests.XXXTests.PatchTreatment"},{"Key":{"Id":"TestCase.ExecutorUri","Label":"Executor Uri","Category":"","Description":"","Attributes":1,"ValueType":"System.Uri"},"Value":"executor://MSTestAdapter/v2"},{"Key":{"Id":"TestCase.Source","Label":"Source","Category":"","Description":"","Attributes":0,"ValueType":"System.String"},"Value":"XXX.Client.Tests/bin/Debug/net6.0/XXX.Client.Tests.dll"},{"Key":{"Id":"TestCase.CodeFilePath","Label":"File Path","Category":"","Description":"","Attributes":0,"ValueType":"System.String"},"Value":"XXX.Client.Tests/XXX.cs"},{"Key":{"Id":"TestCase.DisplayName","Label":"Name","Category":"","Description":"","Attributes":0,"ValueType":"System.String"},"Value":"PatchTreatment"},{"Key":{"Id":"TestCase.Id","Label":"Id","Category":"","Description":"","Attributes":1,"ValueType":"System.Guid"},"Value":"241375ef-86a3-8225-198c-8102ff5e22a5"},{"Key":{"Id":"TestCase.LineNumber","Label":"Line Number","Category":"","Description":"","Attributes":1,"ValueType":"System.Int32"},"Value":212},{"Key":{"Id":"TestCase.ManagedType","Label":"ManagedType","Category":"","Description":"","Attributes":1,"ValueType":"System.String"},"Value":"XXX.Client.Tests.XXXTests"},{"Key":{"Id":"TestCase.ManagedMethod","Label":"ManagedMethod","Category":"","Description":"","Attributes":1,"ValueType":"System.String"},"Value":"PatchTreatment"},{"Key":{"Id":"MSTestDiscoverer.TestClassName","Label":"ClassName","Category":"","Description":"","Attributes":1,"ValueType":"System.String"},"Value":"XXX.Client.Tests.XXXTests"},{"Key":{"Id":"TestCase.Hierarchy","Label":"Hierarchy","Category":"","Description":"","Attributes":2,"ValueType":"System.String[]"},"Value":["XXX.Client.Tests","XXXTests"]},{"Key":{"Id":"TestObject.Traits","Label":"Traits","Category":"","Description":"","Attributes":5,"ValueType":"System.Collections.Generic.KeyValuePair`2[[System.String],[System.String]][]"},"Value":[]}]},{"Properties":[{"Key":{"Id":"TestCase.FullyQualifiedName","Label":"FullyQualifiedName","Category":"","Description":"","Attributes":1,"ValueType":"System.String"},"Value":"XXX.Client.Tests.XXXTests.PatchInsurance"},{"Key":{"Id":"TestCase.ExecutorUri","Label":"Executor Uri","Category":"","Description":"","Attributes":1,"ValueType":"System.Uri"},"Value":"executor://MSTestAdapter/v2"},{"Key":{"Id":"TestCase.Source","Label":"Source","Category":"","Description":"","Attributes":0,"ValueType":"System.String"},"Value":"XXX.Client.Tests/bin/Debug/net6.0/XXX.Client.Tests.dll"},{"Key":{"Id":"TestCase.CodeFilePath","Label":"File Path","Category":"","Description":"","Attributes":0,"ValueType":"System.String"},"Value":"XXX.Client.Tests/XXX.cs"},{"Key":{"Id":"TestCase.DisplayName","Label":"Name","Category":"","Description":"","Attributes":0,"ValueType":"System.String"},"Value":"PatchInsurance"},{"Key":{"Id":"TestCase.Id","Label":"Id","Category":"","Description":"","Attributes":1,"ValueType":"System.Guid"},"Value":"3e3d0209-6f6f-f4f5-0853-3f0565abe1b2"},{"Key":{"Id":"TestCase.LineNumber","Label":"Line Number","Category":"","Description":"","Attributes":1,"ValueType":"System.Int32"},"Value":241},{"Key":{"Id":"TestCase.ManagedType","Label":"ManagedType","Category":"","Description":"","Attributes":1,"ValueType":"System.String"},"Value":"XXX.Client.Tests.XXXTests"},{"Key":{"Id":"TestCase.ManagedMethod","Label":"ManagedMethod","Category":"","Description":"","Attributes":1,"ValueType":"System.String"},"Value":"PatchInsurance"},{"Key":{"Id":"MSTestDiscoverer.TestClassName","Label":"ClassName","Category":"","Description":"","Attributes":1,"ValueType":"System.String"},"Value":"XXX.Client.Tests.XXXTests"},{"Key":{"Id":"TestCase.Hierarchy","Label":"Hierarchy","Category":"","Description":"","Attributes":2,"ValueType":"System.String[]"},"Value":["XXX.Client.Tests","XXXTests"]},{"Key":{"Id":"TestObject.Traits","Label":"Traits","Category":"","Description":"","Attributes":5,"ValueType":"System.Collections.Generic.KeyValuePair`2[[System.String],[System.String]][]"},"Value":[]}]},{"Properties":[{"Key":{"Id":"TestCase.FullyQualifiedName","Label":"FullyQualifiedName","Category":"","Description":"","Attributes":1,"ValueType":"System.String"},"Value":"XXX.Client.Tests.XXXTests.PatchTherapy"},{"Key":{"Id":"TestCase.ExecutorUri","Label":"Executor Uri","Category":"","Description":"","Attributes":1,"ValueType":"System.Uri"},"Value":"executor://MSTestAdapter/v2"},{"Key":{"Id":"TestCase.Source","Label":"Source","Category":"","Description":"","Attributes":0,"ValueType":"System.String"},"Value":"XXX.Client.Tests/bin/Debug/net6.0/XXX.Client.Tests.dll"},{"Key":{"Id":"TestCase.CodeFilePath","Label":"File Path","Category":"","Description":"","Attributes":0,"ValueType":"System.String"},"Value":"XXX.Client.Tests/XXX.cs"},{"Key":{"Id":"TestCase.DisplayName","Label":"Name","Category":"","Description":"","Attributes":0,"ValueType":"System.String"},"Value":"PatchTherapy"},{"Key":{"Id":"TestCase.Id","Label":"Id","Category":"","Description":"","Attributes":1,"ValueType":"System.Guid"},"Value":"895cc140-5a98-a653-9c18-812d10a9c867"},{"Key":{"Id":"TestCase.LineNumber","Label":"Line Number","Category":"","Description":"","Attributes":1,"ValueType":"System.Int32"},"Value":297},{"Key":{"Id":"TestCase.ManagedType","Label":"ManagedType","Category":"","Description":"","Attributes":1,"ValueType":"System.String"},"Value":"XXX.Client.Tests.XXXTests"},{"Key":{"Id":"TestCase.ManagedMethod","Label":"ManagedMethod","Category":"","Description":"","Attributes":1,"ValueType":"System.String"},"Value":"PatchTherapy"},{"Key":{"Id":"MSTestDiscoverer.TestClassName","Label":"ClassName","Category":"","Description":"","Attributes":1,"ValueType":"System.String"},"Value":"XXX.Client.Tests.XXXTests"},{"Key":{"Id":"TestCase.Hierarchy","Label":"Hierarchy","Category":"","Description":"","Attributes":2,"ValueType":"System.String[]"},"Value":["XXX.Client.Tests","XXXTests"]},{"Key":{"Id":"TestObject.Traits","Label":"Traits","Category":"","Description":"","Attributes":5,"ValueType":"System.Collections.Generic.KeyValuePair`2[[System.String],[System.String]][]"},"Value":[]}]},{"Properties":[{"Key":{"Id":"TestCase.FullyQualifiedName","Label":"FullyQualifiedName","Category":"","Description":"","Attributes":1,"ValueType":"System.String"},"Value":"XXX.Client.Tests.XXXTests.PatchDisclosure"},{"Key":{"Id":"TestCase.ExecutorUri","Label":"Executor Uri","Category":"","Description":"","Attributes":1,"ValueType":"System.Uri"},"Value":"executor://MSTestAdapter/v2"},{"Key":{"Id":"TestCase.Source","Label":"Source","Category":"","Description":"","Attributes":0,"ValueType":"System.String"},"Value":"XXX.Client.Tests/bin/Debug/net6.0/XXX.Client.Tests.dll"},{"Key":{"Id":"TestCase.CodeFilePath","Label":"File Path","Category":"","Description":"","Attributes":0,"ValueType":"System.String"},"Value":"XXX.Client.Tests/XXX.cs"},{"Key":{"Id":"TestCase.DisplayName","Label":"Name","Category":"","Description":"","Attributes":0,"ValueType":"System.String"},"Value":"PatchDisclosure"},{"Key":{"Id":"TestCase.Id","Label":"Id","Category":"","Description":"","Attributes":1,"ValueType":"System.Guid"},"Value":"31d65368-991a-a104-9aed-cc475bfc04cd"},{"Key":{"Id":"TestCase.LineNumber","Label":"Line Number","Category":"","Description":"","Attributes":1,"ValueType":"System.Int32"},"Value":322},{"Key":{"Id":"TestCase.ManagedType","Label":"ManagedType","Category":"","Description":"","Attributes":1,"ValueType":"System.String"},"Value":"XXX.Client.Tests.XXXTests"},{"Key":{"Id":"TestCase.ManagedMethod","Label":"ManagedMethod","Category":"","Description":"","Attributes":1,"ValueType":"System.String"},"Value":"PatchDisclosure"},{"Key":{"Id":"MSTestDiscoverer.TestClassName","Label":"ClassName","Category":"","Description":"","Attributes":1,"ValueType":"System.String"},"Value":"XXX.Client.Tests.XXXTests"},{"Key":{"Id":"TestCase.Hierarchy","Label":"Hierarchy","Category":"","Description":"","Attributes":2,"ValueType":"System.String[]"},"Value":["XXX.Client.Tests","XXXTests"]},{"Key":{"Id":"TestObject.Traits","Label":"Traits","Category":"","Description":"","Attributes":5,"ValueType":"System.Collections.Generic.KeyValuePair`2[[System.String],[System.String]][]"},"Value":[]}]},{"Properties":[{"Key":{"Id":"TestCase.FullyQualifiedName","Label":"FullyQualifiedName","Category":"","Description":"","Attributes":1,"ValueType":"System.String"},"Value":"XXX.Client.Tests.XXXTests.PatchMarketing"},{"Key":{"Id":"TestCase.ExecutorUri","Label":"Executor Uri","Category":"","Description":"","Attributes":1,"ValueType":"System.Uri"},"Value":"executor://MSTestAdapter/v2"},{"Key":{"Id":"TestCase.Source","Label":"Source","Category":"","Description":"","Attributes":0,"ValueType":"System.String"},"Value":"XXX.Client.Tests/bin/Debug/net6.0/XXX.Client.Tests.dll"},{"Key":{"Id":"TestCase.CodeFilePath","Label":"File Path","Category":"","Description":"","Attributes":0,"ValueType":"System.String"},"Value":"XXX.Client.Tests/XXX.cs"},{"Key":{"Id":"TestCase.DisplayName","Label":"Name","Category":"","Description":"","Attributes":0,"ValueType":"System.String"},"Value":"PatchMarketing"},{"Key":{"Id":"TestCase.Id","Label":"Id","Category":"","Description":"","Attributes":1,"ValueType":"System.Guid"},"Value":"4519039d-7d8c-685b-6bde-ee7dc99082a1"},{"Key":{"Id":"TestCase.LineNumber","Label":"Line Number","Category":"","Description":"","Attributes":1,"ValueType":"System.Int32"},"Value":347},{"Key":{"Id":"TestCase.ManagedType","Label":"ManagedType","Category":"","Description":"","Attributes":1,"ValueType":"System.String"},"Value":"XXX.Client.Tests.XXXTests"},{"Key":{"Id":"TestCase.ManagedMethod","Label":"ManagedMethod","Category":"","Description":"","Attributes":1,"ValueType":"System.String"},"Value":"PatchMarketing"},{"Key":{"Id":"MSTestDiscoverer.TestClassName","Label":"ClassName","Category":"","Description":"","Attributes":1,"ValueType":"System.String"},"Value":"XXX.Client.Tests.XXXTests"},{"Key":{"Id":"TestCase.Hierarchy","Label":"Hierarchy","Category":"","Description":"","Attributes":2,"ValueType":"System.String[]"},"Value":["XXX.Client.Tests","XXXTests"]},{"Key":{"Id":"TestObject.Traits","Label":"Traits","Category":"","Description":"","Attributes":5,"ValueType":"System.Collections.Generic.KeyValuePair`2[[System.String],[System.String]][]"},"Value":[]}]},{"Properties":[{"Key":{"Id":"TestCase.FullyQualifiedName","Label":"FullyQualifiedName","Category":"","Description":"","Attributes":1,"ValueType":"System.String"},"Value":"XXX.Client.Tests.XXXTests.GetLead"},{"Key":{"Id":"TestCase.ExecutorUri","Label":"Executor Uri","Category":"","Description":"","Attributes":1,"ValueType":"System.Uri"},"Value":"executor://MSTestAdapter/v2"},{"Key":{"Id":"TestCase.Source","Label":"Source","Category":"","Description":"","Attributes":0,"ValueType":"System.String"},"Value":"XXX.Client.Tests/bin/Debug/net6.0/XXX.Client.Tests.dll"},{"Key":{"Id":"TestCase.CodeFilePath","Label":"File Path","Category":"","Description":"","Attributes":0,"ValueType":"System.String"},"Value":"XXX.Client.Tests/XXX.cs"},{"Key":{"Id":"TestCase.DisplayName","Label":"Name","Category":"","Description":"","Attributes":0,"ValueType":"System.String"},"Value":"GetLead"},{"Key":{"Id":"TestCase.Id","Label":"Id","Category":"","Description":"","Attributes":1,"ValueType":"System.Guid"},"Value":"524e6194-731a-7bf7-8a97-fe545a716f07"},{"Key":{"Id":"TestCase.LineNumber","Label":"Line Number","Category":"","Description":"","Attributes":1,"ValueType":"System.Int32"},"Value":376},{"Key":{"Id":"TestCase.ManagedType","Label":"ManagedType","Category":"","Description":"","Attributes":1,"ValueType":"System.String"},"Value":"XXX.Client.Tests.XXXTests"},{"Key":{"Id":"TestCase.ManagedMethod","Label":"ManagedMethod","Category":"","Description":"","Attributes":1,"ValueType":"System.String"},"Value":"GetLead"},{"Key":{"Id":"MSTestDiscoverer.TestClassName","Label":"ClassName","Category":"","Description":"","Attributes":1,"ValueType":"System.String"},"Value":"XXX.Client.Tests.XXXTests"},{"Key":{"Id":"TestCase.Hierarchy","Label":"Hierarchy","Category":"","Description":"","Attributes":2,"ValueType":"System.String[]"},"Value":["XXX.Client.Tests","XXXTests"]},{"Key":{"Id":"TestObject.Traits","Label":"Traits","Category":"","Description":"","Attributes":5,"ValueType":"System.Collections.Generic.KeyValuePair`2[[System.String],[System.String]][]"},"Value":[]}]},{"Properties":[{"Key":{"Id":"TestCase.FullyQualifiedName","Label":"FullyQualifiedName","Category":"","Description":"","Attributes":1,"ValueType":"System.String"},"Value":"XXX.Client.Tests.XXXTests.PatchDevelopmentHistory"},{"Key":{"Id":"TestCase.ExecutorUri","Label":"Executor Uri","Category":"","Description":"","Attributes":1,"ValueType":"System.Uri"},"Value":"executor://MSTestAdapter/v2"},{"Key":{"Id":"TestCase.Source","Label":"Source","Category":"","Description":"","Attributes":0,"ValueType":"System.String"},"Value":"XXX.Client.Tests/bin/Debug/net6.0/XXX.Client.Tests.dll"},{"Key":{"Id":"TestCase.CodeFilePath","Label":"File Path","Category":"","Description":"","Attributes":0,"ValueType":"System.String"},"Value":"XXX.Client.Tests/XXX.cs"},{"Key":{"Id":"TestCase.DisplayName","Label":"Name","Category":"","Description":"","Attributes":0,"ValueType":"System.String"},"Value":"PatchDevelopmentHistory"},{"Key":{"Id":"TestCase.Id","Label":"Id","Category":"","Description":"","Attributes":1,"ValueType":"System.Guid"},"Value":"f702b66b-c32e-2c51-6741-73bd91de85b3"},{"Key":{"Id":"TestCase.LineNumber","Label":"Line Number","Category":"","Description":"","Attributes":1,"ValueType":"System.Int32"},"Value":395},{"Key":{"Id":"TestCase.ManagedType","Label":"ManagedType","Category":"","Description":"","Attributes":1,"ValueType":"System.String"},"Value":"XXX.Client.Tests.XXXTests"},{"Key":{"Id":"TestCase.ManagedMethod","Label":"ManagedMethod","Category":"","Description":"","Attributes":1,"ValueType":"System.String"},"Value":"PatchDevelopmentHistory"},{"Key":{"Id":"MSTestDiscoverer.TestClassName","Label":"ClassName","Category":"","Description":"","Attributes":1,"ValueType":"System.String"},"Value":"XXX.Client.Tests.XXXTests"},{"Key":{"Id":"TestCase.Hierarchy","Label":"Hierarchy","Category":"","Description":"","Attributes":2,"ValueType":"System.String[]"},"Value":["XXX.Client.Tests","XXXTests"]},{"Key":{"Id":"TestObject.Traits","Label":"Traits","Category":"","Description":"","Attributes":5,"ValueType":"System.Collections.Generic.KeyValuePair`2[[System.String],[System.String]][]"},"Value":[]}]},{"Properties":[{"Key":{"Id":"TestCase.FullyQualifiedName","Label":"FullyQualifiedName","Category":"","Description":"","Attributes":1,"ValueType":"System.String"},"Value":"XXX.Client.Tests.XXXTests.PatchMedicalHistory"},{"Key":{"Id":"TestCase.ExecutorUri","Label":"Executor Uri","Category":"","Description":"","Attributes":1,"ValueType":"System.Uri"},"Value":"executor://MSTestAdapter/v2"},{"Key":{"Id":"TestCase.Source","Label":"Source","Category":"","Description":"","Attributes":0,"ValueType":"System.String"},"Value":"XXX.Client.Tests/bin/Debug/net6.0/XXX.Client.Tests.dll"},{"Key":{"Id":"TestCase.CodeFilePath","Label":"File Path","Category":"","Description":"","Attributes":0,"ValueType":"System.String"},"Value":"XXX.Client.Tests/XXX.cs"},{"Key":{"Id":"TestCase.DisplayName","Label":"Name","Category":"","Description":"","Attributes":0,"ValueType":"System.String"},"Value":"PatchMedicalHistory"},{"Key":{"Id":"TestCase.Id","Label":"Id","Category":"","Description":"","Attributes":1,"ValueType":"System.Guid"},"Value":"b4d5b26f-759f-02c6-9465-7f6623eec8b6"},{"Key":{"Id":"TestCase.LineNumber","Label":"Line Number","Category":"","Description":"","Attributes":1,"ValueType":"System.Int32"},"Value":464},{"Key":{"Id":"TestCase.ManagedType","Label":"ManagedType","Category":"","Description":"","Attributes":1,"ValueType":"System.String"},"Value":"XXX.Client.Tests.XXXTests"},{"Key":{"Id":"TestCase.ManagedMethod","Label":"ManagedMethod","Category":"","Description":"","Attributes":1,"ValueType":"System.String"},"Value":"PatchMedicalHistory"},{"Key":{"Id":"MSTestDiscoverer.TestClassName","Label":"ClassName","Category":"","Description":"","Attributes":1,"ValueType":"System.String"},"Value":"XXX.Client.Tests.XXXTests"},{"Key":{"Id":"TestCase.Hierarchy","Label":"Hierarchy","Category":"","Description":"","Attributes":2,"ValueType":"System.String[]"},"Value":["XXX.Client.Tests","XXXTests"]},{"Key":{"Id":"TestObject.Traits","Label":"Traits","Category":"","Description":"","Attributes":5,"ValueType":"System.Collections.Generic.KeyValuePair`2[[System.String],[System.String]][]"},"Value":[]}]},{"Properties":[{"Key":{"Id":"TestCase.FullyQualifiedName","Label":"FullyQualifiedName","Category":"","Description":"","Attributes":1,"ValueType":"System.String"},"Value":"XXX.Client.Tests.XXXTests.PatchMedicalInfo"},{"Key":{"Id":"TestCase.ExecutorUri","Label":"Executor Uri","Category":"","Description":"","Attributes":1,"ValueType":"System.Uri"},"Value":"executor://MSTestAdapter/v2"},{"Key":{"Id":"TestCase.Source","Label":"Source","Category":"","Description":"","Attributes":0,"ValueType":"System.String"},"Value":"XXX.Client.Tests/bin/Debug/net6.0/XXX.Client.Tests.dll"},{"Key":{"Id":"TestCase.CodeFilePath","Label":"File Path","Category":"","Description":"","Attributes":0,"ValueType":"System.String"},"Value":"XXX.Client.Tests/XXX.cs"},{"Key":{"Id":"TestCase.DisplayName","Label":"Name","Category":"","Description":"","Attributes":0,"ValueType":"System.String"},"Value":"PatchMedicalInfo"},{"Key":{"Id":"TestCase.Id","Label":"Id","Category":"","Description":"","Attributes":1,"ValueType":"System.Guid"},"Value":"bb9fb37c-f2c5-aae4-a742-c930d85a2d22"},{"Key":{"Id":"TestCase.LineNumber","Label":"Line Number","Category":"","Description":"","Attributes":1,"ValueType":"System.Int32"},"Value":536},{"Key":{"Id":"TestCase.ManagedType","Label":"ManagedType","Category":"","Description":"","Attributes":1,"ValueType":"System.String"},"Value":"XXX.Client.Tests.XXXTests"},{"Key":{"Id":"TestCase.ManagedMethod","Label":"ManagedMethod","Category":"","Description":"","Attributes":1,"ValueType":"System.String"},"Value":"PatchMedicalInfo"},{"Key":{"Id":"MSTestDiscoverer.TestClassName","Label":"ClassName","Category":"","Description":"","Attributes":1,"ValueType":"System.String"},"Value":"XXX.Client.Tests.XXXTests"},{"Key":{"Id":"TestCase.Hierarchy","Label":"Hierarchy","Category":"","Description":"","Attributes":2,"ValueType":"System.String[]"},"Value":["XXX.Client.Tests","XXXTests"]},{"Key":{"Id":"TestObject.Traits","Label":"Traits","Category":"","Description":"","Attributes":5,"ValueType":"System.Collections.Generic.KeyValuePair`2[[System.String],[System.String]][]"},"Value":[]}]},{"Properties":[{"Key":{"Id":"TestCase.FullyQualifiedName","Label":"FullyQualifiedName","Category":"","Description":"","Attributes":1,"ValueType":"System.String"},"Value":"XXX.Client.Tests.XXXTests.PatchSchedulingAvailability"},{"Key":{"Id":"TestCase.ExecutorUri","Label":"Executor Uri","Category":"","Description":"","Attributes":1,"ValueType":"System.Uri"},"Value":"executor://MSTestAdapter/v2"},{"Key":{"Id":"TestCase.Source","Label":"Source","Category":"","Description":"","Attributes":0,"ValueType":"System.String"},"Value":"XXX.Client.Tests/bin/Debug/net6.0/XXX.Client.Tests.dll"},{"Key":{"Id":"TestCase.CodeFilePath","Label":"File Path","Category":"","Description":"","Attributes":0,"ValueType":"System.String"},"Value":"XXX.Client.Tests/XXX.cs"},{"Key":{"Id":"TestCase.DisplayName","Label":"Name","Category":"","Description":"","Attributes":0,"ValueType":"System.String"},"Value":"PatchSchedulingAvailability"},{"Key":{"Id":"TestCase.Id","Label":"Id","Category":"","Description":"","Attributes":1,"ValueType":"System.Guid"},"Value":"29d4de39-83bc-be91-90de-5ecd55ff5e02"},{"Key":{"Id":"TestCase.LineNumber","Label":"Line Number","Category":"","Description":"","Attributes":1,"ValueType":"System.Int32"},"Value":613},{"Key":{"Id":"TestCase.ManagedType","Label":"ManagedType","Category":"","Description":"","Attributes":1,"ValueType":"System.String"},"Value":"XXX.Client.Tests.XXXTests"},{"Key":{"Id":"TestCase.ManagedMethod","Label":"ManagedMethod","Category":"","Description":"","Attributes":1,"ValueType":"System.String"},"Value":"PatchSchedulingAvailability"},{"Key":{"Id":"MSTestDiscoverer.TestClassName","Label":"ClassName","Category":"","Description":"","Attributes":1,"ValueType":"System.String"},"Value":"XXX.Client.Tests.XXXTests"},{"Key":{"Id":"TestCase.Hierarchy","Label":"Hierarchy","Category":"","Description":"","Attributes":2,"ValueType":"System.String[]"},"Value":["XXX.Client.Tests","XXXTests"]},{"Key":{"Id":"TestObject.Traits","Label":"Traits","Category":"","Description":"","Attributes":5,"ValueType":"System.Collections.Generic.KeyValuePair`2[[System.String],[System.String]][]"},"Value":[]}]},{"Properties":[{"Key":{"Id":"TestCase.FullyQualifiedName","Label":"FullyQualifiedName","Category":"","Description":"","Attributes":1,"ValueType":"System.String"},"Value":"XXX.Client.Tests.XXXTests.PatchSchedulingAvailabilityNullTimeUpdate"},{"Key":{"Id":"TestCase.ExecutorUri","Label":"Executor Uri","Category":"","Description":"","Attributes":1,"ValueType":"System.Uri"},"Value":"executor://MSTestAdapter/v2"},{"Key":{"Id":"TestCase.Source","Label":"Source","Category":"","Description":"","Attributes":0,"ValueType":"System.String"},"Value":"XXX.Client.Tests/bin/Debug/net6.0/XXX.Client.Tests.dll"},{"Key":{"Id":"TestCase.CodeFilePath","Label":"File Path","Category":"","Description":"","Attributes":0,"ValueType":"System.String"},"Value":"XXX.Client.Tests/XXX.cs"},{"Key":{"Id":"TestCase.DisplayName","Label":"Name","Category":"","Description":"","Attributes":0,"ValueType":"System.String"},"Value":"PatchSchedulingAvailabilityNullTimeUpdate"},{"Key":{"Id":"TestCase.Id","Label":"Id","Category":"","Description":"","Attributes":1,"ValueType":"System.Guid"},"Value":"6d6325f8-ca8b-a8ed-d463-7b039d32eb4c"},{"Key":{"Id":"TestCase.LineNumber","Label":"Line Number","Category":"","Description":"","Attributes":1,"ValueType":"System.Int32"},"Value":674},{"Key":{"Id":"TestCase.ManagedType","Label":"ManagedType","Category":"","Description":"","Attributes":1,"ValueType":"System.String"},"Value":"XXX.Client.Tests.XXXTests"},{"Key":{"Id":"TestCase.ManagedMethod","Label":"ManagedMethod","Category":"","Description":"","Attributes":1,"ValueType":"System.String"},"Value":"PatchSchedulingAvailabilityNullTimeUpdate"},{"Key":{"Id":"MSTestDiscoverer.TestClassName","Label":"ClassName","Category":"","Description":"","Attributes":1,"ValueType":"System.String"},"Value":"XXX.Client.Tests.XXXTests"},{"Key":{"Id":"TestCase.Hierarchy","Label":"Hierarchy","Category":"","Description":"","Attributes":2,"ValueType":"System.String[]"},"Value":["XXX.Client.Tests","XXXTests"]},{"Key":{"Id":"TestObject.Traits","Label":"Traits","Category":"","Description":"","Attributes":5,"ValueType":"System.Collections.Generic.KeyValuePair`2[[System.String],[System.String]][]"},"Value":[]}]},{"Properties":[{"Key":{"Id":"TestCase.FullyQualifiedName","Label":"FullyQualifiedName","Category":"","Description":"","Attributes":1,"ValueType":"System.String"},"Value":"XXX.Client.Tests.XXXTests.PatchSignature"},{"Key":{"Id":"TestCase.ExecutorUri","Label":"Executor Uri","Category":"","Description":"","Attributes":1,"ValueType":"System.Uri"},"Value":"executor://MSTestAdapter/v2"},{"Key":{"Id":"TestCase.Source","Label":"Source","Category":"","Description":"","Attributes":0,"ValueType":"System.String"},"Value":"XXX.Client.Tests/bin/Debug/net6.0/XXX.Client.Tests.dll"},{"Key":{"Id":"TestCase.CodeFilePath","Label":"File Path","Category":"","Description":"","Attributes":0,"ValueType":"System.String"},"Value":"XXX.Client.Tests/XXX.cs"},{"Key":{"Id":"TestCase.DisplayName","Label":"Name","Category":"","Description":"","Attributes":0,"ValueType":"System.String"},"Value":"PatchSignature"},{"Key":{"Id":"TestCase.Id","Label":"Id","Category":"","Description":"","Attributes":1,"ValueType":"System.Guid"},"Value":"2b271ce2-97ce-7df9-e6a0-6ffa84f09dde"},{"Key":{"Id":"TestCase.LineNumber","Label":"Line Number","Category":"","Description":"","Attributes":1,"ValueType":"System.Int32"},"Value":715},{"Key":{"Id":"TestCase.ManagedType","Label":"ManagedType","Category":"","Description":"","Attributes":1,"ValueType":"System.String"},"Value":"XXX.Client.Tests.XXXTests"},{"Key":{"Id":"TestCase.ManagedMethod","Label":"ManagedMethod","Category":"","Description":"","Attributes":1,"ValueType":"System.String"},"Value":"PatchSignature"},{"Key":{"Id":"MSTestDiscoverer.TestClassName","Label":"ClassName","Category":"","Description":"","Attributes":1,"ValueType":"System.String"},"Value":"XXX.Client.Tests.XXXTests"},{"Key":{"Id":"TestCase.Hierarchy","Label":"Hierarchy","Category":"","Description":"","Attributes":2,"ValueType":"System.String[]"},"Value":["XXX.Client.Tests","XXXTests"]},{"Key":{"Id":"TestObject.Traits","Label":"Traits","Category":"","Description":"","Attributes":5,"ValueType":"System.Collections.Generic.KeyValuePair`2[[System.String],[System.String]][]"},"Value":[]}]}]}
[dbug]: OmniSharp.DotNetTest.VSTestManager
        read: {"MessageType":"TestDiscovery.Completed","Payload":{"TotalTests":16,"LastDiscoveredTests":null,"IsAborted":false,"Metrics":{},"FullyDiscoveredSources":["XXX.Client.Tests/bin/Debug/net6.0/XXX.Client.Tests.dll"],"PartiallyDiscoveredSources":[],"NotDiscoveredSources":[],"SkippedDiscoverySources":[],"DiscoveredExtensions":{"TestDiscoverers":["Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.MSTestDiscoverer, Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"],"TestSettingsProviders":[]}}}
[dbug]: OmniSharp.DotNetTest.VSTestManager
        send: {"MessageType":"TestExecution.GetTestRunnerProcessStartInfoForRunSelected","Payload":{"TestCases":[{"Properties":[{"Key":{"Id":"TestCase.FullyQualifiedName","Label":"FullyQualifiedName","Category":"","Description":"","Attributes":1,"ValueType":"System.String"},"Value":"XXX.Client.Tests.XXXTests.CreateLead"},{"Key":{"Id":"TestCase.ExecutorUri","Label":"Executor Uri","Category":"","Description":"","Attributes":1,"ValueType":"System.Uri"},"Value":"executor://MSTestAdapter/v2"},{"Key":{"Id":"TestCase.Source","Label":"Source","Category":"","Description":"","Attributes":0,"ValueType":"System.String"},"Value":"XXX.Client.Tests/bin/Debug/net6.0/XXX.Client.Tests.dll"},{"Key":{"Id":"TestCase.CodeFilePath","Label":"File Path","Category":"","Description":"","Attributes":0,"ValueType":"System.String"},"Value":"XXX.Client.Tests/XXX.cs"},{"Key":{"Id":"TestCase.DisplayName","Label":"Name","Category":"","Description":"","Attributes":0,"ValueType":"System.String"},"Value":"CreateLead"},{"Key":{"Id":"TestCase.Id","Label":"Id","Category":"","Description":"","Attributes":1,"ValueType":"System.Guid"},"Value":"840e335e-1a15-2179-9ed8-37a6e5413b75"},{"Key":{"Id":"TestCase.LineNumber","Label":"Line Number","Category":"","Description":"","Attributes":1,"ValueType":"System.Int32"},"Value":61},{"Key":{"Id":"TestCase.ManagedType","Label":"ManagedType","Category":"","Description":"","Attributes":1,"ValueType":"System.String"},"Value":"XXX.Client.Tests.XXXTests"},{"Key":{"Id":"TestCase.ManagedMethod","Label":"ManagedMethod","Category":"","Description":"","Attributes":1,"ValueType":"System.String"},"Value":"CreateLead"},{"Key":{"Id":"MSTestDiscoverer.TestClassName","Label":"ClassName","Category":"","Description":"","Attributes":1,"ValueType":"System.String"},"Value":"XXX.Client.Tests.XXXTests"},{"Key":{"Id":"TestCase.Hierarchy","Label":"Hierarchy","Category":"","Description":"","Attributes":2,"ValueType":"System.String[]"},"Value":["XXX.Client.Tests","XXXTests"]},{"Key":{"Id":"TestObject.Traits","Label":"Traits","Category":"","Description":"","Attributes":5,"ValueType":"System.Collections.Generic.KeyValuePair`2[[System.String],[System.String]][]"},"Value":[]}]}],"RunSettings":"\n<RunSettings>\n    <RunConfiguration>\n        <TargetFrameworkVersion>.NETCoreApp,Version=v6.0</TargetFrameworkVersion>\n    </RunConfiguration>\n</RunSettings>"}}
[dbug]: OmniSharp.DotNetTest.VSTestManager
        read: {"MessageType":"TestExecution.CustomTestHostLaunch","Payload":{"FileName":"XXX/.dotnet/dotnet","Arguments":"exec --runtimeconfig \"XXX.Client.Tests/bin/Debug/net6.0/XXX.Client.Tests.runtimeconfig.json\" --depsfile \"XXX.Client.Tests/bin/Debug/net6.0/XXX.Client.Tests.deps.json\" \"XXX.Client.Tests/bin/Debug/net6.0/testhost.dll\" --port 43643 --endpoint 127.0.0.1:043643 --role client --parentprocessid 278289 --telemetryoptedin false","WorkingDirectory":"XXX.Client.Tests/bin/Debug/net6.0","EnvironmentVariables":{},"CustomProperties":null}}
[dbug]: OmniSharp.Stdio.Host
        ************  Response (2256.8783ms) ************ 
{
  "Request_seq": 397,
  "Command": "/v2/debugtest/getstartinfo",
  "Running": true,
  "Success": true,
  "Message": null,
  "Body": {
    "FileName": "XXX/.dotnet/dotnet",
    "Arguments": "exec --runtimeconfig \"XXX.Client.Tests/bin/Debug/net6.0/XXX.Client.Tests.runtimeconfig.json\" --depsfile \"XXX.Client.Tests/bin/Debug/net6.0/XXX.Client.Tests.deps.json\" \"XXX.Client.Tests/bin/Debug/net6.0/testhost.dll\" --port 43643 --endpoint 127.0.0.1:043643 --role client --parentprocessid 278289 --telemetryoptedin false",
    "WorkingDirectory": "XXX.Client.Tests/bin/Debug/net6.0",
    "EnvironmentVariables": {},
    "Succeeded": true,
    "ContextHadNoTests": false,
    "FailureReason": null
  },
  "Seq": 2285,
  "Type": "response"
}

App Exits at Debug.Writeline

I have a .Net 8 Console App and when the debugger executes Debug.Writeline("...") the App exits with no errors or exception thrown. I am using VS Codium on Windows 11.

To reproduce the problem create a Console App with:

dotnet new console

The code in Program.cs is simple:

using System.Diagnostics;

Debug.WriteLine("Debug World"); // App exits here
Console.WriteLine("Hello, World!");

Launch.json

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": ".NET Core Launch (console)",
            "type": "coreclr",
            "request": "launch",
            "preLaunchTask": "build",
            "program": "${workspaceFolder}/bin/Debug/net8.0/Console7.dll",
            "args": [],
            "cwd": "${workspaceFolder}",
            "console": "internalConsole",
            "stopAtEntry": false
        },
        {
            "name": ".NET Core Attach",
            "type": "coreclr",
            "request": "attach"
        }
    ]
}

tasks.json

{
    "version": "2.0.0",
    "tasks": [
        {
            "label": "build",
            "command": "dotnet",
            "type": "process",
            "args": [
                "build",
                "${workspaceFolder}/Console7.csproj",
                "/property:GenerateFullPaths=true",
                "/consoleloggerparameters:NoSummary;ForceNoAlign"
            ],
            "problemMatcher": "$msCompile"
        },
        {
            "label": "publish",
            "command": "dotnet",
            "type": "process",
            "args": [
                "publish",
                "${workspaceFolder}/Console7.csproj",
                "/property:GenerateFullPaths=true",
                "/consoleloggerparameters:NoSummary;ForceNoAlign"
            ],
            "problemMatcher": "$msCompile"
        },
        {
            "label": "watch",
            "command": "dotnet",
            "type": "process",
            "args": [
                "watch",
                "run",
                "--project",
                "${workspaceFolder}/Console7.csproj"
            ],
            "problemMatcher": "$msCompile"
        }
    ]
}

Any help or pointers will be appreciated. Thank you!

Problem with debugging C# project via netcoredbg

Environment data

dotnet --info output: dotnet --info
Zestaw .NET Core SDK (odzwierciedlenie dowolnego pliku global.json):
Version: 3.1.108
Commit: c423b556b5

Środowisko uruchomieniowe:
OS Name: arch
OS Version: 5.8.13.arch1-1
OS Platform: Linux
RID: arch-x64
Base Path: /usr/share/dotnet/sdk/3.1.108/

Host (useful for support):
Version: 3.1.8
Commit: 05a0c8f6b1

.NET Core SDKs installed:
3.1.108 [/usr/share/dotnet/sdk]

.NET Core runtimes installed:
Microsoft.NETCore.App 3.1.8 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

To install additional .NET Core runtimes or SDKs:
https://aka.ms/dotnet-download
VS Code version: 1.49.3
C# Extension version: 1.23.2

OmniSharp log

Steps to reproduce

  1. Set breakpoint
  2. Click debug the project with following launch.json file:
    {
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
    {
    "name": ".NET Core Launch (console)",
    "type": "coreclr",
    "request": "launch",
    "preLaunchTask": "build",
    "program": "${workspaceFolder}/bin/Debug/netcoreapp3.1/First.dll",
    "args": [],
    "cwd": "${workspaceFolder}",
    "console": "internalConsole",
    "stopAtEntry": false,
    "pipeTransport": {
    "pipeCwd": "${workspaceFolder}",
    "pipeProgram": "bash",
    "pipeArgs": [],
    "debuggerPath": "/usr/bin/netcoredbg"
    }
    },
    {
    "name": ".NET Core Attach",
    "type": "coreclr",
    "request": "attach",
    "processId": "${command:pickProcess}"
    }
    ]
    }

Expected behavior

The debugging should start normally and stop at given point.

Actual behavior

There's a popup which says "Couldn't find a debug adapter descriptor for debug type 'coreclr' (extensions might have failed to activate)" and all I can do is click cancel or edit the launch.json file.

Debugger Not Working in Cursor

Version: 0.20.2
VSCode Version: 1.84.2
Commit: 33c8b08492b48664cb00a8ab054f2d60697bbf90
Date: 2023-12-19T02:08:30.362Z
Electron: 25.9.2
ElectronBuildId: undefined
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: 11.4.183.29-electron.0
OS: Windows_NT x64 10.0.22631

use this tool https://cursor.sh/

Extension throws `not compatible with VS Code {{version}}` error on install `>= 1.23.11`

Extension throws version compatibility error on VS Code when attempting to install using source built from 5035a14, see log message emitted below.

Rolling git tree back to previous commit and building vsix artifact output installs successfully on release version 1.23.11, which no long works due to #20 and #23 dependency failure.

Environment data

dotnet --info

.NET SDK (reflecting any global.json):
 Version:   5.0.400
 Commit:    d61950f9bf

Runtime Environment:
 OS Name:     ubuntu
 OS Version:  18.04
 OS Platform: Linux
 RID:         ubuntu.18.04-x64
 Base Path:   /usr/share/dotnet/sdk/5.0.400/

Host (useful for support):
  Version: 5.0.9
  Commit:  208e377a53

.NET SDKs installed:
  2.1.817 [/usr/share/dotnet/sdk]
  3.1.412 [/usr/share/dotnet/sdk]
  5.0.400 [/usr/share/dotnet/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.All 2.1.29 [/usr/share/dotnet/shared/Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.App 2.1.29 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 3.1.18 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 5.0.9 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 2.1.29 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 3.1.18 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 5.0.9 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

To install additional .NET runtimes or SDKs:
  https://aka.ms/dotnet-download

Code versions tried: 1.56.1 1.57.1 etc
C# Extension version: 1.23.14

Log

Unable to install extension 'csharp' as it is not compatible with VS Code '1.57.1'.

[2021-08-13 16:40:42.919] [window] [error] Unable to install extension 'muhammad-sammy.csharp' as it 
is not compatible with VS Code '1.57.1'.: Error: Unable to install extension 'muhammad-sammy.csharp' as 
it is not compatible with VS Code '1.57.1'.
    at /usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/server
/entry.js:36:61646
    at processTicksAndRejections (internal/process/task_queues.js:97:5)

Does this extension allow debugging in cursor.sh for dotnet projects?

Hello

could you please describe/document how to get this debugger to work in cursor if it is still working with cursor? I tried bunch of different combinations but I am not able to get it to work. I would like to be able to debug a web api project and a console project either with dotnet 6 or 7 as close as possible to the debugging experience in vscode.

Here are the steps I followed:

  • On a clean IDE with no c# related extensions installed. I downloaded the latest version of this extension, extracted it and placed it under ${workspaceFolder}/netcoredbg.

  • Created a new project with dotnet new console. Added the following launch.json and tasks.json.

    .vscode/tasks.json
    {
      "version": "2.0.0",
      "tasks": [
        {
          "label": "build",
          "command": "dotnet",
          "type": "process",
          "args": [
            "build",
            "${workspaceFolder}/test.csproj",
            "/property:GenerateFullPaths=true",
            "/consoleloggerparameters:NoSummary"
          ],
          "problemMatcher": "$msCompile"
        },
        {
          "label": "publish",
          "command": "dotnet",
          "type": "process",
          "args": [
            "publish",
            "${workspaceFolder}/test.csproj",
            "/property:GenerateFullPaths=true",
            "/consoleloggerparameters:NoSummary"
          ],
          "problemMatcher": "$msCompile"
        },
        {
          "label": "watch",
          "command": "dotnet",
          "type": "process",
          "args": [
            "watch",
            "run",
            "${workspaceFolder}/test.csproj",
            "/property:GenerateFullPaths=true",
            "/consoleloggerparameters:NoSummary"
          ],
          "problemMatcher": "$msCompile"
        }
      ]
    }
    .vscode/launch.json
    {
      "version": "0.2.0",
      "configurations": [
        {
          "name": ".NET Core Launch (console) with pipeline",
          "type": "coreclr",
          "request": "launch",
          "preLaunchTask": "build",
          "program": "${workspaceFolder}/bin/Debug/net6.0/test.dll",
          "args": [],
          "cwd": "${workspaceFolder}",
          "stopAtEntry": true,
          "console": "internalConsole",
          "internalConsoleOptions": "openOnSessionStart",
          "logging": {
            "diagnosticsLog": {
              "protocolMessages": true
            }
          }
          // tried with different versions of dotnet
          // tried with & without this pipe transport
          // tried building netcoredbg from source and using that
          // tried downloading the latest release of netcoredbg and using that
          // tried with the free c# extension and without it
          // "pipeTransport": {
          //     "pipeCwd": "${workspaceFolder}",
          //     "pipeProgram": "bash",
          //     "pipeArgs": ["-c"],
          //     // tried with different debuggers including this extension, samsung
          //     "debuggerPath": "${workspaceFolder}/netcoredbg/netcoredbg"
          //   },
        },
        {
          "name": ".NET Core Attach",
          "type": "coreclr",
          "request": "attach",
          "processId": "${command:pickProcess}"
        }
      ]
    }
  • Hit Debug(console)

I tried different combinations with the pipe transport, dotnet version etc. but the result is the same, debugger opens and closes and nothing happens in between or debugger hangs without hitting any of my breakpoints.

Note that this configurations works on vscode or vscode insiders with the official c# extension.

Samsung/netcoredbg release was changed

Environment data

dotnet

.NET SDK (reflecting any global.json):
 Version:   5.0.204
 Commit:    84d1fe1bb7

Runtime Environment:
 OS Name:     fedora
 OS Version:  34
 OS Platform: Linux
 RID:         fedora.34-x64
 Base Path:   /usr/lib64/dotnet/sdk/5.0.204/

Host (useful for support):
  Version: 5.0.7
  Commit:  556582d964

.NET SDKs installed:
  5.0.204 [/usr/lib64/dotnet/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 5.0.7 [/usr/lib64/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 5.0.7 [/usr/lib64/dotnet/shared/Microsoft.NETCore.App]

To install additional .NET runtimes or SDKs:
  https://aka.ms/dotnet-download

VS Code version:

1.56.2
054a9295330880ed74ceaedda236253b4f39a335
x64
(Codium)

C# Extension version:

1.23.12

OmniSharp log

Installing C# dependencies...
Platform: linux, x86_64, name=fedora, version=34

Downloading package 'OmniSharp for Linux (x64)' (35903 KB).................... Done!
Validating download...
Integrity Check succeeded.
Installing package 'OmniSharp for Linux (x64)'

Downloading package '.NET Core Debugger (linux / x64)' Failed to download from https://github.com/Samsung/netcoredbg/releases/download/1.2.0-825/netcoredbg-linux-bionic-amd64.tar.gz. Error code '404')
	Retrying from 'https://web.archive.org/web/20201125201611/https://github-production-release-asset-2e65be.s3.amazonaws.com/113926796/2a979180-2f1f-11eb-8254-5746e29dc86d?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20201125%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20201125T201611Z&X-Amz-Expires=300&X-Amz-Signature=16e82fadc53b2c8965a4921f7b4241df4b7d8ec1366d08a2e47d5ad840c80444&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=113926796&response-content-disposition=attachment%3B%20filename%3Dnetcoredbg-linux-bionic-amd64.tar.gz&response-content-type=application%2Foctet-stream' (NaN KB) Done!
Installing package '.NET Core Debugger (linux / x64)'

Failed at stage: installPackage
C# Extension was unable to install its dependencies. Please check your internet connection. If you use a proxy server, please visit https://aka.ms/VsCodeCsharpNetworking

https://github.com/Samsung/netcoredbg/releases/download/1.2.0-825/netcoredbg-linux-bionic-amd64.tar.gz not exists anymore.
Should be https://github.com/Samsung/netcoredbg/releases/download/1.2.0-825/netcoredbg-linux-amd64.tar.gz

Debugging: upper-scope variables aren't visible in the nested functions

I apologize if this is a wrong place to report this issue.

There is a code:

void TestNested() {
    int i = 0;
    Nested();

    void Nested() {
        i += 2;
    }
}

When I debug into Nested(), the i variable is not visible anymore neither in Locals nor in Watches. I cosider it a bug because i is available for Nested().

Support for .NET 7

Is your feature request related to a problem? Please describe.

The extension currently doesn't work with .NET 7 tooling. This is a problem because it prevents me from working with projects that target .NET 7.

Describe the solution you would like

I want the extension to be functional when only .NET 7 runtime and SDK are installed in the system.

Describe alternatives you've considered

The extension works when .NET 6 tooling is installed, but only with projects that also target .NET 6 or lower.

Additional context

This is the message Omnisharp logs when trying to start:

Starting OmniSharp server at 11/23/2022, 12:57:15 PM
    Target: /home/user/Documents/Programming/Repositories/SomeProject/SomeProject.sln

OmniSharp server started with .NET 7.0.100
.
    Path: /home/user/.vscode-oss/extensions/muhammad-sammy.csharp-1.24.0/.omnisharp/1.38.0-net6.0/OmniSharp.dll
    PID: 78795

You must install or update .NET to run this application.

App: /home/user/.vscode-oss/extensions/muhammad-sammy.csharp-1.24.0/.omnisharp/1.38.0-net6.0/OmniSharp.dll
Architecture: x64
Framework: 'Microsoft.NETCore.App', version '6.0.0' (x64)
.NET location: /usr/share/dotnet/

The following frameworks were found:
  7.0.0 at [/usr/share/dotnet/shared/Microsoft.NETCore.App]

Learn about framework resolution:
https://aka.ms/dotnet/app-launch-failed

To install missing framework, download:
https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=6.0.0&arch=x64&rid=arch-x64
[ERROR] Error: OmniSharp server load timed out. Use the 'omnisharp.projectLoadTimeout' setting to override the default delay (one minute).
  • Arch Linux
  • VSCodium 1.73.1.22314-1

Extension is outdated

There's a new release available (1.23.8) but I saw that you probably can't publish it to open-vsx. But could you at least provide the release here on Github?

Remote attach to netcoredbg process from open-vscode

Issue Description

Heyo,

I am working on a project that requires a remote debug connection from one container running open vscode to another container running a dotnet 5 program. I'm attempting to use muhammadsammy/free-omnisharp-vscode & samsung/netcoredbg, since microsoft C# extension is proprietary and won't work with open vs code 😢.

I have tried quite a few different ways of attempting to do this, but have hit quite a few roadblocks.
If anyone has some advice on this kind of setup please let me know. I am going to post this in both free-omnisharp-vscode & netcoredbg repos.

Here are my latest attempts

Attempt 1

  • Run the dotnet dll at launch of program container
  • Use pipetransport in VS container to launch a script that creates an ssh connection to the program container and executes netcoredbg --interpreter=vscode
    Launch config
        {
            "name": "Attach Remote C#",
            "type": "coreclr",
            "request": "attach",
            "requireExactSource": false,
            "justMyCode": false,
            "processId":"",
            "pipeTransport": {
                "pipeCwd": "${workspaceFolder}",
                "pipeProgram": "${workspaceFolder}/.vscode/connect.sh",
                "pipeArgs": [],
                "debuggerPath": "/QuantConnect/netcoredbg"
            }
        },

connect.sh
ssh -o "StrictHostKeyChecking no" [email protected] '/QuantConnect/netcoredbg --interpreter=vscode --log --engineLogging=/Log/log.txt --attach 91' (Variations of this, with/without PID, with/without logging)

Output

No PID Included:
Operating system """ not supported

Tweaking this a bit to do try logging I also see Operating system "{Content Length: 56}" not supported 😕

So it making the connection and starting netcoredbg but the debugger is having issues.

PID Included:
{"seq":1,"body":{},"event":"initialized","type":"event"}stderr: Error: 0x80070057 Failed to attach to 91

Attempt 2

  • Have program container start idle (interactive bash)
  • Use pipetransport in VS container to launch a script that creates an ssh connection to the program container and executes '/QuantConnect/netcoredbg --interpreter=vscode -- /usr/bin/dotnet /Lean/Launcher/bin/Debug/QuantConnect.Lean.Launcher.dll'

Output

So this is interesting, because I see two different behaviors

  1. Running locally (Official C# Extension); connects, launches program, debugger attaches, breaks on exception. 🤔

Not really important though because its not my use case. The exception is probably because I am using official C# with netcoredbg ❌

  1. Running in Open VS Code

Operating system """ not supported 😢

Ideas

I noticed netcoredbg has a --server flag that would allow launching the process and then debugging through a port instead of requiring SSH, has anybody used this and had it work? I see in a VSCode configuration I can add "debugServer", but its just the port. 🤔

Even trying this locally with an exposed port did not work as I would've hoped.

Environment information

VSCode version: 1.62.3
C# Extension: 1.23.16

Mono Information OmniSharp using built-in mono
Dotnet Information .NET SDK (reflecting any global.json): Version: 5.0.402 Commit: e9d3381880

Runtime Environment:
OS Name: ubuntu
OS Version: 20.04
OS Platform: Linux
RID: ubuntu.20.04-x64
Base Path: /usr/share/dotnet/sdk/5.0.402/

Host (useful for support):
Version: 5.0.11
Commit: f431858f8b

.NET SDKs installed:
5.0.402 [/usr/share/dotnet/sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 5.0.11 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 5.0.11 [/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
csharp muhammad-sammy 1.23.16
jupyter ms-toolsai 2021.8.12
python ms-python 2021.11.1422169775

Razor formatting fails

When trying to format a .cshtml file the formatting fails with a pop-up that says: "Request to textDocument/formatting failed."
This is the output in 'Razor Log':

[Info  - 4:00:06 PM] Returned 34 semantic tokens for range Microsoft.VisualStudio.LanguageServer.Protocol.Range in file:///home/USER/Code/SOLUTION_NAME/PROJECT_NAME/Areas/Dashboard/Pages/matcher/Creator.cshtml.

Entering method textDocument/foldingRange.

Entering method textDocument/codeAction.

Entering method razor/mapToDocumentRanges.

Entering method razor/mapToDocumentRanges.

Entering method razor/mapToDocumentRanges.

Entering method razor/mapToDocumentRanges.

Entering method razor/mapToDocumentRanges.

Entering method razor/mapToDocumentRanges.

Entering method razor/mapToDocumentRanges.

Entering method razor/mapToDocumentRanges.

Entering method razor/mapToDocumentRanges.

Entering method razor/mapToDocumentRanges.

Entering method razor/mapToDocumentRanges.

Entering method razor/mapToDocumentRanges.

Entering method razor/mapToDocumentRanges.

Entering method razor/mapToDocumentRanges.

Entering method razor/mapToDocumentRanges.

Entering method textDocument/foldingRange.

Entering method textDocument/codeAction.

Entering method textDocument/formatting.

[Error - 4:00:08 PM] [null]

[Error - 4:00:08 PM] Request textDocument/formatting failed.

  Message: Specified argument was out of the range of valid values. (Parameter 'Range end line 23 matches or exceeds SourceText boundary 23.')

  Code: -32000 

[object Object]

When I tried formatting a different cshtml file it also fails. With 140 instead of 23 (the file had 140 lines). So I assume somewhere a check for lines has a off by 1 bug.
Other razor language features seem to work fine.
Dotnet: 8.0.301
Node: v22.2.0
Code OSS: 1.90.1 611f9bfce64f25108829dd295f54a6894e87339d x64
free-vscode-csharp: Last released 2024-06-01

Could not find a debug adapter

VSCodium produce the follow error when trying to start a debug session:
Couldn't find a debug adapter descriptor for debug type 'dotnet' (extension might have failed to active)

Extension was installed from Marketplace.
image

Building and running a 'hello world' C# project works without issues.

launch.json

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "C#: Debug",
            "type": "dotnet",
            "request": "launch",
            "projectPath": "${workspaceFolder}/hello_world.csproj"
        },
    ]
}

installed dotnet sdks:
8.0.105

VSCodium version:
1.89.1

Please advice on how to get a debugger running and connect or how to proceed.
Big thank you in advance for any help or insight!

1.23.15-Patch change

Please upload a new version to openvsx, gitpod thinks 1.23.15-patch is older than 1.23.15 and automatically installs the non patch version

i managed to build from source and got the extension plus omnisharp working without issue but new workspaces just download extensions again.

If possibly can you allow 1.57 vs code? self hosted gitpod currently runs on 1.57 unless using nightly build

Add support for platform specific extensions

Hi, I've opened this issue to discuss the integration of platform-specific extensions. There are names of architectures in the link. From what I see it should be easy to add. I think most of the code could be copied from release ci. Open-vsx needs --target option with the platform name e.g. win32-x64. So we could just copy run commands with different platform names and eventually later refactor it.

PS. One thing that I'd like @muhammadsammy to do is to pull the changes (since the workflows have changed a bit on upstream) that are part of 1.25.0 release so I could edit workflows in my fork but to not create a release so we could try to implement this feature and since it's still marked as pre-release on upstream.
PS2. I hope you understand what I've written. If not please ask.
PS3. Here's an example for refactor but let's focus first on making it workng.

Extension fails to download latest version of debugger

Issue Description

As the title says, the extension fails to download the latest version of samsung debugger. From what I can see, it is because they changed how the release archives are labeled.

Steps to Reproduce

Install extension and let it try to download dependencies.

Expected Behavior

Successful installation

Actual Behavior

Installation fails because the file requested by the extension does not exist.

Logs

OmniSharp log

Post the output from Output-->OmniSharp log here

C# log

Post the output from Output-->C# here

Environment information

VSCode version: 1.56.2
C# Extension: 1.23.12

Mono Information OmniSharp using built-in mono
Dotnet Information .NET SDK (reflecting any global.json): Version: 5.0.204 Commit: 84d1fe1bb7

Runtime Environment:
OS Name: arch
OS Version:
OS Platform: Linux
RID: arch-x64
Base Path: /usr/share/dotnet/sdk/5.0.204/

Host (useful for support):
Version: 5.0.7
Commit: a002cbfb6b

.NET SDKs installed:
5.0.204 [/usr/share/dotnet/sdk]

.NET runtimes installed:
Microsoft.NETCore.App 5.0.7 [/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
csharp muhammad-sammy 1.23.12
csharpextensions jsw 1.4.0

Debugger Not Working

Hey there,
I recently migrated to VSCodium from VSCode for writing C# code, since IDEs like Rider and VS2022 are a bit too heavy for my machine (on their own, they work fine, but I like to multitask a lot while I code, which isn't really possible with a huge IDE taking 80% of my RAM).
The linting, intellisense, and everything else work fine, but debugging doesn't seem to be working.

Running a Hello World program doesn't give me any errors, but also doesn't greet the world.
image
I tested this with several other projects, including a simple game built with Monogame, but it didn't load a window either.

I have also tried changing the "console": field in .vscode/launch.json, but it didn't make any changes. Other than that, the launch.json file is pretty much untouched and fully generated by the "generate assets" popup that appears when I open a C# project, but here it is just in case:

{
    "version": "0.2.0",
    "configurations": [
        {
            // Use IntelliSense to find out which attributes exist for C# debugging
            // Use hover for the description of the existing attributes
            // For further information visit https://github.com/dotnet/vscode-csharp/blob/main/debugger-launchjson.md
            "name": ".NET Core Launch (console)",
            "type": "coreclr",
            "request": "launch",
            "preLaunchTask": "build",
            // If you have changed target frameworks, make sure to update the program path.
            "program": "${workspaceFolder}/bin/Debug/net8.0/test.dll",
            "args": [],
            "cwd": "${workspaceFolder}",
            // For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console
            "console": "internalConsole",
            "stopAtEntry": false
        },
        {
            "name": ".NET Core Attach",
            "type": "coreclr",
            "request": "attach"
        }
    ]
}

Unable to use integratedTerminal

Environment data

dotnet --info output:

.NET SDK (reflecting any global.json):
 Version:   6.0.101
 Commit:    ef49f6213a

Runtime Environment:
 OS Name:     debian
 OS Version:  11
 OS Platform: Linux
 RID:         debian.11-x64
 Base Path:   /usr/share/dotnet/sdk/6.0.101/

Host (useful for support):
  Version: 6.0.1
  Commit:  3a25a7f1cc

.NET SDKs installed:
  3.1.416 [/usr/share/dotnet/sdk]
  5.0.404 [/usr/share/dotnet/sdk]
  6.0.101 [/usr/share/dotnet/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 3.1.22 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 5.0.13 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 6.0.1 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 3.1.22 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 5.0.13 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 6.0.1 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

VS Code version: VSCodium 1.63.2
C# Extension version: muhammad-sammy.csharp v1.24.0

Steps to reproduce

Set the console to integratedTerminal in the launch.json and attempt to launch the debugger.

{
    "name": "Run ",
    "type": "coreclr",
    "request": "launch",
    "preLaunchTask": "build",
    "program": "${workspaceFolder}/MyProject/bin/Debug/net6.0/MyProject.dll",
    "args": [""],
    "cwd": "${workspaceFolder}",
    "console": "integratedTerminal",
    "stopAtEntry": false
}

Expected behavior

A new debug session in the integrated terminal, where the user can input text, as needed for a Console.ReadLine();

Actual behavior

A new debug session in the Debug Console, where the user can not input text.

pipeTransport settings are ignored when debugging

Is your feature request related to a problem? Please describe.

When attempting to use the PipeTransport settings, the debugger ignores all the command line options and paths to the debugger in favor of a default install.

Describe the solution you would like

I would like to be able to pass command line options to netcoredbg

Applicable Scenarios

When debugging projects written in C# for Godot, netcoredbg needs to be invoked in a particular way, with specific command line options, but currently the options are ignored.

Describe alternatives you've considered

AFAIK there isn't one.

I have attached a PR with a proposed fix. It could do with some review.

#68

Conflict with official C# extension installed, how to set FreeOmnisharp as default?

Some extensions like C# snippets require the official ms-dotnettools version of C# extension to be installed and enabled.

If I have both Official C# and FreeOmnisharp C# extensions, how do you set in launch.json which one to use for debugging? When I press F5 it uses the official one to run the debugger not this one.

A lot of popular extensions depend on the official one.

Environment data

dotnet --info output: .NET 5.0.102 SDK Installed
VS Code version: Latest
C# Extension version: Latest

Steps to reproduce

  1. Install the Microsoft Official C# extension for VS Code
  2. Install the Free Omnisharp VSCode Extension
  3. Run the program, uses official MS C# by default

Expected behavior

  • Be able to set the default extension to use as FreeOmnisharp
  • OR
  • Allow third-party extensions to think Microsoft Official C# is installed

Actual behavior

  • Debugger runs with official c# extension not with FreeOmnisharp
  • Disabling or removing microsoft C# extension makes it impossible to use other extenions that depend on it.

Please update to version 1.25.4

OmniSharp's version is now at 1.25.2. Even though they officially mark it as a pre-release (which I consider weird and confusing), it is really the current version which you are getting from Microsoft's Marketplace.

The reason I am doing this request is also because I have noticed that multiple of Roslyn's autosuggestions and completions don't work with your version 1.25.0 anymore. This seems to include both .NET 6 and .NET 7 projects.

Maybe I would need to downgrade my entire installed .NET Host / SDK version in order to get it things working for .NET 6 again. But the thing is that I have both .NET 6 and .NET 7 projects around, so that's not really a solution.

But VS Code also gets updates so it may also be related to VS Code instead. I really don't know.

(Thanks a lot for your work!)

Cannot debug webapi projects

Issue Description

Cannot debug webapi projects. For some reason I can debug Startup.cs, but then it crashes, I can't get to a point where I can debug a Controller endpoint. dotnet run works fine without debugging. I'm not sure if I'm doing something wrong.

Steps to Reproduce

  1. dotnet new webapi
  2. code .
  3. Generate launch.json

Launch.json:

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": ".NET Core Launch (console)",
            "type": "coreclr",
            "request": "launch",
            "preLaunchTask": "build",
            "program": "${workspaceFolder}/bin/Debug/net5.0/webapi-test.dll",
            "args": [],
            "cwd": "${workspaceFolder}",
            "stopAtEntry": false,
            "console": "internalConsole"
        },
        {
            // Use IntelliSense to find out which attributes exist for C# debugging
            // Use hover for the description of the existing attributes
            // For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md
            "name": ".NET Core Launch (web)",
            "type": "coreclr",
            "request": "launch",
            "preLaunchTask": "build",
            // If you have changed target frameworks, make sure to update the program path.
            "program": "${workspaceFolder}/bin/Debug/net5.0/webapi-test.dll",
            "args": [],
            "cwd": "${workspaceFolder}",
            "stopAtEntry": false,
            // Enable launching a web browser when ASP.NET Core starts. For more information: https://aka.ms/VSCode-CS-LaunchJson-WebBrowser
            "serverReadyAction": {
                "action": "openExternally",
                "pattern": "\\bNow listening on:\\s+(https?://\\S+)"
            },
            "env": {
                "ASPNETCORE_ENVIRONMENT": "Development"
            },
            "sourceFileMap": {
                "/Views": "${workspaceFolder}/Views"
            }
        },
        {
            "name": ".NET Core Attach",
            "type": "coreclr",
            "request": "attach"
        }
    ]
}

tasks.json:

{
    "version": "2.0.0",
    "tasks": [
        {
            "label": "build",
            "command": "dotnet",
            "type": "process",
            "args": [
                "build",
                "${workspaceFolder}/webapi-test.csproj",
                "/property:GenerateFullPaths=true",
                "/consoleloggerparameters:NoSummary"
            ],
            "problemMatcher": "$msCompile"
        },
        {
            "label": "publish",
            "command": "dotnet",
            "type": "process",
            "args": [
                "publish",
                "${workspaceFolder}/webapi-test.csproj",
                "/property:GenerateFullPaths=true",
                "/consoleloggerparameters:NoSummary"
            ],
            "problemMatcher": "$msCompile"
        },
        {
            "label": "watch",
            "command": "dotnet",
            "type": "process",
            "args": [
                "watch",
                "run",
                "${workspaceFolder}/webapi-test.csproj",
                "/property:GenerateFullPaths=true",
                "/consoleloggerparameters:NoSummary"
            ],
            "problemMatcher": "$msCompile"
        }
    ]
}

Expected Behavior

Debugger should launch. Debugger should stay running and hit breakpoints in Controller.

Actual Behavior

Debugger launches, hit's breakpoints in Startup.cs, then stops working. Code stops running. Browser auto opens http://localhost:5000/ but the server already stopped running.

Logs

OmniSharp log

Starting OmniSharp server at 11/2/2021, 7:29:56 PM Target: /home/davidb/playground/webapi-test

OmniSharp server started.
Path: /home/davidb/.vscode-oss/extensions/muhammad-sammy.csharp-1.23.16/.omnisharp/1.37.16/run
PID: 12337

Starting OmniSharp on manjaro 0.0 (x64)
info: OmniSharp.Services.DotNetCliService
Checking the 'DOTNET_ROOT' environment variable to find a .NET SDK
info: OmniSharp.Services.DotNetCliService
DotNetPath set to /usr/share/dotnet/dotnet
info: OmniSharp.MSBuild.Discovery.MSBuildLocator
Located 1 MSBuild instance(s)
1: StandAlone 17.0.0 - "/home/davidb/.vscode-oss/extensions/muhammad-sammy.csharp-1.23.16/.omnisharp/1.37.16/omnisharp/.msbuild/Current/Bin"
info: OmniSharp.MSBuild.Discovery.MSBuildLocator
MSBUILD_EXE_PATH environment variable set to '/home/davidb/.vscode-oss/extensions/muhammad-sammy.csharp-1.23.16/.omnisharp/1.37.16/omnisharp/.msbuild/Current/Bin/MSBuild.exe'
info: OmniSharp.MSBuild.Discovery.MSBuildLocator
Registered MSBuild instance: StandAlone 17.0.0 - "/home/davidb/.vscode-oss/extensions/muhammad-sammy.csharp-1.23.16/.omnisharp/1.37.16/omnisharp/.msbuild/Current/Bin"
CscToolExe = csc.exe
MSBuildToolsPath = /home/davidb/.vscode-oss/extensions/muhammad-sammy.csharp-1.23.16/.omnisharp/1.37.16/omnisharp/.msbuild/Current/Bin
CscToolPath = /home/davidb/.vscode-oss/extensions/muhammad-sammy.csharp-1.23.16/.omnisharp/1.37.16/omnisharp/.msbuild/Current/Bin/Roslyn
BypassFrameworkInstallChecks = true
MSBuildExtensionsPath = /home/davidb/.vscode-oss/extensions/muhammad-sammy.csharp-1.23.16/.omnisharp/1.37.16/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/davidb/playground/webapi-test'.
info: OmniSharp.Cake.CakeProjectSystem
Could not find any Cake files
info: OmniSharp.MSBuild.ProjectSystem
No solution files found in '/home/davidb/playground/webapi-test'
info: OmniSharp.MSBuild.ProjectManager
Queue project update for '/home/davidb/playground/webapi-test/webapi-test.csproj'
info: OmniSharp.Script.ScriptProjectSystem
Detecting CSX files in '/home/davidb/playground/webapi-test'.
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/davidb/playground/webapi-test' on host 12212.
info: OmniSharp.MSBuild.ProjectManager
Loading project: /home/davidb/playground/webapi-test/webapi-test.csproj
info: OmniSharp.MSBuild.ProjectManager
Successfully loaded project file '/home/davidb/playground/webapi-test/webapi-test.csproj'.
info: OmniSharp.MSBuild.ProjectManager
Adding project '/home/davidb/playground/webapi-test/webapi-test.csproj'
info: OmniSharp.MSBuild.ProjectManager
Update project: webapi-test
Received response for /v2/getcodeactions but could not find request.
Received response for /findusages but could not find request.
Received response for /v2/codestructure but could not find request.
Received response for /v2/codestructure but could not find request.

C# log

Environment information

VSCode version: 1.61.0
C# Extension: 1.23.16

Mono Information OmniSharp using built-in mono
Dotnet Information .NET SDK (reflecting any global.json): Version: 5.0.205 Commit: 64a0cf25eb

Runtime Environment:
OS Name: manjaro
OS Version:
OS Platform: Linux
RID: arch-x64
Base Path: /usr/share/dotnet/sdk/5.0.205/

Host (useful for support):
Version: 5.0.8
Commit: 42ac4d6d5a

.NET SDKs installed:
5.0.205 [/usr/share/dotnet/sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 5.0.8 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 5.0.8 [/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
csharp muhammad-sammy 1.23.16

Debugger failed command 'configurationDone'

Issue Description

I am trying to attach the debuggeer to a running exe process using following launch.json

{
  "configurations": [
    {
      "name": "Attach to process",
      "type": "clr",
      "request": "attach",
      "processId": 16908,
      "requireExactSource": false
    }
  ]
}

where 16908 is the process id of the running exe.
The debugger starts, but after couple of second it exits with an error:

Failed command 'configurationDone' : 0x80070057

2021-01-19_13h13_59

Any idea how to fix that?

This is not happening in vscode with official omnisharp. There the debugger runs smooth.

Expected Behavior

The debugger starts.

Actual Behavior

Error: Failed command 'configurationDone' : 0x80070057

Logs

OmniSharp log

Post the output from Output-->OmniSharp log here

C# log

Post the output from Output-->C# here

Environment information

VSCode version: 1.52.1
C# Extension: 1.23.8

Dotnet Information .NET SDK (reflecting any global.json): Version: 5.0.102 Commit: 71365b4d42

Runtime Environment:
OS Name: Windows
OS Version: 10.0.18363
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\5.0.102\

Host (useful for support):
Version: 5.0.2
Commit: cb5f173b96

.NET SDKs installed:
3.1.405 [C:\Program Files\dotnet\sdk]
5.0.100 [C:\Program Files\dotnet\sdk]
5.0.102 [C:\Program Files\dotnet\sdk]

.NET runtimes installed:
Microsoft.AspNetCore.All 2.1.23 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.1.24 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.1.23 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.1.24 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.1.9 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.1.11 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 5.0.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 5.0.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.1.23 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.1.24 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 3.1.9 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 3.1.11 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 5.0.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 5.0.2 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 3.1.9 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 3.1.11 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 5.0.0 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 5.0.2 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

To install additional .NET runtimes or SDKs:
https://aka.ms/dotnet-download

Visual Studio Code Extensions
Extension Author Version
csharp muhammad-sammy 1.23.8

Extension debug fails --attach on aspnet3.0 - net5.0 with services.AddAuthentication() declared

Extension locks up / does not show anything in Debug pane after this breakpoint:

public ConfigureServices() {
    services.AddAuthentication();    // wont launch dotnet web server or output to debug pane if service is present
}

Environment data

dotnet --info output: net5.0
VS Code version: latest
C# Extension version: 1.23.9

Using vscodium with latest extension installed.

OmniSharp log

Nothing logged to Output => Omnisharp Extension

Chinese characters in Debug Console not be displayed properly.

Type: Bug

Simply run a C# project and output some characters, the Chinese characters are displayed as question marks.

Extension version: 1.25.0
VS Code version: Cursor 0.2.7 (f9c29d73ab9f4d88cff4de986247553b5d60e71e, 2023-04-20T01:51:46.916Z)
OS version: Windows_NT x64 10.0.19045
Modes:
Sandboxed: No

System Info
Item Value
CPUs AMD Ryzen 7 5700G with Radeon Graphics (16 x 3793)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
Load (avg) undefined
Memory (System) 13.90GB (2.78GB free)
Process Argv --updated
Screen Reader no
VM 80%

Unable to read input from the console with C#

Issue Description

VSCode terminal doesn't allow me to read from the console. Two things that appear incorrect:

  • When I run my application, the output appears in Debug Console instead of in Terminal
  • When I type anything in Debug Console, I get error 80070057

Steps to Reproduce

Simple option: follow these MSDN instructions.

My distilled-down version:

  • `dotnet new console --name test
  • Open up Program.cs and add your choice of Console.Read, Console.ReadLine, or Console.ReadKey to the end
  • Configure VSCode with launch.json - make sure you set console to integratedTerminal or externalTerminal
  • I was told to also set internalConsoleOptions to neverOpen, although this seems to make no difference
  • Run/debug the application
  • Type something. Anything.

Expected Behavior

You should be able to read from the terminal and continue running the application

Actual Behavior

There is no way to send input in.

  • Typing anything in the Debug Console prints error 0x80070057
  • Typing anything in Terminal closes the terminal

Logs

I don't know what logs to provide, please advise.

OmniSharp log

Starting OmniSharp server at 3/19/2023, 12:12:23 p.m.
    Target: /home/nb/code/obsidian-mountain/source/ObsidianMountain.sln

OmniSharp server started with .NET 6.0.113
.
    Path: /home/nb/.vscode-oss/extensions/muhammad-sammy.csharp-1.25.0-universal/.omnisharp/1.39.0-net6.0/OmniSharp.dll
    PID: 7498

[info]: OmniSharp.Stdio.Host
        Starting OmniSharp on Unknown 0.0 (Unknown)
[info]: OmniSharp.Services.DotNetCliService
        Checking the 'DOTNET_ROOT' environment variable to find a .NET SDK
[info]: OmniSharp.Services.DotNetCliService
        DotNetPath set to /usr/share/dotnet/dotnet
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Located 1 MSBuild instance(s)
            1: .NET Core SDK 6.0.113 17.0.1 - "/usr/share/dotnet/sdk/6.0.113/"
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Registered MSBuild instance: .NET Core SDK 6.0.113 17.0.1 - "/usr/share/dotnet/sdk/6.0.113/"
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpFormattingWorkspaceOptionsProvider, Order: 0
[info]: OmniSharp.MSBuild.ProjectSystem
        Detecting projects in '/home/nb/code/obsidian-mountain/source/ObsidianMountain.sln'.
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for '/home/nb/code/obsidian-mountain/source/ObsidianMountain.Console/ObsidianMountain.Console.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for '/home/nb/code/obsidian-mountain/source/ObsidianMountain.Core/ObsidianMountain.Core.csproj'
[info]: OmniSharp.Script.ScriptProjectSystem
        Detecting CSX files in '/home/nb/code/obsidian-mountain/source'.
[info]: OmniSharp.Script.ScriptProjectSystem
        Did not find any CSX files
[info]: OmniSharp.WorkspaceInitializer
        Configuration finished.
[info]: OmniSharp.Stdio.Host
        Omnisharp server running using Stdio at location '/home/nb/code/obsidian-mountain/source' on host 7334.
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: /home/nb/code/obsidian-mountain/source/ObsidianMountain.Console/ObsidianMountain.Console.csproj
[info]: OmniSharp.MSBuild.ProjectManager
        Successfully loaded project file '/home/nb/code/obsidian-mountain/source/ObsidianMountain.Console/ObsidianMountain.Console.csproj'.
[info]: OmniSharp.MSBuild.ProjectManager
        Adding project '/home/nb/code/obsidian-mountain/source/ObsidianMountain.Console/ObsidianMountain.Console.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: /home/nb/code/obsidian-mountain/source/ObsidianMountain.Core/ObsidianMountain.Core.csproj
[info]: OmniSharp.MSBuild.ProjectManager
        Successfully loaded project file '/home/nb/code/obsidian-mountain/source/ObsidianMountain.Core/ObsidianMountain.Core.csproj'.
[info]: OmniSharp.MSBuild.ProjectManager
        Adding project '/home/nb/code/obsidian-mountain/source/ObsidianMountain.Core/ObsidianMountain.Core.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Update project: ObsidianMountain.Console
[info]: OmniSharp.MSBuild.ProjectManager
        Update project: ObsidianMountain.Core

C# log

There is nothing logged in Output -> C#

Environment information

VSCode version: 1.75.1
C# Extension: 1.25.0

Mono Information There is a problem with running OmniSharp on mono: Error: Unable to find Mono. Ensure that Mono's '/bin' folder is added to your environment's PATH variable.
Dotnet Information .NET SDK (reflecting any global.json): Version: 6.0.113 Commit: 4a23b50f97

Runtime Environment:
OS Name: manjaro
OS Version:
OS Platform: Linux
RID: arch-x64
Base Path: /usr/share/dotnet/sdk/6.0.113/

Host:
Version: 7.0.2
Architecture: x64
Commit: d037e070eb

.NET SDKs installed:
6.0.113 [/usr/share/dotnet/sdk]

.NET runtimes installed:
Microsoft.NETCore.App 6.0.13 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

Other architectures found:
None

Environment variables:
DOTNET_ROOT [/usr/share/dotnet]

global.json file:
Not found

Learn more:
https://aka.ms/dotnet/info

Download .NET:
https://aka.ms/dotnet/download

Visual Studio Code Extensions
Extension Author Version
csharp muhammad-sammy 1.25.0
markdown-preview-enhanced shd101wyy 0.6.8
simple-rst trond-snekvik 1.5.2

NPM fails installing and building due to failing requests to private Microsoft npm repos

Environment data

dotnet --info output: Latest
VS Code version: Latest
C# Extension version:

Steps to reproduce

  1. run npm install throws error
npx gulp 'vsix:release:package'
[14:07:53] Requiring external module ts-node/register
[14:07:59] Using gulpfile /free-omnisharp-vscode/gulpfile.ts
[14:07:59] Starting 'vsix:release:package'...
starting node /free-omnisharp-vscode/node_modules/vsce/out/vsce package
Executing prepublish script 'npm run vscode:prepublish'...
 ERROR  Command failed: npm run vscode:prepublish
npm ERR! code 2
npm ERR! path /free-omnisharp-vscode
npm ERR! command failed
npm ERR! command sh -c tsc -p ./ && webpack --mode production

[14:08:08] 'vsix:release:package' errored after 9.26 s
[14:08:08] Error: process exited with code 1
    at ChildProcess.<anonymous> (/free-omnisharp-vscode/node_modules/async-child-process/lib/join.js:25:22)
    at ChildProcess.emit (events.js:314:20)
    at ChildProcess.EventEmitter.emit (domain.js:506:15)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)
    at Process.callbackTrampoline (internal/async_hooks.js:126:14)
npm ERR! code 1
npm ERR! path /free-omnisharp-vscode
npm ERR! command failed
npm ERR! command sh -c gulp "vsix:release:package"

npm ERR! A complete log of this run can be found in:

Cannot build.

v2.0: "undefined" is not valid json in

VSCodium 1.82.1 with free-omnisharp 2.0.436. When I try to debug (F5) I get the following notification:

"undefined" is not valid JSON

Debug is not started. With free-omnisharp 1.25.7 everything is OK.

P.S. Portable VSCodium, portable .NET SDK (7.0.400)

Integrated Terminal setting fails

Issue Description

According to the official extension docs on launch.json options for debugging:

The "console" setting controls what console (terminal) window the target app is launched into.

One of the possible values for this setting is "integratedTerminal":

"integratedTerminal" : the target process will run inside VS Code's integrated terminal. Click the 'Terminal' tab in the tab group beneath the editor to interact with your application.

In the official extension, this option works fine. When debugging (i.e., pressing F5), VS Code launches an integrated terminal instance, and runs my program there, so that I can interact with it (e.g., with Console.ReadLine()).

However, when using this fork, no such terminal is launched, and I am unable to interact with any program that requires console input.

Steps to Reproduce

  • Install the VSIX of this extension from Open VSX, and install in VS Code.
  • Write a simple program that requires console input. I was following Microsoft's basic tutorial for this.
  • Create launch.json and tasks.json files (again, as per one of Microsoft's tutorials)
  • Debug the program by pressing F5

Expected Behavior

When the program builds, a new terminal instance should be opened (not just the build window), allowing me to interact with my console application.

This works fine using the official extension.

image

Actual Behavior

When the program builds, no new terminal instance is opened (besides the build window), and I can't interact with my console application.

image

NOTE: The screenshot shows that I have the official extension installed and disabled, alongside this fork. However, I also tried using this extension on a fresh install of VS Code without the official extension, and still encountered this issue. I have simply installed them side-by-side to show clearly that the error happens when I switch from the official extension to this one.

Logs

OmniSharp log

Starting OmniSharp server at 8/5/2022, 11:34:56
    Target: /home/murchu27/repos/dotnet/HelloWorld

OmniSharp server started.
    Path: /home/murchu27/.vscode/extensions/muhammad-sammy.csharp-1.24.4/.omnisharp/1.38.2/run
    PID: 32692

[info]: OmniSharp.Stdio.Host
        Starting OmniSharp on manjaro 0.0 (x64)
[info]: OmniSharp.Services.DotNetCliService
        Checking the 'DOTNET_ROOT' environment variable to find a .NET SDK
[info]: OmniSharp.Services.DotNetCliService
        Using the 'dotnet' on the PATH.
[info]: OmniSharp.Services.DotNetCliService
        DotNetPath set to dotnet
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Located 1 MSBuild instance(s)
            1: StandAlone 17.1.1 - "/home/murchu27/.vscode/extensions/muhammad-sammy.csharp-1.24.4/.omnisharp/1.38.2/omnisharp/.msbuild/Current/Bin"
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        MSBUILD_EXE_PATH environment variable set to '/home/murchu27/.vscode/extensions/muhammad-sammy.csharp-1.24.4/.omnisharp/1.38.2/omnisharp/.msbuild/Current/Bin/MSBuild.exe'
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Registered MSBuild instance: StandAlone 17.1.1 - "/home/murchu27/.vscode/extensions/muhammad-sammy.csharp-1.24.4/.omnisharp/1.38.2/omnisharp/.msbuild/Current/Bin"
            CscToolExe = csc.exe
            MSBuildToolsPath = /home/murchu27/.vscode/extensions/muhammad-sammy.csharp-1.24.4/.omnisharp/1.38.2/omnisharp/.msbuild/Current/Bin
            CscToolPath = /home/murchu27/.vscode/extensions/muhammad-sammy.csharp-1.24.4/.omnisharp/1.38.2/omnisharp/.msbuild/Current/Bin/Roslyn
            BypassFrameworkInstallChecks = true
            MSBuildExtensionsPath = /home/murchu27/.vscode/extensions/muhammad-sammy.csharp-1.24.4/.omnisharp/1.38.2/omnisharp/.msbuild
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpFormattingWorkspaceOptionsProvider, Order: 0
[info]: OmniSharp.Cake.CakeProjectSystem
        Detecting Cake files in '/home/murchu27/repos/dotnet/HelloWorld'.
[info]: OmniSharp.Cake.CakeProjectSystem
        Did not find any Cake files
[info]: OmniSharp.MSBuild.ProjectSystem
        No solution files found in '/home/murchu27/repos/dotnet/HelloWorld'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for '/home/murchu27/repos/dotnet/HelloWorld/HelloWorld.csproj'
[info]: OmniSharp.Script.ScriptProjectSystem
        Detecting CSX files in '/home/murchu27/repos/dotnet/HelloWorld'.
[info]: OmniSharp.Script.ScriptProjectSystem
        Did not find any CSX files
[info]: OmniSharp.WorkspaceInitializer
        Configuration finished.
[info]: OmniSharp.Stdio.Host
        Omnisharp server running using Stdio at location '/home/murchu27/repos/dotnet/HelloWorld' on host 32604.
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: /home/murchu27/repos/dotnet/HelloWorld/HelloWorld.csproj
[info]: OmniSharp.MSBuild.ProjectManager
        Successfully loaded project file '/home/murchu27/repos/dotnet/HelloWorld/HelloWorld.csproj'.
[info]: OmniSharp.MSBuild.ProjectManager
        Adding project '/home/murchu27/repos/dotnet/HelloWorld/HelloWorld.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Update project: HelloWorld
Received response for /v2/getcodeactions but could not find request.

C# log

None

Environment information

⚠️⚠️ This report was from this extension which is a fork of the official extension

VSCode version: 1.67.0
C# Extension: 1.24.4

Mono Information OmniSharp using built-in mono
Dotnet Information .NET SDK (reflecting any global.json): Version: 6.0.102 Commit: 49861cb924

Runtime Environment:
OS Name: manjaro
OS Version:
OS Platform: Linux
RID: arch-x64
Base Path: /usr/share/dotnet/sdk/6.0.102/

Host (useful for support):
Version: 6.0.2
Commit: 839cdfb0ec

.NET SDKs installed:
6.0.102 [/usr/share/dotnet/sdk]

.NET runtimes installed:
Microsoft.NETCore.App 6.0.2 [/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
csharp muhammad-sammy 1.24.4

Installing C# dependencies fails on Linux Mint

Environment data

dotnet --info output:

.NET SDK (reflecting any global.json):
 Version:   5.0.402
 Commit:    e9d3381880

Runtime Environment:
 OS Name:     linuxmint
 OS Version:  20.2
 OS Platform: Linux
 RID:         linux-x64
 Base Path:   /snap/dotnet-sdk/144/sdk/5.0.402/

Host (useful for support):
  Version: 5.0.11
  Commit:  f431858f8b

.NET SDKs installed:
  5.0.402 [/snap/dotnet-sdk/144/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 5.0.11 [/snap/dotnet-sdk/144/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 5.0.11 [/snap/dotnet-sdk/144/shared/Microsoft.NETCore.App]

VS Codium version: 1.56.0
C# Extension version: 1.23.12

OmniSharp log

Installing C# dependencies...
Platform: linux, x86_64, name=linuxmint, version=20.2

Downloading package '.NET Core Debugger (linux / x64)' Failed to download from https://github.com/Samsung/netcoredbg/releases/download/2.0.0-859/netcoredbg-linux-bionic-amd64.tar.gz. Error code '404')
	Retrying from 'https://web.archive.org/web/20201125201611/https://github-production-release-asset-2e65be.s3.amazonaws.com/113926796/2a979180-2f1f-11eb-8254-5746e29dc86d?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20201125%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20201125T201611Z&X-Amz-Expires=300&X-Amz-Signature=16e82fadc53b2c8965a4921f7b4241df4b7d8ec1366d08a2e47d5ad840c80444&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=113926796&response-content-disposition=attachment%3B%20filename%3Dnetcoredbg-linux-bionic-amd64.tar.gz&response-content-type=application%2Foctet-stream' (NaN KB) Done!
Installing package '.NET Core Debugger (linux / x64)'

Failed at stage: installPackage
C# Extension was unable to install its dependencies. Please check your internet connection. If you use a proxy server, please visit https://aka.ms/VsCodeCsharpNetworking

Steps to reproduce

Install this extension to VSCodium, restart, and look at the log.

Expected behavior

Loads dependencies and prepares environment.

Actual behavior

Errors out with a 404

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.