What did you do? (required: The issue will be closed when not provided)
Try to execute :GoDef.
What did you expect to happen?
Cursor should jump to the definition of the identifier.
What happened instead?
Nothing, except for a message vim-go: [definition] SUCCESS being printed in the status bar.
I suspect it is related to my trying to use bash shell provided by git, so maybe the underlying issue is the same as in this issue #3447
On that note, running :GoRun gives this output "C:\Program Files\Git\bin\bash.exe" -c ""go" "run" "C:\Users\Me\Desktop\testing\go\main.go"" CreateFile C:UsersMeDesktoptestinggomain.go: The system cannot find the file specified. shell returned 1
Configuration (MUST fill this out):
vim-go version:
Not sure how to check this. The commit hash is 1401b57 (from my plugged directory).
vimrc you used to reproduce:
vimrc
set shell=\"$PROGRAMW6432\Git\bin\bash.exe\"
set shellslash " use forward slash when completing path names
set rtp+=~/.vim/
call plug#begin('~/.vim/plugged')
Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' }
call plug#end()
Vim version (first three lines from :version):
VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Jul 29 2021 22:03:00)
MS-Windows 64-bit GUI version with OLE support
Included patches: 1-3249
Go version (go version):
go version go1.21.4 windows/amd64
Go environment
go env Output:
set GO111MODULE=
set GOARCH=amd64
set GOBIN=C:\Users\Me\bin
set GOCACHE=C:\Users\Me\AppData\Local\go-build
set GOENV=C:\Users\Me\AppData\Roaming\go\env
set GOEXE=.exe
set GOEXPERIMENT=
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GOMODCACHE=C:\Users\Me\go\pkg\mod
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=C:\Users\Me\go
set GOPRIVATE=
set GOPROXY=https://proxy.golang.org,direct
set GOROOT=C:\Program Files\Go
set GOSUMDB=sum.golang.org
set GOTMPDIR=
set GOTOOLCHAIN=auto
set GOTOOLDIR=C:\Program Files\Go\pkg\tool\windows_amd64
set GOVCS=
set GOVERSION=go1.21.4
set GCCGO=gccgo
set GOAMD64=v1
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=0
set GOMOD=C:\Users\Me\Desktop\testing\go\go.mod
set GOWORK=
set CGO_CFLAGS=-O2 -g
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-O2 -g
set CGO_FFLAGS=-O2 -g
set CGO_LDFLAGS=-O2 -g
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -fno-caret-diagnostics -Qunused-arguments -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=C:\Users\Me\AppData\Local\Temp\go-build1776342804=/tmp/go-build -gno-record-gcc-switches
gopls version
gopls version Output:
golang.org/x/tools/gopls v0.14.2
golang.org/x/tools/gopls@v0.14.2 h1:sIw6vjZiuQ9S7s0auUUkHlWgsCkKZFWDHmrge8LYsnc=
What did you do? (required: The issue will be closed when not provided)
Try to execute
:GoDef.What did you expect to happen?
Cursor should jump to the definition of the identifier.
What happened instead?
Nothing, except for a message
vim-go: [definition] SUCCESSbeing printed in the status bar.I suspect it is related to my trying to use bash shell provided by git, so maybe the underlying issue is the same as in this issue #3447
On that note, running
:GoRungives this output"C:\Program Files\Git\bin\bash.exe" -c ""go" "run" "C:\Users\Me\Desktop\testing\go\main.go"" CreateFile C:UsersMeDesktoptestinggomain.go: The system cannot find the file specified. shell returned 1Configuration (MUST fill this out):
vim-go version:
Not sure how to check this. The commit hash is 1401b57 (from my plugged directory).
vimrcyou used to reproduce:vimrc
Vim version (first three lines from
:version):VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Jul 29 2021 22:03:00)
MS-Windows 64-bit GUI version with OLE support
Included patches: 1-3249
Go version (
go version):go version go1.21.4 windows/amd64
Go environment
go envOutput:gopls version
gopls versionOutput:golang.org/x/tools/gopls v0.14.2 golang.org/x/tools/gopls@v0.14.2 h1:sIw6vjZiuQ9S7s0auUUkHlWgsCkKZFWDHmrge8LYsnc=