-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ctags /gotags stopped working #2496
Comments
vim-go doesn't use tags files for jumping to definitions. Can you provide some more details on how to duplicate the error you're seeing? (e.g. path to a file to jump from and path to a file to jump to, perhaps a simple reproduction case with code). How did you update Finally, this might be related to golang/go#34298. |
|
thanks very much 👍 some how it started working again now. |
Just FYI: installing gopls that way will install its master, which may be in a broken state. You can install using |
thanks bhcleek for your additional info. sorry i did remove all my go plugins along with YCM & UltiSnips , now able to get everything back to working state and normal in case any one faces similar issue in future can follow same . |
What did you do? (required: The issue will be closed when not provided)
started new project outside $GOPATH and ran Ctags -R . command in terminal to generate tag file .
tag file was empty so added support to go in Ctags using custom ~/.ctags file.
Tag generation was successful after custom tag file .
when trying to jump to defn using
C-]
command the following error message is flashingvim-go: initialized gopls vim-go: [definition] FAIL vim-go: method "textDocument/definition" did not reply
gopls
had updated gopls and re-tried no luck.
same with previous projects as well.
Tags stopped working completely.
NOTE - When manually grepped the tag file the required tag was present in the file.
What did you expect to happen?
expecting to jump to the tag generated.
What happened instead?
received error in message
vim-go: initialized gopls vim-go: [definition] FAIL vim-go: method "textDocument/definition" did not reply
Configuration (MUST fill this out):
osx -10.14.6
vim version :
VIM - Vi IMproved 8.1 (2018 May 18, compiled Sep 8 2019 07:17:45) macOS version Included patches: 1-1999 Compiled by Homebrew Huge version without GUI. Features included (+) or not (-):
vim-go version:
latest - v.1.2.1
vimrc
you used to reproduce (use a minimal vimrc with other plugins disabled; do not link to a 2,000 line vimrc):vimrc
let g:go_updatetime = 800 let g:go_doc_keywordprg_enabled = 1 let g:go_doc_max_height = 20 let g:go_snippet_engine = "automatic" let g:go_get_update = 1 let g:go_def_mapping_enabled = 1 let g:go_list_type = "quickfix" let g:go_metalinter_enabled = ['vet', 'golint', 'errcheck'] "let g:go_metalinter_command='golangci-lint' "Ultisnip mappings let g:UltisnipUsePythonVersion = 3 let g:UltiSnipsExpandTrigger="<c-j>" let g:UltiSnipsListSnippets="<c-tab>" let g:UltiSnipsJumpForwardTrigger="<c-h>" let g:UltiSnipsJumpBackwardTrigger="<c-k>" "Fugitive git leader mappings :nmap <Leader>gs :Gstatus<CR> :nmap <Leader>gd :GDoc :nmap <Leader>gb :Gbrowse<CR> :nmap <Leader>gpu :Gpush<CR> :nmap <Leader>gsd :Gsdiff<CR> :nmap <Leader>ga :Git add -- .<CR> "vimgo mappings let g:go_def_mode='gopls' let g:go_info_mode='gopls' :nmap <Leader>ga :GoAlternate<CR> autocmd FileType go nmap <leader>r <Plug>(go-run) autocmd FileType go nmap <leader>b <Plug>(go-build) autocmd FileType go nmap <Leader>c <Plug>(go-coverage-toggle) :nmap <Leader>gl :GoMetaLinter<CR> :nmap <Leader>gd :GoDebugStart<CR>
Vim version (first three lines from
:version
):VIM - Vi IMproved 8.1 (2018 May 18, compiled Sep 8 2019 07:17:45) macOS version Included patches: 1-1999 Compiled by Homebrew Huge version without GUI. Features included (+) or not (-):
Go version (
go version
):go version go1.13 darwin/amd64
Go environment
go env
Output:The text was updated successfully, but these errors were encountered: