Skip to content

Failed to Launch #75871

@andrewfstratton

Description

@andrewfstratton

Go version

go version go1.25.2 windows/amd64 (also 1.25.1)

Output of go env in your module/workspace:

set AR=ar
set CC=gcc
set CGO_CFLAGS=-O2 -g
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-O2 -g
set CGO_ENABLED=1
set CGO_FFLAGS=-O2 -g
set CGO_LDFLAGS=-O2 -g
set CXX=g++
set GCCGO=gccgo
set GO111MODULE=
set GOAMD64=v1
set GOARCH=amd64
set GOAUTH=netrc
set GOBIN=
set GOCACHE=C:\Users\Andy Stratton\AppData\Local\go-build
set GOCACHEPROG=
set GODEBUG=
set GOENV=C:\Users\Andy Stratton\AppData\Roaming\go\env
set GOEXE=.exe
set GOEXPERIMENT=
set GOFIPS140=off
set GOFLAGS=
set GOGCCFLAGS=-m64 -mthreads -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=C:\Users\ANDYST~1\AppData\Local\Temp\go-build244214694=/tmp/go-build -gno-record-gcc-switches
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GOMOD=C:\Users\Andy Stratton\Dropbox\projects\quando\go.mod
set GOMODCACHE=C:\Users\Andy Stratton\go\pkg\mod
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=C:\Users\Andy Stratton\go
set GOPRIVATE=
set GOPROXY=https://proxy.golang.org,direct
set GOROOT=C:\Program Files\Go
set GOSUMDB=sum.golang.org
set GOTELEMETRY=local
set GOTELEMETRYDIR=C:\Users\Andy Stratton\AppData\Roaming\go\telemetry
set GOTMPDIR=
set GOTOOLCHAIN=auto
set GOTOOLDIR=C:\Program Files\Go\pkg\tool\windows_amd64
set GOVCS=
set GOVERSION=go1.25.2
set GOWORK=
set PKG_CONFIG=pkg-config

What did you do?

Trying to launch my project that works fine in 1.24.2 (and for a long time before) from VS Code.

Project is at https://github.com/andrewfstratton/quando

Using Run and Debug with 2 of my configuration (Local and Full) - works if I use 'Cloud' configuration.

Excerpt of config is here:

    {
        "name": "Full",
        "type": "go",
        "buildFlags": "-tags='local full'",
        "request": "launch",
        "mode": "debug",
        "output": "debug",
        "program": ".",
        "env": {},
        "args": [
            "-remote"
        ]
    },
    {
        "name": "Cloud",
        "type": "go",
        "request": "launch",
        "mode": "debug",
        "program": ".",
    },

What did you see happen?

VS Code throws an error and doesn't run.

Image

What did you expect to see?

Expect debugger to run and show something like

Image

N.B. This works fine with 1.24.2 and appears to be triggered by the full/local build tags

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugReportIssues describing a possible bug in the Go implementation.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions