"vim-go: guru: no object for identifier" appearing in messages
Definition/documentation shows up
Have simplest go hello world code
package main
import "fmt"
func main() {
fmt.Println("vim-go")
}
vim-go: guru: no object for identifier shows upPreviously had NeoVim 0.1.13 from stable channel in brew and go 1.6.x. Things worked alright on this configuration.
After upgrading to go 1.7.1, this started happening. In hope that things were fixed, I upgraded to latest NeoVim from dev channel and upgraded all vim plugins.
Now even going back to go 1.6.2 doesn't help.
How to debug this issue?
There is a similar issue #851, which further links to an issue with calling C code. Here we have the most basic code, the happy path. Can we at least confirm that we are calling guru in the right way? How to get byte offset from this example to guru from command line, in order to confirm/deny if the bug is on x/tools/cmd/guru side?
vimrc you used to reproduceset nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'gmarik/Vundle.vim'
Plugin 'fatih/vim-go'
call vundle#end()
filetype plugin indent on
Have you tried :GoUpdateBinaries?
@nhooyr thank you! It solved the problem.
Wrong assumption on my side that those will get automatically updated when switching to newer version of go.
@danielmanesku is _:GoUpdateBinaries_ work?
@doop-ymc yes, that solved it
Most helpful comment
Have you tried
:GoUpdateBinaries?