You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What did you do? (required: The issue will be closed when not provided)
On Windows, change .vimrc to set shell=pwsh
vim example.go
What did you expect to happen?
Opens with new file template.
What happened instead?
"example.go" [New File]
Error detected while processing function go#auto#template_autocreate[6]..go#template#create[4]..go#tool#PackageName[1]..go#util#ExecInDir[9]..go#util#Exec[17]..<SNR>11_exec[7]..<SNR>11_system:
line 11:
E484: Can't open file C:/Users/doug/AppData/Local/Temp/VIo794.tmp
Error detected while processing function go#auto#template_autocreate[6]..go#template#create[4]..go#tool#PackageName[1]..go#util#ExecInDir[9]..go#util#Exec[17]..<SNR>11_exec[7]..<SNR>11_system:
line 11:
E484: Can't open file C:/Users/doug/AppData/Local/Temp/VIo794.tmp
Press ENTER or type command to continue
VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Feb 4 2020 23:03:05)
MS-Windows 64-bit console version
Included patches: 1-210
Go version (go version):
go version go1.13.7 windows/amd64
Go environment
go env Output:
set GO111MODULE=
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\doug\AppData\Local\go-build
set GOENV=C:\Users\doug\AppData\Roaming\go\env
set GOEXE=.exe
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=C:\Users\doug\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=
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 -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=C:\Users\doug\AppData\Local\Temp\go-build893694394=/tmp/go-build -gno-record-gcc-switches
What did you do? (required: The issue will be closed when not provided)
set shell=pwsh
What did you expect to happen?
Opens with new file template.
What happened instead?
Configuration (MUST fill this out):
vim-go version:
d698de4
vimrc
you used to reproduce (use a minimal vimrc with other plugins disabled; do not link to a 2,000 line vimrc):vimrc
Vim version (first three lines from
:version
):VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Feb 4 2020 23:03:05)
MS-Windows 64-bit console version
Included patches: 1-210
Go version (
go version
):go version go1.13.7 windows/amd64
Go environment
go env
Output:gopls version
gopls version
Output:The text was updated successfully, but these errors were encountered: