Open ANtlord opened 3 years ago
I'm not able to reproduce the issue in your example project.
Maybe try adding a minimal vimrc to it so that I can try and reproduce this with your settings.
Thank you for the blazing fast reply. The settings I experience the issue with are added to the project. To tell the truth I have no idea what to do except keeping using 0.1.156. Perhaps I can provide some additional technical details?
Ah sorry, missed the init.vim file there. Will try it out with it and let you know how it goes.
Still unable to reproduce. Only thing I can think of is try and set the log level to DEBUG
and submit the relevant portion of the log here.
I caught it. The problem is that my ~/.cargo
directory is a symlink. I made it a regular folder then the LanguageClient works. Perhaps LanguageClient stopped dereferencing it after 0.1.156. The problem in not related to Go to definition
feature but dereferencing a symlink. Should I close it?
Ah great catch! I recall something related to symlinks being tackled some time ago but I can't remember what it was. I'll try and see if I can find it, maybe we can find the solution there.
@ANtlord Is it a symlink purely because you want it to be elsewhere? I have $CARGO_HOME="$XDG_CONFIG_HOME/cargo"
for that reason, and don't have this problem.
(I'm not saying LanguageClient shouldn't behave correctly if it is a symlink, just that that might be a quick fix for you.)
@OJFord that's a very good hint. I completely forgot about it. I've managed the problem with binding mount which works fine unless I need to find something recursilvely. Anyway thanks a lot!
Did you upgrade to latest plugin version? Yes
Did you upgrade to/compile latest binary? Run shell command
bin/languageclient --version
to get its version number. languageclient 0.1.161(Neovim users only) Did you check output of
:checkhealth LanguageClient
?health#LanguageClient#check
health#deoplete#check
deoplete.nvim
health#nvim#check
Configuration
Performance
Remote Plugins
terminal
tmux
health#provider#check
Clipboard (optional)
Python 2 provider (optional)
'/usr/bin/python2' -c 'import sys; sys.path.remove(""); import neovim; print(neovim.__file__)'
(in '/mnt/home/wantlord/develop/study/languageclienttest') Output: Traceback (most recent call last): File "Python 3 provider (optional)
Ruby provider (optional)
neovim-ruby-host
not found.gem install neovim
to ensure the neovim RubyGem is installed.gem environment
to ensure the gem bin directory is in $PATH.Node.js provider (optional)
node
andnpm
(oryarn
) must be in $PATH.node
andnpm
(oryarn
) commands work.Describe the bug
I work on a Rust project which depends on
object
. The library parses an object file. The issue happens if I go to definition of a method of the library and then try to get definition of a method inside the method. To be clear as much as possible I prepared the project (See section To Reproduce below). It works with version 0.1.156. It works poorly with 0.1.157. Latest versions have the issue for me.Environment
nvim --version
orvim --version
):Features: +acl +iconv +tui See ":help feature-compile"
system vimrc file: "$VIM/sysinit.vim" fall-back for $VIM: "/usr/share/nvim"
Run :checkhealth for more info