Skip to content

Debug test using code lens fails when -race is enabled #3993

@elszon

Description

@elszon

After upgrading go to 1.26.0 the tests run from the code lens and from the test explorer fail when -race is enabled in the test flag configuration.

VSCode config:

    "go.testFlags": [
        "-race"
    ],
Image

test example:

package check

import "testing"

func TestCheck(t *testing.T) {
	t.Log("This is a simple test to check the testing setup.")
}

tools version:
go: 1.26.0
dlv: 1.26.0 (rebuild by new compiler)
gopls: 0.21.0

VS Code: 1.109.3
golang.go: 0.52.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions