reset workspace env

Issue I accidentally clicked Go: reset workspace env in Visual Studio Code, and the local Go environment won’t work My Go version is 1.18 Failed to run ‘/usr/local/go/bin/go env’ (cwd: /Users/kejie/go/ms): Error: Command failed: /usr/local/go/bin/go env -json GOPATH GOROOT GOPROXY

Continue reading

env file is not detected in vscode

Issue I have a my-project multi-root workspace: – my-project – my-project-api-gateway – another-root-folder-we-dont-care-about Here’s my launch.json configuration file for my-project-api-gateway { // See https://code.visualstudio.com/docs/editor/debugging#_launchjson-attributes // and variables here https://code.visualstudio.com/docs/editor/variables-reference "version": "0.2.0", "configurations": [ { "name": "my-project-api-gateway", "type": "go", "request": "launch",

Continue reading