Replies: 2 comments 4 replies
-
🤔 the
Could that be the culprit? |
Beta Was this translation helpful? Give feedback.
4 replies
-
I'll clone this repo sometime tomorrow and add some debug statements, to see what's happening and why the default |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Have you read the docs and searched existing issues?
Neovim version (nvim -v)
n/a
Operating system/version
n/a
Output of :checkhealth rustaceanvim
n/a
How to reproduce the issue
n/a
Expected behaviour
This is a follow-up to #650. I couldn't reply there because it was locked as off-topic (correctly, with the given information at the time). I did some more debugging and have concluded that the issue is specific to
rustaceanvim
(or at least, to my usage of rustaceanvim, likely).The issue seems to be that the default configuration did not correctly set the linter to
clippy
, instead defaulting tocheck
.I verified this by (1) migrating to
nvim-lint
and runningcargo clippy
directly, which worked, then (2) migrating tonvim-lspconfig
and explicitly settingcheck.command
toclippy
, which also worked, and then finally (3) migrating back torustaceanvim
and also setting that command explicitly, which made things work as well.Things I did to figure out what was happening:
tools.enable_clippy
totrue
(no difference, as expected):lua vim.print(vim.fn.executable('cargo-clippy') == 1)
(returnedtrue
)check
/checkOnSave
set (I didn't):lua vim.print(require('rustaceanvim.config.internal'))
Here's relevant parts of that last one:
Aside from the server settings, I also set this:
Somewhere, somehow, the configuration decides not to inject the
command = clippy
default setting. I don't know exactly why or where, but I'm sure you'll have more contextual knowledge to understand what is going on here.I've resolved it for now by manually forcing the clippy command in the config, but perhaps this issue allows you to find a potential bug and help avoid others walking into this trap.
Actual behaviour
n/a
The minimal config used to reproduce this issue.
Beta Was this translation helpful? Give feedback.
All reactions