-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
GoReferrers sometimes show raw text (not a link) with nvim #1836
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
Comments
What do you mean with "sometimes"? Only in some cases (and running it the second time will work fine)? Or only with some code? A reproducible example would be very beneficial. |
It reproduces often in various projects. There is no specific case to reproduce. You may reproduce it with "centrifugo" repo, like in my screenshort. https://github.com/centrifugal/centrifugo. |
@LopatkinEvgeniy I can duplicate what you're seeing, but only in Neovim; Vim8 works fine. |
This appears to be a bug in Neovim; it's not honoring the |
Upon closer inspection, it's not clear if there's a bug in Neovim or whether Neovim docs are just unclear. Either way, it appears that the best solution is to make sure guru is always called with the Making the change to always call guru with |
Output from a Neovim job may come in batches and splits on newlines. When the output ends with a newline, the last element in the data passed to the stdout and stderr callbacks will be the empty string. When it's not the empty string, then last element is an incomplete line, and the next call will contain the rest of the line in the first element of its data. Fixes fatih#1836
What did you do? (required. The issue will be closed when not provided.)
type :GoReferrers
What did you expect to happen?
List with links to the code where current variable used.
What happened instead?
Some rows are not links, they are just text. See third row.

Configuration (MUST fill this out):
vim-go version:
1.17
vimrc
you used to reproduce (use a minimal vimrc with other plugins disabled; do not link to a 2,000 line vimrc):Vim version (first three lines from
:version
):NVIM v0.2.2
Go version (
go version
):go1.10.1 linux/amd64
Go environment (
go env
):The text was updated successfully, but these errors were encountered: