You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Jump-to-error in nvim has been working sporadically for me. It's entirely possible that this is due to a config error on my part.
I have cargo-limit binaries and nvim-send in my path:
$ which nvim-send
/Users/rodarmor/.cargo/bin/nvim-send
$ which cargo-lcheck
/Users/rodarmor/.cargo/bin/cargo-lcheck
In my .vimrc I have:
Plug 'alopatindev/cargo-limit'
However, running something like cargo lcheck doesn't seem to invoke my g:CargoLimitOpen. I'm a bit of a loss as to how to debug this. Do you have any advice? The main question I'm trying to answer is: How does cargo-limit invoke nvim-send? Can I get it to print out logs? How does it find my nvim server?
I do seem to have an nvim server, :echo v:servername prints out:
With default config (without custom g:CargoLimitOpen) it's invoked in the following conditions:
before running nvim, current directory was project (sub)directory
current nvim mode is normal
current buffer is either empty or contains some existing and unmodified (saved) file
How does it find my nvim server?
nvim may create several socket files but only /tmp/nvim-cargo-limit-${USER}/%path%to%project%directory is used by cargo lcheck and cargo-limit.vim.
Do you have this socket file while nvim is running?
Do you have this socket file when nvim is not running? If yes — try to remove this file and rerun nvim.
For now the only known buggy case when nvim-send is not invoked is if nvim crashed/killed. This results to not removing the socket file and next time nvim plugin thinks that server is already running, so it doesn't recreate the socket file.
If you run multiple instances of nvim in your project (sub)directory — only the first instance should jump to error lines, that's normal behavior.
Can I get it to print out logs?
For now there is no logging. I might will add it in future if it really makes sense.
If the issue still reproduces for you:
which OS and nvim version you're using?
which full project path do you have? (any special characters?)
Frustratingly enough, everything started working again, and I'm not sure what I did. I don't actually think I did anything, so I still don't know what went wrong 😭 If it happens again, I'll refer to your message to debug. What you wrote is so comprehensive, I'd consider adding it to the docs on the editor integration.
Jump-to-error in nvim has been working sporadically for me. It's entirely possible that this is due to a config error on my part.
I have cargo-limit binaries and
nvim-send
in my path:In my
.vimrc
I have:However, running something like
cargo lcheck
doesn't seem to invoke myg:CargoLimitOpen
. I'm a bit of a loss as to how to debug this. Do you have any advice? The main question I'm trying to answer is: How does cargo-limit invoke nvim-send? Can I get it to print out logs? How does it find my nvim server?I do seem to have an nvim server,
:echo v:servername
prints out:Which when I pass to nvim-send:
Does seem to work.
The text was updated successfully, but these errors were encountered: