Skip to content
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

references in Denite only contains filename and line number. #1222

Open
d0u9 opened this issue May 13, 2021 · 3 comments
Open

references in Denite only contains filename and line number. #1222

d0u9 opened this issue May 13, 2021 · 3 comments

Comments

@d0u9
Copy link

d0u9 commented May 13, 2021

Describe the bug

Running :Denite references in nvim's command line only shows file and line number but no other information about line contents.

For example, running :call LanguageClient#textDocument_references can correctly obtains references as below:

xxx/server/server.go|60 col 18 n| func (s *server) Start() {
xxx/app/app.go|69 col 13 n| app.server.Start()

However, by running :Denite references, only file name are displayed:

xxx/server/server.go:60:18 
xxx/app/app.go:69:13 

Environment

  • neovim/vim version (nvim --version or vim --version): NVIM v0.4.4 installed via homebrew on MacOS
  • This plugin version (git rev-parse --short HEAD): a42594c
  • This plugin's binary version (bin/languageclient --version): languageclient 0.1.161
  • Minimal vimrc content (A minimal vimrc is the smallest vimrc that could
    reproduce the issue. Refer to an example here): min-vimr.vim doesn't contains Denite
  • Language server link and version:

To Reproduce

Steps to reproduce the behavior:

As described in previous section.

Current behavior

Not show line contents.

Expected behavior

Show line contents

Screenshots

No

Additional context

No

@d0u9
Copy link
Author

d0u9 commented May 21, 2021

So, any update?

@martskins
Copy link
Collaborator

Sorry for the delayed response. I'm not able to test this right now, but if you are feeling adventurous you could try changing this line:


to this: text = self.vim.funcs.getbufline(filepath, line)

Let me know if it helped if you do try it and we can arrange a PR for that.

@d0u9
Copy link
Author

d0u9 commented May 28, 2021

Hello martskins, I patched that line and nvim failed to response anything after invoking Denite references. It seems that nvim stacks in busy loop and CPU usage of nvim surges to 100%.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants