Closed
Description
What version of Go, VS Code & VS Code Go extension are you using?
- Run
go version
to get version of Go- go version go1.14.2 windows/amd64
- Run
code -v
orcode-insiders -v
to get version of VS Code or VS Code Insiders- 1.47.2
17299e413d5590b14ab0340ea477cdd86ff13daf
x64
- 1.47.2
- Check your installed extensions to get the version of the VS Code Go extension
- 2020.7.820 (just ran the
Extension: Check for Extension Updates
command)
- 2020.7.820 (just ran the
- Run
go env
to get the go development environment details- set GO111MODULE=
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\USER\AppData\Local\go-build
set GOENV=C:\Users\USER\AppData\Roaming\go\env
set GOEXE=.exe
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=A:\Dev\Go
set GOPRIVATE=
set GOPROXY=https://proxy.golang.org,direct
set GOROOT=c:\go
set GOSUMDB=sum.golang.org
set GOTMPDIR=
set GOTOOLDIR=c:\go\pkg\tool\windows_amd64
set GCCGO=gccgo
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=C:\Users\USER\Desktop\go\langsrv\go.mod
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -fmessage-length=0 -fdebug-prefix-map=C:\Users\USER\AppData\Local\Temp\go-build460855558=/tmp/go-build -gno-record-gcc-switches
- set GO111MODULE=
Share the Go related settings you have added/edited
"terminal.integrated.shell.windows": "pwsh.exe",
"terminal.integrated.env.windows": {
"PATH": "${env:PATH};C:\\msys64\\mingw64\\bin;C:\\msys64\\usr\\bin;c:\\go\\bin"
},
"terminal.integrated.shellArgs.windows": [
"-NoLogo",
],
"go.useLanguageServer": true,
"[go]": {
"editor.snippetSuggestions": "top",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.organizeImports": true,
}
},
"gopls": {
"usePlaceholders": true, // add parameter placeholders when completing a function
// Experimental settings
"completeUnimported": true, // autocomplete unimported packages
"deepCompletion": true, // enable deep completion
},
Describe the bug
Using Powershell Core leads to this:
The Terminal is started using pwsh.exe
as seen in configuration above. The name displayed in the integrated terminal switches to dotnet
after booting up the pwsh.exe
Issue is simmilar to #314
Steps to reproduce the behavior:
- Set
pwsh.exe
(powershell core) as terminal - Open the integrated terminal
- observe the mentioned error