-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Description
What did you do? (required: The issue will be closed when not provided)
I ran :GoRun in a test hello world with main.
package main
import "fmt"
func main() {
fmt.Println("vim-go")
}I tried to run :GoRun on this program.
What did you expect to happen?
Print vim-go
What happened instead?
:!'go' 'run' '/home/mfrw/mariner-org/dashboard/cmd/test/main.go\\n' 2>&1| tee /tmp/nvim7Egq2g/6
go run: no packages loaded from /home/mfrw/mariner-org/dashboard/cmd/test/main.go\nConfiguration (MUST fill this out):
vim-go version:
vimrc you used to reproduce:
vimrc
call plug#begin('~/.vim/bundle')
Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' }
call plug#end()
au FileType go nmap <leader>r <Plug>(go-run)Vim version (first three lines from :version):
NVIM v0.6.0-dev
Go version (go version):
go version go1.17.1 linux/amd64
Go environment
go env Output:
GO111MODULE="on" GOARCH="amd64" GOBIN="" GOCACHE="/home/mfrw/.cache/go-build" GOENV="/home/mfrw/.config/go/env" GOEXE="" GOEXPERIMENT="" GOFLAGS="" GOHOSTARCH="amd64" GOHOSTOS="linux" GOINSECURE="" GOMODCACHE="/home/mfrw/go/pkg/mod" GONOPROXY="" GONOSUMDB="" GOOS="linux" GOPATH="/home/mfrw/go" GOPRIVATE="" GOPROXY="https://proxy.golang.org,direct" GOROOT="/usr/lib/go-1.17" GOSUMDB="sum.golang.org" GOTMPDIR="" GOTOOLDIR="/usr/lib/go-1.17/pkg/tool/linux_amd64" GOVCS="" GOVERSION="go1.17.1" GCCGO="gccgo" AR="ar" CC="gcc" CXX="g++" CGO_ENABLED="1" GOMOD="/home/mfrw/mariner-org/dashboard/go.mod" 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 -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build470378468=/tmp/go-build -gno-record-gcc-switches"
gopls version
gopls version Output:
golang.org/x/tools/gopls v0.7.2
golang.org/x/tools/gopls@v0.7.2 h1:kRKKdvA8GOzra8rhSFDClOR7hV/x8v0J0Vm4C/gWq8s=
Although with the same .vimrc i am able to run this everywhere else.
If anyone could please point me towards any steps to debug this. I am not really sure what happend.
The only change I did it is upgrade go from 1.15 to 1.17.1 and it stopped working.
Metadata
Metadata
Assignees
Labels
No labels