Skip to content

GoReferrers not work with scope and error message appears at bottom #2565

@hehailong5

Description

@hehailong5

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

  1. :GoGuruScope /root/hhl/git/msb-apigateway-go/apiroute/src/apiroute/...
  2. :GoReferrers for an identifier

What did you expect to happen?
list all the referrers for this identifier within specified scope

What happened instead?

  1. only list referrers within current package
  2. error appears at bottom:
    vim-go: /root/hhl/git/msb-apigateway-go/apiroute/src/apiroute/cache/re...e: -1 at function 374[13]..377[26]..111_referencesHandler, line 12

Configuration (MUST fill this out):
vim-go version:
tried both v1.21 and master

vimrc you used to reproduce (use a minimal vimrc with other plugins disabled; do not link to a 2,000 line vimrc):
root@nfvo1-E9000:~# cat .vimrc.go
set runtimepath^="/root/.vim_go_runtime"

source /root/.vim_go_runtime/vimrc/basic.vim
source /root/.vim_go_runtime/vimrc/filetypes.vim
source /root/.vim_go_runtime/vimrc/plugins.vim
source /root/.vim_go_runtime/vimrc/extended.vim

try
source /root/.vim_go_runtime/custom_config.vim
catch
endtry

Vim version (first three lines from :version):
8.1.2151

Go version (go version):
go1.12.10

Go environment
GOARCH="amd64"
GOBIN=""
GOCACHE="/root/.cache/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/root/hhl/go:/root/hhl/git/msb-apigateway-go/apiroute:/root/hhl/git/msb-sdclient-go/sdclient"
GOPROXY=""
GORACE=""
GOROOT="/root/.gvm/gos/go1.12.10"
GOTMPDIR=""
GOTOOLDIR="/root/.gvm/gos/go1.12.10/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD=""
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-build551488242=/tmp/go-build -gno-record-gcc-switches"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions