Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debugging Error #48

Open
BenjaminBrienen opened this issue Feb 6, 2023 · 2 comments
Open

Debugging Error #48

BenjaminBrienen opened this issue Feb 6, 2023 · 2 comments

Comments

@BenjaminBrienen
Copy link

BenjaminBrienen commented Feb 6, 2023

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"
}
@kuhnchris
Copy link

kuhnchris commented May 17, 2023

As I was trying to do some TDD in C# on code-server/coder I encountered this aswell and took a swing at trying to figure this out.
Turns out, this doesn't come from the plugin, this is a reply from netcoredbg - fattening up the coredbg-dbg/activate.ts by more debug parameters for netcoredbg in the command const...

        if (!executable) {
            const command = path.join(common.getExtensionPath(), ".debugger", "netcoredbg", "netcoredbg" + CoreClrDebugUtil.getPlatformExeExtension());
            executable = new vscode.DebugAdapterExecutable(command, ["--interpreter=vscode", "--log=file", "--engineLogging=/tmp/netcoredbg.engine.log"]);
        }

actually gives you the reason for the error:

After a bit of digging, I actually found out, this is due to omnisharp returning a string for the parameter arguments in src/features/TestManager.ts, function _getLaunchConfigurationForVSTest - in turn making the full debugConfiguration that is being sent to the netcoredbg process something like this:

args:'exec --runtimeconfig "/server-root/home/kuhnchris/projects/matrix-dev/MatrixCSharpProject/Tests/bin/Debug/net6.0/Tests.runtimeconfig.json" --depsfile "/server-root/home/kuhnchris/projects/matrix-dev/MatrixCSharpProject/Tests/bin/Debug/net6.0/Tests.deps.json" "/server-root/home/kuhnchris/projects/matrix-dev/MatrixCSharpProject/Tests/bin/Debug/net6.0/testhost.dll" --port 42327 --endpoint 127.0.0.1:042327 --role client --parentprocessid 16161 --telemetryoptedin false'
cwd:'/server-root/home/kuhnchris/projects/matrix-dev/MatrixCSharpProject/Tests/bin/Debug/net6.0'
debuggerEventsPipeName:'/tmp/ms-dotnettools.csharp-tde-15078'
env:{}
logging:{}
name:'.NET Test Launch'
program:'/dotnet_7.0.100/dotnet'
request:'launch'
type:'coreclr'

This upsets netcoredbg to the point where it just quits because it expects args to be an array:


-> (C) {"command":"launch","arguments":{"logging":{},"type":"coreclr","name":".NET Test Launch","request":"launch","debuggerEventsPipeName":"/tmp/ms-dotnettools.csharp-tde-15078","program":"/dotnet_7.0.100/dotnet","args":"exec --runtimeconfig \"/server-root/home/kuhnchris/projects/matrix-dev/MatrixCSharpProject/Tests/bin/Debug/net6.0/Tests.runtimeconfig.json\" --depsfile \"/server-root/home/kuhnchris/projects/matrix-dev/MatrixCSharpProject/Tests/bin/Debug/net6.0/Tests.deps.json\" \"/server-root/home/kuhnchris/projects/matrix-dev/MatrixCSharpProject/Tests/bin/Debug/net6.0/testhost.dll\" --port 42327 --endpoint 127.0.0.1:042327 --role client --parentprocessid 16161 --telemetryoptedin false","cwd":"/server-root/home/kuhnchris/projects/matrix-dev/MatrixCSharpProject/Tests/bin/Debug/net6.0","env":{},"internalConsoleOptions":"openOnSessionStart","__sessionId":"9bcbfde8-d9df-412e-bf33-a0f5373b87dd"},"type":"request","seq":5}
<- (R) {"command":"launch","message":"can't parse: [json.exception.type_error.302] type must be array, but is string","request_seq":5,"seq":"7","success":false,"type":"response"}

Right now I am able to fix this issue by adding this code to src/coreclr-debug/debugConfigurationProvider.ts before returning the debugConfiguration object:

        if ("args" in debugConfiguration){
            if (typeof debugConfiguration["args"] === "string") {
                debugConfiguration["args"] = debugConfiguration["args"].replaceAll("\"","").split(" ");
            }
        }

This solves the issue of the starting issue, but actually causes a separate issue - executing the command like that does work, but now causes another error down the line, as soon as it switches to the Debug console window, as it tries to do something funky with dotnet exec. Perhaps that may be something with my environment tho (code-server in podman/docker), so I'll leave my findings here, for someone more knowledgeable than me.

Could not execute because the specified command or file was not found.
Possible reasons for this include:
  * You misspelled a built-in dotnet command.
  * You intended to execute a .NET program, but dotnet-exec does not exist.
  * You intended to run a global tool, but a dotnet-prefixed executable with this name could not be found on the PATH.

@kuhnchris
Copy link

This mystery is also solved, it turns out, netcordbg is funny, the following command line is being launched:

 /usr/local/bin/dotnet /dotnet_7.0.100/dotnet exec --runtimeconfig /server-root/home/kuhnchris/projects/matrix-dev/MatrixCSharpProject/Tests/bin/Debug/net6.0/Tests.runtimeconfig.json --depsfile /server-root/home/kuhnchris/projects/matrix-dev/MatrixCSharpProject/Tests/bin/Debug/net6.0/Tests.deps.json /server-root/home/kuhnchris/projects/matrix-dev/MatrixCSharpProject/Tests/bin/Debug/net6.0/testhost.dll --port 40045 --endpoint 127.0.0.1:040045 --role client --parentprocessid 12616 --telemetryoptedin false

See the double "dotnet"? For some reason the fileExec parameter is not being set on the vscodeprotocol side, so it basically does the appendage in netcoredbg, see https://github.com/Samsung/netcoredbg/blob/db69338cf1606d8d327de0eaaf1694d8463af135/src/protocols/vscodeprotocol.cpp#L582

So the "change" I did in debugConfigurationProvider.ts actually to just add a shift to the args array and push the first argument into the program value, since it gets executed and prepended anyways:

        if ("args" in debugConfiguration){
            if (typeof debugConfiguration["args"] === "string") {
                debugConfiguration["args"] = debugConfiguration["args"].replaceAll("\"","").split(" ");
            }
        }
        debugConfiguration["program"] = debugConfiguration["args"].shift();
        return debugConfiguration;

This leaves me with the problem that this thing is now stuck. It shows me the threads on the left, you can also "halt" them and resume them, but you cannot stop or terminate it, plus you have to killall dotnet and do a Restart Omnisharp from the Command Palette to get things back running again, so... still some things left to do. Maybe stopAtEntry to false or justMyCode to false to see what's going on, but I have to stop here and continue my quest to solve this another time - if anyone else got the mental brain capacity to walk through this let me know if you got anymore success.

Thanks!

riQQ added a commit to riQQ/free-vscode-csharp that referenced this issue Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants