fatih / vim-go

Go development plugin for Vim
https://www.patreon.com/bhcleek
Other
15.96k stars 1.45k forks source link

GoChannelPeers not working #2659

Closed vimalk78 closed 4 years ago

vimalk78 commented 4 years ago

What did you do? (required: The issue will be closed when not provided)

open https://github.com/etcd-io/etcd/blob/master/clientv3/watch.go and run :GoChannelPeers in nvim

What did you expect to happen?

a quicklist showing channel read/write/ references, as it used to show quite some time ago.

What happened instead?

Since i am using nvim, perhaps the operation runs in background, but :GoChannelPeers doesnt produce any result for a long time. When i quit vim, LARGE amount of erorrs are thrown on the screen

ERROR on quitting vim
```
vim-go: [peers] FAIL
vim-go: /home/vimalkum/go/pkg/mod/github.com/gogo/protobuf@v1.2.1/gogoproto/gogo.pb.go:8:8: could not import github.com/gogo/protobuf/proto (go/build: importGo github.com/gogo/protobuf/proto: exit status 1
vim-go: error writing go.mod: open /home/vimalkum/go/pkg/mod/github.com/gogo/protobuf@v1.2.1/go.mod298498081.tmp: permission denied
vim-go: 
vim-go: )
vim-go: /home/vimalkum/go/pkg/mod/github.com/gogo/protobuf@v1.2.1/gogoproto/gogo.pb.go:9:13: could not import github.com/gogo/protobuf/protoc-gen-gogo/descriptor (go/build: importGo github.com/gogo/protobuf/protoc-gen-gogo/descriptor: exit status 1
vim-go: error writing go.mod: open /home/vimalkum/go/pkg/mod/github.com/gogo/protobuf@v1.2.1/go.mod298498081.tmp: permission denied
vim-go: 
vim-go: )
vim-go: /home/vimalkum/go/pkg/mod/github.com/golang/protobuf@v1.3.2/ptypes/any.go:42:2: could not import github.com/golang/protobuf/proto (go/build: importGo github.com/golang/protobuf/proto: exit status 1
vim-go: error writing go.mod: open /home/vimalkum/go/pkg/mod/github.com/golang/protobuf@v1.3.2/go.mod298498081.tmp: permission denied
vim-go: 
vim-go: )
vim-go: /home/vimalkum/go/pkg/mod/github.com/golang/protobuf@v1.3.2/ptypes/any.go:43:2: could not import github.com/golang/protobuf/ptypes/any (go/build: importGo github.com/golang/protobuf/ptypes/any: exit status 1
vim-go: error writing go.mod: open /home/vimalkum/go/pkg/mod/github.com/golang/protobuf@v1.3.2/go.mod298498081.tmp: permission denied
vim-go: 
vim-go: )
vim-go: /home/vimalkum/go/pkg/mod/github.com/golang/protobuf@v1.3.2/ptypes/duration.go:42:8: could not import github.com/golang/protobuf/ptypes/duration (go/build: importGo github.com/golang/protobuf/ptypes/duration: exit status 1
vim-go: error writing go.mod: open /home/vimalkum/go/pkg/mod/github.com/golang/protobuf@v1.3.2/go.mod298498081.tmp: permission denied
vim-go: 
vim-go: )
vim-go: /home/vimalkum/go/pkg/mod/github.com/golang/protobuf@v1.3.2/ptypes/timestamp.go:41:7: could not import github.com/golang/protobuf/ptypes/timestamp (go/build: importGo github.com/golang/protobuf/ptypes/timestamp: exit status 1
vim-go: error writing go.mod: open /home/vimalkum/go/pkg/mod/github.com/golang/protobuf@v1.3.2/go.mod298498081.tmp: permission denied
vim-go: 
vim-go: )
vim-go: /home/vimalkum/go/pkg/mod/google.golang.org/genproto@v0.0.0-20190819201941-24fa4b261c55/googleapis/rpc/status/status.pb.go:10:8: could not import github.com/golang/protobuf/proto (go/build: importGo github.com/golang/protobuf/proto: exit status 1
vim-go: error writing go.mod: open /home/vimalkum/go/pkg/mod/google.golang.org/genproto@v0.0.0-20190819201941-24fa4b261c55/go.mod298498081.tmp: permission denied
vim-go: 
vim-go: )
vim-go: /home/vimalkum/go/pkg/mod/google.golang.org/genproto@v0.0.0-20190819201941-24fa4b261c55/googleapis/rpc/status/status.pb.go:11:6: could not import github.com/golang/protobuf/ptypes/any (go/build: importGo github.com/golang/protobuf/ptypes/any: exit status 1
vim-go: error writing go.mod: open /home/vimalkum/go/pkg/mod/google.golang.org/genproto@v0.0.0-20190819201941-24fa4b261c55/go.mod298498081.tmp: permission denied
vim-go: 
vim-go: )
vim-go: /home/vimalkum/go/pkg/mod/go.uber.org/zap@v1.10.0/zapcore/console_encoder.go:27:2: could not import go.uber.org/zap/buffer (cannot find package "go.uber.org/zap/buffer" in any of:
vim-go:         /usr/local/go/src/go.uber.org/zap/buffer (from $GOROOT)
vim-go:         /home/vimalkum/go/src/go.uber.org/zap/buffer (from $GOPATH))
vim-go: /home/vimalkum/go/pkg/mod/go.uber.org/zap@v1.10.0/zapcore/console_encoder.go:28:2: could not import go.uber.org/zap/internal/bufferpool (cannot find package "go.uber.org/zap/internal/bufferpool" in any of:
vim-go:         /usr/local/go/src/go.uber.org/zap/internal/bufferpool (from $GOROOT)
vim-go:         /home/vimalkum/go/src/go.uber.org/zap/internal/bufferpool (from $GOPATH))
vim-go: /home/vimalkum/go/pkg/mod/go.uber.org/zap@v1.10.0/zapcore/entry.go:30:2: could not import go.uber.org/zap/internal/exit (cannot find package "go.uber.org/zap/internal/exit" in any of:
vim-go:         /usr/local/go/src/go.uber.org/zap/internal/exit (from $GOROOT)
vim-go:         /home/vimalkum/go/src/go.uber.org/zap/internal/exit (from $GOPATH))
vim-go: /home/vimalkum/go/pkg/mod/go.uber.org/zap@v1.10.0/zapcore/entry.go:32:2: could not import go.uber.org/multierr (cannot find package "go.uber.org/multierr" in any of:
vim-go:         /usr/local/go/src/go.uber.org/multierr (from $GOROOT)
vim-go:         /home/vimalkum/go/src/go.uber.org/multierr (from $GOPATH))
vim-go: /home/vimalkum/go/pkg/mod/go.uber.org/zap@v1.10.0/zapcore/level_strings.go:23:8: could not import go.uber.org/zap/internal/color (cannot find package "go.uber.org/zap/internal/color" in any of:
vim-go:         /usr/local/go/src/go.uber.org/zap/internal/color (from $GOROOT)
vim-go:         /home/vimalkum/go/src/go.uber.org/zap/internal/color (from $GOPATH))
vim-go: /home/vimalkum/go/pkg/mod/go.uber.org/zap@v1.10.0/zapcore/sampler.go:26:2: could not import go.uber.org/atomic (cannot find package "go.uber.org/atomic" in any of:
vim-go:         /usr/local/go/src/go.uber.org/atomic (from $GOROOT)
vim-go:         /home/vimalkum/go/src/go.uber.org/atomic (from $GOPATH))
vim-go: /home/vimalkum/go/pkg/mod/golang.org/x/crypto@v0.0.0-20191002192127-34f69633bfdc/bcrypt/bcrypt.go:18:2: could not import golang.org/x/crypto/blowfish (go/build: importGo golang.org/x/crypto/blowfish: exit status 1
vim-go: error writing go.mod: open /home/vimalkum/go/pkg/mod/golang.org/x/crypto@v0.0.0-20191002192127-34f69633bfdc/go.mod298498081.tmp: permission denied
vim-go: 
vim-go: )
vim-go: /home/vimalkum/go/pkg/mod/github.com/coreos/pkg@v0.0.0-20160727233714-3ac0863d7acf/capnslog/journald_formatter.go:25:2: could not import github.com/coreos/go-systemd/journal (cannot find package "github.com/coreos/go-systemd/journal" in any of:
vim-go:         /usr/local/go/src/github.com/coreos/go-systemd/journal (from $GOROOT)
vim-go:         /home/vimalkum/go/src/github.com/coreos/go-systemd/journal (from $GOPATH))
vim-go: /home/vimalkum/go/pkg/mod/go.uber.org/zap@v1.10.0/array.go:26:2: could not import go.uber.org/zap/zapcore (cannot find package "go.uber.org/zap/zapcore" in any of:
vim-go:         /usr/local/go/src/go.uber.org/zap/zapcore (from $GOROOT)
vim-go:         /home/vimalkum/go/src/go.uber.org/zap/zapcore (from $GOPATH))
vim-go: /home/vimalkum/go/pkg/mod/github.com/prometheus/client_golang@v1.0.0/prometheus/promhttp/http.go:43:2: could not import github.com/prometheus/common/expfmt (go/build: importGo github.com/prometheus/common/expfmt: exit status 1
vim-go: error writing go.mod: open /home/vimalkum/go/pkg/mod/github.com/prometheus/client_golang@v1.0.0/go.mod298498081.tmp: permission denied
vim-go: 
vim-go: )
vim-go: /home/vimalkum/go/pkg/mod/go.uber.org/zap@v1.10.0/level.go:24:2: could not import go.uber.org/atomic (cannot find package "go.uber.org/atomic" in any of:
vim-go:         /usr/local/go/src/go.uber.org/atomic (from $GOROOT)
vim-go:         /home/vimalkum/go/src/go.uber.org/atomic (from $GOPATH))
vim-go: /home/vimalkum/go/pkg/mod/github.com/prometheus/client_golang@v1.0.0/prometheus/promhttp/http.go:45:2: could not import github.com/prometheus/client_golang/prometheus (go/build: importGo github.com/prometheus/client_golang/prometheus: exit status 1
vim-go: error writing go.mod: open /home/vimalkum/go/pkg/mod/github.com/prometheus/client_golang@v1.0.0/go.mod298498081.tmp: permission denied
vim-go: 
vim-go: )
vim-go: /home/vimalkum/go/pkg/mod/github.com/prometheus/client_golang@v1.0.0/prometheus/counter.go:21:6: could not import github.com/prometheus/client_model/go (go/build: importGo github.com/prometheus/client_model/go: exit status 1
vim-go: error writing go.mod: open /home/vimalkum/go/pkg/mod/github.com/prometheus/client_golang@v1.0.0/go.mod298498081.tmp: permission denied
vim-go: 
vim-go: )
vim-go: /home/vimalkum/go/pkg/mod/github.com/prometheus/client_golang@v1.0.0/prometheus/promhttp/instrument_server.go:23:6: could not import github.com/prometheus/client_model/go (go/build: importGo github.com/prometheus/client_model/go: exit status 1
vim-go: error writing go.mod: open /home/vimalkum/go/pkg/mod/github.com/prometheus/client_golang@v1.0.0/go.mod298498081.tmp: permission denied
vim-go: 
vim-go: )
vim-go: /home/vimalkum/go/pkg/mod/github.com/prometheus/client_golang@v1.0.0/prometheus/desc.go:22:2: could not import github.com/golang/protobuf/proto (go/build: importGo github.com/golang/protobuf/proto: exit status 1
vim-go: error writing go.mod: open /home/vimalkum/go/pkg/mod/github.com/prometheus/client_golang@v1.0.0/go.mod298498081.tmp: permission denied
vim-go: 
vim-go: )
vim-go: /home/vimalkum/go/pkg/mod/github.com/prometheus/client_golang@v1.0.0/prometheus/desc.go:23:2: could not import github.com/prometheus/common/model (go/build: importGo github.com/prometheus/common/model: exit status 1
vim-go: error writing go.mod: open /home/vimalkum/go/pkg/mod/github.com/prometheus/client_golang@v1.0.0/go.mod298498081.tmp: permission denied
vim-go: 
vim-go: )
vim-go: /home/vimalkum/go/pkg/mod/github.com/prometheus/client_golang@v1.0.0/prometheus/process_collector_other.go:19:2: could not import github.com/prometheus/procfs (go/build: importGo github.com/prometheus/procfs: exit status 1
vim-go: error writing go.mod: open /home/vimalkum/go/pkg/mod/github.com/prometheus/client_golang@v1.0.0/go.mod298498081.tmp: permission denied
vim-go: 
vim-go: )
vim-go: /home/vimalkum/go/pkg/mod/github.com/prometheus/client_golang@v1.0.0/prometheus/registry.go:29:2: could not import github.com/prometheus/common/expfmt (go/build: importGo github.com/prometheus/common/expfmt: exit status 1
vim-go: error writing go.mod: open /home/vimalkum/go/pkg/mod/github.com/prometheus/client_golang@v1.0.0/go.mod298498081.tmp: permission denied
vim-go: 
vim-go: )
vim-go: /home/vimalkum/go/pkg/mod/github.com/prometheus/client_golang@v1.0.0/prometheus/registry.go:33:2: could not import github.com/prometheus/client_golang/prometheus/internal (go/build: importGo github.com/prometheus/client_golang/prometheus/internal: exit status 1
vim-go: error writing go.mod: open /home/vimalkum/go/pkg/mod/github.com/prometheus/client_golang@v1.0.0/go.mod298498081.tmp: permission denied
vim-go: 
vim-go: )
vim-go: /home/vimalkum/go/pkg/mod/github.com/prometheus/client_golang@v1.0.0/prometheus/summary.go:25:2: could not import github.com/beorn7/perks/quantile (go/build: importGo github.com/beorn7/perks/quantile: exit status 1
vim-go: error writing go.mod: open /home/vimalkum/go/pkg/mod/github.com/prometheus/client_golang@v1.0.0/go.mod298498081.tmp: permission denied
vim-go: 
vim-go: )
vim-go: /home/vimalkum/go/pkg/mod/go.uber.org/zap@v1.10.0/stacktrace.go:28:2: could not import go.uber.org/zap/internal/bufferpool (cannot find package "go.uber.org/zap/internal/bufferpool" in any of:
vim-go:         /usr/local/go/src/go.uber.org/zap/internal/bufferpool (from $GOROOT)
vim-go:         /home/vimalkum/go/src/go.uber.org/zap/internal/bufferpool (from $GOPATH))
vim-go: /home/vimalkum/go/pkg/mod/go.uber.org/zap@v1.10.0/sugar.go:28:2: could not import go.uber.org/multierr (cannot find package "go.uber.org/multierr" in any of:
vim-go:         /usr/local/go/src/go.uber.org/multierr (from $GOROOT)
vim-go:         /home/vimalkum/go/src/go.uber.org/multierr (from $GOPATH))
vim-go: /home/vimalkum/go/pkg/mod/github.com/prometheus/client_golang@v1.0.0/prometheus/wrap.go:165:6: ln declared but not used
vim-go: /home/vimalkum/go/pkg/mod/github.com/prometheus/client_golang@v1.0.0/prometheus/wrap.go:165:10: lv declared but not used
vim-go: /home/vimalkum/go/src/github.com/coreos/etcd/pkg/logutil/zap_grpc.go:108:24: zl.lg.Core().Enabled undefined (type invalid type has no field or method Enabled)
vim-go: /home/vimalkum/go/src/github.com/coreos/etcd/clientv3/balancer/picker/roundrobin_balanced.go:81:4: cannot use zap.Error(info.Err) (value with invalid type) as zapcore.Field value in array or slice literal
vim-go: /home/vimalkum/go/pkg/mod/github.com/prometheus/client_golang@v1.0.0/prometheus/wrap.go:20:2: "github.com/golang/protobuf/proto" imported but not used
vim-go: /home/vimalkum/go/src/google.golang.org/grpc/internal/transport/http2_client.go:407:3: unknown field AuthInfo in struct literal
vim-go: /home/vimalkum/go/src/google.golang.org/grpc/internal/transport/handler_server.go:352:82: CommonAuthInfo not declared by package credentials
vim-go: /home/vimalkum/go/src/google.golang.org/grpc/internal/transport/handler_server.go:352:109: PrivacyAndIntegrity not declared by package credentials
vim-go: /home/vimalkum/go/src/google.golang.org/grpc/internal/transport/handler_server.go:352:54: unknown field CommonAuthInfo in struct literal
vim-go: /home/vimalkum/go/pkg/mod/golang.org/x/net@v0.0.0-20190311183353-d8887717615a/trace/histogram.go:17:2: could not import golang.org/x/net/internal/timeseries (go/build: importGo golang.org/x/net/internal/timeseries: exit status 1
vim-go: error writing go.mod: open /home/vimalkum/go/pkg/mod/golang.org/x/net@v0.0.0-20190311183353-d8887717615a/go.mod298498081.tmp: permission denied
vim-go: 
vim-go: )
vim-go: /home/vimalkum/go/pkg/mod/github.com/golang/protobuf@v1.3.2/ptypes/duration/duration.pb.go:8:8: could not import github.com/golang/protobuf/proto (go/build: importGo github.com/golang/protobuf/proto: exit status 1
vim-go: error writing go.mod: open /home/vimalkum/go/pkg/mod/github.com/golang/protobuf@v1.3.2/go.mod298498081.tmp: permission denied
vim-go: 
vim-go: )
vim-go: /home/vimalkum/go/pkg/mod/github.com/golang/protobuf@v1.3.2/ptypes/timestamp/timestamp.pb.go:8:8: could not import github.com/golang/protobuf/proto (go/build: importGo github.com/golang/protobuf/proto: exit status 1
vim-go: error writing go.mod: open /home/vimalkum/go/pkg/mod/github.com/golang/protobuf@v1.3.2/go.mod298498081.tmp: permission denied
vim-go: 
vim-go: )
vim-go: /home/vimalkum/go/src/google.golang.org/grpc/internal/binarylog/method_logger.go:159:26: cannot use ptypes.DurationProto(c.Timeout) (value of type *invalid type) as *duration.Duration value in assignment
vim-go: /home/vimalkum/go/pkg/mod/github.com/grpc-ecosystem/go-grpc-prometheus@v1.2.0/client.go:9:7: could not import github.com/prometheus/client_golang/prometheus (cannot find package "github.com/prometheus/client_golang/prometheus" in any of:
vim-go:         /usr/local/go/src/github.com/prometheus/client_golang/prometheus (from $GOROOT)
vim-go:         /home/vimalkum/go/src/github.com/prometheus/client_golang/prometheus (from $GOPATH))
vim-go: /home/vimalkum/go/pkg/mod/github.com/tmc/grpc-websocket-proxy@v0.0.0-20170815181823-89b8d40f7ca8/wsproxy/websocket_proxy.go:9:2: could not import github.com/gorilla/websocket (cannot find package "github.com/gorilla/websocket" in any of:
vim-go:         /usr/local/go/src/github.com/gorilla/websocket (from $GOROOT)
vim-go:         /home/vimalkum/go/src/github.com/gorilla/websocket (from $GOPATH))
vim-go: /home/vimalkum/go/pkg/mod/github.com/tmc/grpc-websocket-proxy@v0.0.0-20170815181823-89b8d40f7ca8/wsproxy/websocket_proxy.go:10:2: could not import github.com/sirupsen/logrus (cannot find package "github.com/sirupsen/logrus" in any of:
vim-go:         /usr/local/go/src/github.com/sirupsen/logrus (from $GOROOT)
vim-go:         /home/vimalkum/go/src/github.com/sirupsen/logrus (from $GOPATH))
vim-go: /home/vimalkum/go/pkg/mod/github.com/grpc-ecosystem/grpc-gateway@v1.9.5/runtime/context.go:14:2: could not import google.golang.org/grpc/codes (go/build: importGo google.golang.org/grpc/codes: exit status 1
vim-go: error writing go.mod: open /home/vimalkum/go/pkg/mod/github.com/grpc-ecosystem/grpc-gateway@v1.9.5/go.mod298498081.tmp: permission denied
vim-go: 
vim-go: )
vim-go: /home/vimalkum/go/pkg/mod/github.com/grpc-ecosystem/grpc-gateway@v1.9.5/runtime/context.go:15:2: could not import google.golang.org/grpc/grpclog (go/build: importGo google.golang.org/grpc/grpclog: exit status 1
vim-go: error writing go.mod: open /home/vimalkum/go/pkg/mod/github.com/grpc-ecosystem/grpc-gateway@v1.9.5/go.mod298498081.tmp: permission denied
vim-go: 
vim-go: )
vim-go: /home/vimalkum/go/pkg/mod/github.com/grpc-ecosystem/grpc-gateway@v1.9.5/runtime/context.go:16:2: could not import google.golang.org/grpc/metadata (go/build: importGo google.golang.org/grpc/metadata: exit status 1
vim-go: error writing go.mod: open /home/vimalkum/go/pkg/mod/github.com/grpc-ecosystem/grpc-gateway@v1.9.5/go.mod298498081.tmp: permission denied
vim-go: 
vim-go: )
vim-go: /home/vimalkum/go/pkg/mod/github.com/grpc-ecosystem/grpc-gateway@v1.9.5/runtime/context.go:17:2: could not import google.golang.org/grpc/status (go/build: importGo google.golang.org/grpc/status: exit status 1
vim-go: error writing go.mod: open /home/vimalkum/go/pkg/mod/github.com/grpc-ecosystem/grpc-gateway@v1.9.5/go.mod298498081.tmp: permission denied
vim-go: 
vim-go: )
vim-go: /home/vimalkum/go/pkg/mod/github.com/grpc-ecosystem/grpc-gateway@v1.9.5/runtime/convert.go:9:2: could not import github.com/golang/protobuf/jsonpb (go/build: importGo github.com/golang/protobuf/jsonpb: exit status 1
vim-go: error writing go.mod: open /home/vimalkum/go/pkg/mod/github.com/grpc-ecosystem/grpc-gateway@v1.9.5/go.mod298498081.tmp: permission denied
vim-go: 
vim-go: )
vim-go: /home/vimalkum/go/pkg/mod/github.com/grpc-ecosystem/grpc-gateway@v1.9.5/runtime/convert.go:10:2: could not import github.com/golang/protobuf/ptypes/duration (go/build: importGo github.com/golang/protobuf/ptypes/duration: exit status 1
vim-go: error writing go.mod: open /home/vimalkum/go/pkg/mod/github.com/grpc-ecosystem/grpc-gateway@v1.9.5/go.mod298498081.tmp: permission denied
vim-go: 
vim-go: )
vim-go: /home/vimalkum/go/pkg/mod/github.com/grpc-ecosystem/grpc-gateway@v1.9.5/runtime/convert.go:11:2: could not import github.com/golang/protobuf/ptypes/timestamp (go/build: importGo github.com/golang/protobuf/ptypes/timestamp: exit status 1
vim-go: error writing go.mod: open /home/vimalkum/go/pkg/mod/github.com/grpc-ecosystem/grpc-gateway@v1.9.5/go.mod298498081.tmp: permission denied
vim-go: 
vim-go: )
vim-go: /home/vimalkum/go/pkg/mod/github.com/grpc-ecosystem/grpc-gateway@v1.9.5/runtime/convert.go:12:2: could not import github.com/golang/protobuf/ptypes/wrappers (go/build: importGo github.com/golang/protobuf/ptypes/wrappers: exit status 1
vim-go: error writing go.mod: open /home/vimalkum/go/pkg/mod/github.com/grpc-ecosystem/grpc-gateway@v1.9.5/go.mod298498081.tmp: permission denied
vim-go: 
vim-go: )
vim-go: /home/vimalkum/go/pkg/mod/github.com/grpc-ecosystem/grpc-gateway@v1.9.5/runtime/errors.go:8:2: could not import github.com/golang/protobuf/proto (go/build: importGo github.com/golang/protobuf/proto: exit status 1
vim-go: error writing go.mod: open /home/vimalkum/go/pkg/mod/github.com/grpc-ecosystem/grpc-gateway@v1.9.5/go.mod298498081.tmp: permission denied
vim-go: 
vim-go: )
vim-go: /home/vimalkum/go/pkg/mod/github.com/grpc-ecosystem/grpc-gateway@v1.9.5/runtime/errors.go:9:2: could not import github.com/golang/protobuf/ptypes/any (go/build: importGo github.com/golang/protobuf/ptypes/any: exit status 1
vim-go: error writing go.mod: open /home/vimalkum/go/pkg/mod/github.com/grpc-ecosystem/grpc-gateway@v1.9.5/go.mod298498081.tmp: permission denied
vim-go: 
vim-go: )
vim-go: /home/vimalkum/go/pkg/mod/github.com/grpc-ecosystem/grpc-gateway@v1.9.5/runtime/fieldmask.go:8:2: could not import github.com/golang/protobuf/protoc-gen-go/generator (go/build: importGo github.com/golang/protobuf/protoc-gen-go/generator: exit status 1
vim-go: error writing go.mod: open /home/vimalkum/go/pkg/mod/github.com/grpc-ecosystem/grpc-gateway@v1.9.5/go.mod298498081.tmp: permission denied
vim-go: 
vim-go: )
vim-go: /home/vimalkum/go/pkg/mod/github.com/grpc-ecosystem/grpc-gateway@v1.9.5/runtime/fieldmask.go:9:2: could not import google.golang.org/genproto/protobuf/field_mask (go/build: importGo google.golang.org/genproto/protobuf/field_mask: exit status 1
vim-go: error writing go.mod: open /home/vimalkum/go/pkg/mod/github.com/grpc-ecosystem/grpc-gateway@v1.9.5/go.mod298498081.tmp: permission denied
vim-go: 
vim-go: )
vim-go: /home/vimalkum/go/pkg/mod/github.com/grpc-ecosystem/grpc-gateway@v1.9.5/runtime/handler.go:12:2: could not import github.com/grpc-ecosystem/grpc-gateway/internal (go/build: importGo github.com/grpc-ecosystem/grpc-gateway/internal: exit status 1
vim-go: error writing go.mod: open /home/vimalkum/go/pkg/mod/github.com/grpc-ecosystem/grpc-gateway@v1.9.5/go.mod298498081.tmp: permission denied
vim-go: 
vim-go: )
vim-go: /home/vimalkum/go/pkg/mod/github.com/grpc-ecosystem/grpc-gateway@v1.9.5/runtime/marshal_httpbodyproto.go:4:2: could not import google.golang.org/genproto/googleapis/api/httpbody (go/build: importGo google.golang.org/genproto/googleapis/api/httpbody: exit status 1
vim-go: error writing go.mod: open /home/vimalkum/go/pkg/mod/github.com/grpc-ecosystem/grpc-gateway@v1.9.5/go.mod298498081.tmp: permission denied
vim-go: 
vim-go: )
vim-go: /home/vimalkum/go/pkg/mod/github.com/grpc-ecosystem/grpc-gateway@v1.9.5/runtime/pattern.go:8:2: could not import github.com/grpc-ecosystem/grpc-gateway/utilities (go/build: importGo github.com/grpc-ecosystem/grpc-gateway/utilities: exit status 1
vim-go: error writing go.mod: open /home/vimalkum/go/pkg/mod/github.com/grpc-ecosystem/grpc-gateway@v1.9.5/go.mod298498081.tmp: permission denied
vim-go: 
vim-go: )
vim-go: /home/vimalkum/go/pkg/mod/github.com/grpc-ecosystem/grpc-gateway@v1.9.5/runtime/marshal_jsonpb.go:77:9: j.EmitDefaults undefined (type *JSONPb has no field or method EmitDefaults)
vim-go: /home/vimalkum/go/pkg/mod/github.com/grpc-ecosystem/grpc-gateway@v1.9.5/runtime/marshal_jsonpb.go:118:8: j.Indent undefined (type *JSONPb has no field or method Indent)
vim-go: /home/vimalkum/go/pkg/mod/github.com/grpc-ecosystem/grpc-gateway@v1.9.5/runtime/marshal_jsonpb.go:119:39: j.Indent undefined (type *JSONPb has no field or method Indent)
vim-go: /home/vimalkum/go/pkg/mod/github.com/grpc-ecosystem/grpc-gateway@v1.9.5/runtime/marshal_jsonpb.go:123:54: j.EnumsAsInts undefined (type *JSONPb has no field or method EnumsAsInts)
vim-go: /home/vimalkum/go/pkg/mod/github.com/grpc-ecosystem/grpc-gateway@v1.9.5/runtime/handler.go:174:26: serr.HttpCode undefined (type *StreamError has no field or method HttpCode)
vim-go: /home/vimalkum/go/src/github.com/coreos/etcd/etcdserver/etcdserverpb/gw/rpc.pb.gw.go:1679:71: cannot use (func() (proto.Message, error) literal) (value of type func() (proto.Message, error)) as func() (invalid type, error) value in argument to forward_Maintenance_Snapshot_0
vim-go: /home/vimalkum/go/src/github.com/coreos/etcd/etcdserver/api/v3rpc/interceptor.go:73:30: lg.Core().Enabled undefined (type invalid type has no field or method Enabled)
vim-go: /home/vimalkum/go/src/github.com/coreos/etcd/etcdserver/api/v3election/v3electionpb/gw/v3election.pb.gw.go:255:67: cannot use (func() (proto.Message, error) literal) (value of type func() (proto.Message, error)) as func() (invalid type, error) value in argument to forward_Election_Observe_0
vim-go: /home/vimalkum/go/src/github.com/coreos/etcd/etcdserver/api/v3lock/v3lockpb/gw/v3lock.pb.gw.go:53:56: cannot use &metadata.HeaderMD (value of type *invalid type) as *metadata.MD value in argument to grpc.Header
vim-go: /home/vimalkum/go/src/github.com/coreos/etcd/embed/config_logging.go:234:28: cannot use logutil.DefaultZapLoggerConfig.EncoderConfig (variable with invalid type) as zapcore.EncoderConfig value in argument to zapcore.NewJSONEncoder
vim-go: /home/vimalkum/go/src/github.com/coreos/etcd/embed/config_logging.go:236:5: cannot use lvl (variable of type zap.AtomicLevel) as zapcore.LevelEnabler value in argument to zapcore.NewCore: wrong type for method Enabled
vim-go: /home/vimalkum/go/pkg/mod/github.com/etcd-io/etcd@v3.3.18+incompatible/clientv3/balancer/connectivity/connectivity.go:21:2: could not import go.uber.org/zap (cannot find package "go.uber.org/zap" in any of:
vim-go:         /usr/local/go/src/go.uber.org/zap (from $GOROOT)
vim-go:         /home/vimalkum/go/src/go.uber.org/zap (from $GOPATH))
vim-go: /home/vimalkum/go/pkg/mod/github.com/etcd-io/etcd@v3.3.18+incompatible/etcdserver/etcdserverpb/rpc.pb.go:17:4: could not import google.golang.org/genproto/googleapis/api/annotations (cannot find package "google.golang.org/genproto/googleapis/api/annotations" in any of:
vim-go:         /usr/local/go/src/google.golang.org/genproto/googleapis/api/annotations (from $GOROOT)
vim-go:         /home/vimalkum/go/src/google.golang.org/genproto/googleapis/api/annotations (from $GOPATH))
vim-go: /home/vimalkum/go/pkg/mod/github.com/etcd-io/etcd@v3.3.18+incompatible/etcdserver/etcdserverpb/rpc.pb.go:11838:32: m.Perm[iNdEx].MarshalToSizedBuffer undefined (type *authpb.Permission has no field or method MarshalToSizedBuffer)
vim-go: /home/vimalkum/go/pkg/mod/github.com/etcd-io/etcd@v3.3.18+incompatible/etcdserver/etcdserverpb/rpc.pb.go:11337:24: m.Perm.MarshalToSizedBuffer undefined (type *authpb.Permission has no field or method MarshalToSizedBuffer)
vim-go: /home/vimalkum/go/pkg/mod/github.com/etcd-io/etcd@v3.3.18+incompatible/etcdserver/etcdserverpb/rpc.pb.go:9514:34: m.Events[iNdEx].MarshalToSizedBuffer undefined (type *mvccpb.Event has no field or method MarshalToSizedBuffer)
vim-go: /home/vimalkum/go/pkg/mod/github.com/etcd-io/etcd@v3.3.18+incompatible/etcdserver/etcdserverpb/rpc.pb.go:8406:35: m.PrevKvs[iNdEx].MarshalToSizedBuffer undefined (type *mvccpb.KeyValue has no field or method MarshalToSizedBuffer)
vim-go: /home/vimalkum/go/pkg/mod/github.com/etcd-io/etcd@v3.3.18+incompatible/etcdserver/etcdserverpb/rpc.pb.go:8303:26: m.PrevKv.MarshalToSizedBuffer undefined (type *mvccpb.KeyValue has no field or method MarshalToSizedBuffer)
vim-go: /home/vimalkum/go/pkg/mod/github.com/etcd-io/etcd@v3.3.18+incompatible/etcdserver/etcdserverpb/rpc.pb.go:8175:31: m.Kvs[iNdEx].MarshalToSizedBuffer undefined (type *mvccpb.KeyValue has no field or method MarshalToSizedBuffer)
vim-go: /home/vimalkum/go/pkg/mod/github.com/etcd-io/etcd@v3.3.18+incompatible/pkg/osutil/osutil.go:22:2: could not import github.com/coreos/pkg/capnslog (cannot find package "github.com/coreos/pkg/capnslog" in any of:
vim-go:         /usr/local/go/src/github.com/coreos/pkg/capnslog (from $GOROOT)
vim-go:         /home/vimalkum/go/src/github.com/coreos/pkg/capnslog (from $GOPATH))
vim-go: /home/vimalkum/go/pkg/mod/github.com/etcd-io/etcd@v3.3.18+incompatible/etcdctl/ctlv3/command/check.go:32:2: could not import gopkg.in/cheggaaa/pb.v1 (cannot find package "gopkg.in/cheggaaa/pb.v1" in any of:
vim-go:         /usr/local/go/src/gopkg.in/cheggaaa/pb.v1 (from $GOROOT)
vim-go:         /home/vimalkum/go/src/gopkg.in/cheggaaa/pb.v1 (from $GOPATH))
vim-go: /home/vimalkum/go/pkg/mod/github.com/etcd-io/etcd@v3.3.18+incompatible/etcdctl/ctlv3/command/global.go:27:2: could not import github.com/bgentry/speakeasy (cannot find package "github.com/bgentry/speakeasy" in any of:
vim-go:         /usr/local/go/src/github.com/bgentry/speakeasy (from $GOROOT)
vim-go:         /home/vimalkum/go/src/github.com/bgentry/speakeasy (from $GOPATH))
vim-go: /home/vimalkum/go/pkg/mod/github.com/etcd-io/etcd@v3.3.18+incompatible/etcdctl/ctlv3/command/migrate_command.go:28:10: could not import github.com/coreos/etcd/error (cannot find package "github.com/coreos/etcd/error" in any of:
vim-go:         /usr/local/go/src/github.com/coreos/etcd/error (from $GOROOT)
vim-go:         /home/vimalkum/go/src/github.com/coreos/etcd/error (from $GOPATH))
vim-go: /home/vimalkum/go/pkg/mod/github.com/etcd-io/etcd@v3.3.18+incompatible/etcdctl/ctlv3/command/migrate_command.go:32:2: could not import github.com/coreos/etcd/etcdserver/membership (cannot find package "github.com/coreos/etcd/etcdserver/membership" in any of:
vim-go:         /usr/local/go/src/github.com/coreos/etcd/etcdserver/membership (from $GOROOT)
vim-go:         /home/vimalkum/go/src/github.com/coreos/etcd/etcdserver/membership (from $GOPATH))
vim-go: /home/vimalkum/go/pkg/mod/github.com/etcd-io/etcd@v3.3.18+incompatible/etcdctl/ctlv3/command/migrate_command.go:39:2: could not import github.com/coreos/etcd/snap (cannot find package "github.com/coreos/etcd/snap" in any of:
vim-go:         /usr/local/go/src/github.com/coreos/etcd/snap (from $GOROOT)
vim-go:         /home/vimalkum/go/src/github.com/coreos/etcd/snap (from $GOPATH))
vim-go: /home/vimalkum/go/pkg/mod/github.com/etcd-io/etcd@v3.3.18+incompatible/etcdctl/ctlv3/command/migrate_command.go:40:2: could not import github.com/coreos/etcd/store (cannot find package "github.com/coreos/etcd/store" in any of:
vim-go:         /usr/local/go/src/github.com/coreos/etcd/store (from $GOROOT)
vim-go:         /home/vimalkum/go/src/github.com/coreos/etcd/store (from $GOPATH))
vim-go: /home/vimalkum/go/pkg/mod/github.com/etcd-io/etcd@v3.3.18+incompatible/etcdctl/ctlv3/command/printer.go:23:2: could not import github.com/dustin/go-humanize (cannot find package "github.com/dustin/go-humanize" in any of:
vim-go:         /usr/local/go/src/github.com/dustin/go-humanize (from $GOROOT)
vim-go:         /home/vimalkum/go/src/github.com/dustin/go-humanize (from $GOPATH))
vim-go: /home/vimalkum/go/pkg/mod/github.com/etcd-io/etcd@v3.3.18+incompatible/etcdctl/ctlv3/command/printer_table.go:20:2: could not import github.com/olekukonko/tablewriter (cannot find package "github.com/olekukonko/tablewriter" in any of:
vim-go:         /usr/local/go/src/github.com/olekukonko/tablewriter (from $GOROOT)
vim-go:         /home/vimalkum/go/src/github.com/olekukonko/tablewriter (from $GOPATH))
vim-go: /home/vimalkum/go/pkg/mod/github.com/etcd-io/etcd@v3.3.18+incompatible/etcdctl/ctlv3/command/snapshot_command.go:46:7: could not import github.com/coreos/bbolt (cannot find package "github.com/coreos/bbolt" in any of:
vim-go:         /usr/local/go/src/github.com/coreos/bbolt (from $GOROOT)
vim-go:         /home/vimalkum/go/src/github.com/coreos/bbolt (from $GOPATH))
vim-go: /home/vimalkum/go/pkg/mod/github.com/etcd-io/etcd@v3.3.18+incompatible/etcdctl/ctlv3/command/txn_command.go:199:47: cannot use pb.Compare_LEASE (constant 4 of type etcdserverpb.Compare_CompareTarget) as etcdserverpb.Compare_CompareTarget value in struct literal
vim-go: /home/vimalkum/go/pkg/mod/github.com/etcd-io/etcd@v3.3.18+incompatible/etcdctl/ctlv3/command/snapshot_command.go:383:28: cannot use be (variable of type backend.Backend) as *zap.Logger value in argument to lease.NewLessor
vim-go: /home/vimalkum/go/pkg/mod/github.com/etcd-io/etcd@v3.3.18+incompatible/etcdctl/ctlv3/command/snapshot_command.go:383:32: cannot use math.MaxInt64 (constant 9223372036854775807 of type int) as backend.Backend value in argument to lease.NewLessor: missing method BatchTx
vim-go: /home/vimalkum/go/pkg/mod/github.com/etcd-io/etcd@v3.3.18+incompatible/etcdctl/ctlv3/command/snapshot_command.go:383:45: too few arguments in call to lease.NewLessor
vim-go: /home/vimalkum/go/pkg/mod/github.com/etcd-io/etcd@v3.3.18+incompatible/etcdctl/ctlv3/command/snapshot_command.go:384:21: cannot use be (variable of type backend.Backend) as *zap.Logger value in argument to mvcc.NewStore
vim-go: /home/vimalkum/go/pkg/mod/github.com/etcd-io/etcd@v3.3.18+incompatible/etcdctl/ctlv3/command/snapshot_command.go:384:25: cannot use lessor (variable of type lease.Lessor) as backend.Backend value in argument to mvcc.NewStore: missing method BatchTx
vim-go: /home/vimalkum/go/pkg/mod/github.com/etcd-io/etcd@v3.3.18+incompatible/etcdctl/ctlv3/command/snapshot_command.go:384:33: cannot use (*initIndex)(&commit) (value of type *initIndex) as lease.Lessor value in argument to mvcc.NewStore: missing method Attach
vim-go: /home/vimalkum/go/pkg/mod/github.com/etcd-io/etcd@v3.3.18+incompatible/etcdctl/ctlv3/command/snapshot_command.go:384:54: too few arguments in call to mvcc.NewStore
vim-go: /home/vimalkum/go/pkg/mod/github.com/etcd-io/etcd@v3.3.18+incompatible/etcdctl/ctlv3/command/snapshot_command.go:385:17: too few arguments in call to 
```

:GoChannelPeers uses guru, and seems guru is not usable with modules? and must use gopls instead.

How to replace vim-go commands which use guru to port to use gopls

Configuration (MUST fill this out):

vim-go version:

vimrc you used to reproduce (use a minimal vimrc with other plugins disabled; do not link to a 2,000 line vimrc):

vimrc

nothing fancy, vimrc generated from vim-bootstrap for golang

```
"*****************************************************************************    
"" Plug install packages    
"*****************************************************************************    
Plug 'smitajit/bufutils.vim'    
Plug 'Shougo/denite.nvim'    
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }    
Plug 'deoplete-plugins/deoplete-go', { 'do': 'make'}    
Plug 'scrooloose/nerdtree'    
Plug 'jistr/vim-nerdtree-tabs'    
Plug 'tpope/vim-commentary'         " to comment/uncomment code    
Plug 'tpope/vim-fugitive'           " the best Git wrapper of all time.    
Plug 'bling/vim-airline'    
Plug 'ap/vim-buftabline'    
Plug 'airblade/vim-gitgutter'       " shows a git diff in the 'gutter' (sign column)    
"Plug 'vim-scripts/grep.vim'         " The grep plugin integrates the grep, fgrep, egrep, and agrep tools with Vim    
Plug 'Raimondi/delimitMate'         " automatic closing of quotes, parenthesis, brackets, etc    
Plug 'majutsushi/tagbar'            " browse the tags of the current file and get an overview of its structure.    
Plug 'dense-analysis/ale'    
"Plug 'sheerun/vim-polyglot'            " A collection of language packs for Vim.    

Plug 'google/vim-codefmt'           " An AutoBufferFormatter for various languages    
Plug 'google/vim-maktaba'           " required by vim-codefmt    

" go
"" Go Lang Bundle
Plug 'fatih/vim-go', {'do': ':GoInstallBinaries'}

``` 

Vim version (first three lines from :version):

NVIM v0.5.0-245-g1bfccf028 Build type: RelWithDebInfo LuaJIT 2.1.0-beta3

Go version (go version):

go version go1.13.4 linux/amd64

Go environment

go env Output:

GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/vimalkum/.cache/go-build"
GOENV="/home/vimalkum/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/vimalkum/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/home/vimalkum/go/src/github.com/etcd-io/etcd/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-build780991928=/tmp/go-build -gno-record-gcc-switches"

gopls version

gopls version Output:

golang.org/x/tools/gopls 0.2.2
    golang.org/x/tools/gopls@v0.2.2 h1:ujGisyytgY1VGcmd66wIJ9+wVAfmodXj6daHM43HRXk=

vim-go configuration:

vim-go configuration
g:go_fmt_fail_silently = 1
g:go_auto_type_info = 1
g:go_list_type = 'quickfix'
g:go_highlight_extra_types = 1
g:go_highlight_operators = 1
g:go_highlight_fields = 1
g:go_highlight_trailing_whitespace_error = 1
g:go_echo_command_info = 1
g:go_highlight_structs = 1
g:go_guru_scope = ['github.com/etcd-io/etcd/...']
g:go_highlight_functions = 1
g:go_gotags_bin = 'gotags'
g:go_highlight_space_tab_error = 1
g:go_highlight_types = 1
g:go_fmt_command = 'goimports'
g:go_jump_to_error = 1
g:go_highlight_methods = 1
g:go_loaded_gosnippets = 1
g:go_highlight_generate_tags = 1
g:go_term_mode = 'split'
g:go_highlight_build_constraints = 1
g:go_loaded_install = 1
g:go_highlight_array_whitespace_error = 1
bhcleek commented 4 years ago

If you want to use :GoChannelPeers, you'll need to be in GOPATH mode, not module aware mode, because it relies on guru and guru does not support modules. gopls doesn't have an option to get channel peers yet.

However, the errors you're seeing look like vim-go hasn't gotten to running guru yet and is still dealing with the fallout of running go list.

vimalk78 commented 4 years ago

i am using go1.13.4 modules is enabled by default. how do i be in GOPATH mode? and any pointers on why go list is producing so many errors?

bhcleek commented 4 years ago

To be in GOPATH mode, your code will need to be in $GOPATH/src and you'll need GO111MODULE=off.

bhcleek commented 4 years ago

The errors you're seeing look pretty straightforward: it's a mixture of permissions errors and package incompatibilities. All of these can be analyzed by running go list ./... in the root directory of your module.

vimalk78 commented 4 years ago

To be in GOPATH mode, your code will need to be in $GOPATH/src and you'll need GO111MODULE=off.

I tried that, and i get below errors.

The GOPATH is set to /home/vimalkum/go

vimalkum (master) etcd $ echo $GO111MODULE 
off

These messages i get by checking :messages command

vim-go: /home/vimalkum/go/src/github.com/etcd-io/etcd/embed/etcd.go:202:31: cannot use cfg.loggerCore (variable of type zapcore.Core) as zapcore.Core value in
 struct literal: wrong type for method Check
vim-go: /home/vimalkum/go/src/github.com/etcd-io/etcd/embed/config_logging.go:308:59: cannot use cr (variable of type zapcore.Core) as zapcore.Core value in a
rgument to logutil.NewGRPCLoggerV2FromZapCore: wrong type for method Check
vim-go: /home/vimalkum/go/src/github.com/etcd-io/etcd/embed/config_logging.go:102:31: cannot use logutil.ConvertToCapnslogLogLevel(cfg.LogLevel) (value of typ
e capnslog.LogLevel) as capnslog.LogLevel value in argument to capnslog.SetGlobalLogLevel
vim-go: /home/vimalkum/go/src/github.com/etcd-io/etcd/embed/config_logging.go:177:40: cannot use logutil.ConvertToZapLevel(cfg.LogLevel) (value of type zapcor
e.Level) as zapcore.Level value in argument to zap.NewAtomicLevelAt
vim-go: /home/vimalkum/go/src/github.com/etcd-io/etcd/embed/config_logging.go:177:19: cannot use zap.NewAtomicLevelAt(logutil.ConvertToZapLevel(cfg.LogLevel))
 (value of type zap.AtomicLevel) as zap.AtomicLevel value in assignment
vim-go: /home/vimalkum/go/src/github.com/etcd-io/etcd/embed/config_logging.go:187:22: cannot use copied.Build() (value of type *zap.Logger) as *zap.Logger val
ue in assignment
vim-go: /home/vimalkum/go/src/github.com/etcd-io/etcd/embed/config_logging.go:193:23: cannot use &copied (value of type *zap.Config) as *zap.Config value in a
ssignment
vim-go: /home/vimalkum/go/src/github.com/etcd-io/etcd/embed/config_logging.go:223:32: cannot use logutil.ConvertToZapLevel(cfg.LogLevel) (value of type zapcor
e.Level) as zapcore.Level value in argument to zap.NewAtomicLevelAt
vim-go: /home/vimalkum/go/src/github.com/etcd-io/etcd/embed/config_logging.go:234:28: cannot use logutil.DefaultZapLoggerConfig.EncoderConfig (variable of typ
e zapcore.EncoderConfig) as zapcore.EncoderConfig value in argument to zapcore.NewJSONEncoder
vim-go: /home/vimalkum/go/src/github.com/etcd-io/etcd/embed/config_logging.go:248:62: cannot use cr (variable of type zapcore.Core) as zapcore.Core value in a
rgument to logutil.NewGRPCLoggerV2FromZapCore: wrong type for method Check
vim-go: /home/vimalkum/go/src/github.com/etcd-io/etcd/embed/config.go:787:44: cannot use cfg.logger (variable of type *zap.Logger) as *zap.Logger value in arg
ument to transport.SelfCert
vim-go: /home/vimalkum/go/src/github.com/etcd-io/etcd/embed/config.go:764:46: cannot use cfg.logger (variable of type *zap.Logger) as *zap.Logger value in arg
ument to transport.SelfCert
vim-go: /home/vimalkum/go/src/github.com/etcd-io/etcd/functional/cmd/etcd-tester/main.go:42:33: cannot use logger (variable of type *zap.Logger) as *zap.Logge
r value in argument to tester.NewCluster
vim-go: /home/vimalkum/go/src/github.com/etcd-io/etcd/functional/agent/server.go:97:32: cannot use srv.grpcServer (variable of type *grpc.Server) as *grpc.Ser
ver value in argument to rpcpb.RegisterTransportServer
vim-go: /home/vimalkum/go/src/github.com/etcd-io/etcd/functional/agent/handler.go:603:35: cannot use srv.lg (variable of type *zap.Logger) as *zap.Logger valu
e in argument to srv.Member.RestoreSnapshot
vim-go: /home/vimalkum/go/src/github.com/etcd-io/etcd/functional/agent/handler.go:591:33: cannot use srv.lg (variable of type *zap.Logger) as *zap.Logger valu
e in argument to srv.Member.SaveSnapshot
vim-go: /home/vimalkum/go/src/github.com/etcd-io/etcd/functional/agent/handler.go:221:12: cannot use srv.lg (variable of type *zap.Logger) as *zap.Logger valu
e in struct literal
vim-go: /home/vimalkum/go/src/github.com/etcd-io/etcd/functional/agent/handler.go:245:12: cannot use srv.lg (variable of type *zap.Logger) as *zap.Logger valu
e in struct literal
vim-go: /home/vimalkum/go/src/github.com/etcd-io/etcd/integration/cluster.go:824:44: cannot use m.grpcServerOpts (variable of type []grpc.ServerOption) as []g
rpc.ServerOption value in argument to v3rpc.Server
vim-go: /home/vimalkum/go/src/github.com/etcd-io/etcd/integration/cluster.go:824:18: cannot use v3rpc.Server(m.s, tlscfg, m.grpcServerOpts...) (value of type 
*grpc.Server) as *grpc.Server value in assignment
vim-go: /home/vimalkum/go/src/github.com/etcd-io/etcd/integration/cluster.go:825:22: cannot use v3rpc.Server(m.s, peerTLScfg) (value of type *grpc.Server) as 
*grpc.Server value in assignment
vim-go: /home/vimalkum/go/src/github.com/etcd-io/etcd/integration/cluster.go:827:29: cannot use m.grpcServer (variable of type *grpc.Server) as *grpc.Server v
alue in argument to lockpb
bhcleek commented 4 years ago

These are all errors from Go. It looks as though you may have some type shadowing happening.

vimalk78 commented 4 years ago

It worked.

I had to :

  1. enable GO111MODULE and run mo mod vendor
  2. disable GO111MODULE and run :GoChannelPeers