Description
What did you do? (required: The issue will be closed when not provided)
:GoReferrers command on a function.
If possible, please provide clear steps for reproducing the problem.
-->
What did you expect to happen?
return references quickly
What happened instead?
GoReferrers never returns while CPU load 100% for a long time
Configuration (MUST fill this out):
vim-go version:
latest
vimrc
you used to reproduce (use a minimal vimrc with other plugins disabled; do not link to a 2,000 line vimrc):
vimrc
syntax on set nocompatible " be iMproved, required filetype off " requiredcall plug#begin('~/.vim/plugged')
Plug 'vim-scripts/a.vim'
Plug 'Yggdroot/LeaderF'
Plug 'airblade/vim-gitgutter'
Plug 'ludovicchabant/vim-gutentags' " Auto tags
Plug 'fatih/vim-go', { 'do': ':GoInstallBinaries' }
Plug 'gruvbox-community/gruvbox'
Plug 'Chiel92/vim-autoformat'
Plug 'scrooloose/nerdcommenter'
Plug 'easymotion/vim-easymotion'
Plug 'scrooloose/nerdtree'
Plug 'tpope/vim-fugitive'
Plug 'neoclide/coc.nvim', {'branch': 'release'}
call plug#end()filetype plugin indent on " required
" Vim-go
let g:go_template_autocreate = 0
let g:go_fmt_command = 'goimports'
"let g:go_highlight_types = 1
"let g:go_highlight_fields = 1
let g:go_highlight_functions = 1
"let g:go_highlight_function_calls = 1
let g:go_code_completion_enabled = 0
Vim version (first three lines from :version
):
VIM - Vi IMproved 8.1 (2018 May 18, compiled Aug 21 2019 18:00:45)
包含补丁: 1-1906
编译者 Arch Linux
Go version (go version
):
go version go1.13 linux/amd64
Go environment
go env
Output:
GO111MODULE="" GOARCH="amd64" GOBIN="" GOCACHE="/home/xx/.cache/go-build" GOENV="/home/xx/.config/go/env" GOEXE="" GOFLAGS="" GOHOSTARCH="amd64" GOHOSTOS="linux" GONOPROXY="" GONOSUMDB="" GOOS="linux" GOPATH="/home/xx/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="" 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-build490897727=/tmp/go-build -gno-record-gcc-switches"