I’m not entirely sure what vscode is trying to do here, but I think it’s treating the build script as the main package and trying to build & debug that. That won’t work. You probably need to tell it that the main package is in cmd/syncthing, and you’ll need to manually run go run build.go at least once to build the web assets.