-
Notifications
You must be signed in to change notification settings - Fork 752
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
cwd configuration in Run: Start Without Debugging not respected #918
Comments
Change https://golang.org/cl/270437 mentions this issue: |
Thank you @suzmue! 🙏 |
Unfortunately this fix doesn't properly work on Trace output when hitting Ctrl+F5 (Run Without Debugging) on Win10 with golang.go v0.19.0:
|
Thanks for filing this issue @mkilzer78! Will get this fixed I think this failure should be showing up in the long tests as well. |
Change https://golang.org/cl/274872 mentions this issue: |
On windows, the executable file has to have '.exe' extension. Add the extension when building the program in noDebug mode. Updates #918 Change-Id: Icddf6c2dced50f885e1dd27fc685a14ea54d52e1 Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/274872 Trust: Suzy Mueller <suzmue@golang.org> Trust: Hyang-Ah Hana Kim <hyangah@gmail.com> Run-TryBot: Suzy Mueller <suzmue@golang.org> Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
Change https://golang.org/cl/276214 mentions this issue: |
Change https://golang.org/cl/276214 mentions this issue: |
On windows, the executable file has to have '.exe' extension. Add the extension when building the program in noDebug mode. Updates #918 Change-Id: Icddf6c2dced50f885e1dd27fc685a14ea54d52e1 Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/274872 Trust: Suzy Mueller <suzmue@golang.org> Trust: Hyang-Ah Hana Kim <hyangah@gmail.com> Run-TryBot: Suzy Mueller <suzmue@golang.org> Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com> (cherry picked from commit e2d78f1) Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/276214 Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com> TryBot-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: Polina Sokolova <polina@google.com>
Describe the bug
https://github.com/zpv/cwd-test
With the following launch configuration:
the
cwd
property is respected in Debug mode, but is seemingly ignored when Start without Debugging is used.Running this project will panic as it tries to read the file in cmd/app instead of the workspace root.
What version of Go, VS Code & VS Code Go extension are you using?
go version
to get version of Gocode -v
orcode-insiders -v
to get version of VS Code or VS Code Insiderse5a624b788d92b8d34d1392e4c4d9789406efe8f
x64
go env
to get the go development environment detailsGOARCH="amd64"
GOBIN=""
GOCACHE="/Users/steven/Library/Caches/go-build"
GOENV="/Users/steven/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/steven/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/steven/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/Cellar/go/1.15.2/libexec"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/go/1.15.2/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/1g/dlx_p3_j02gcs41jxpyy38s80000gn/T/go-build059177566=/tmp/go-build -gno-record-gcc-switches -fno-common"
The text was updated successfully, but these errors were encountered: