I am assuming my current instance is using the bundled version as I get pop ups of new versions to be downloaded, but I would like to know if there's a command or option to tell coc-rust-analyzer to directly use the system binary instead, would that be using serverPath and falling into the first binary check first? if that's the case, for this extension to fallback in the system binary it will require me finding the bundled binary and deleting it so it fails and falls back to the system one?
thanks
What's the output of :CocInfo
## versions
vim version: NVIM v0.9.4
node version: v21.2.0
coc.nvim version: 0.0.82-b7375d5f 2023-01-30 05:09:03 +0800
coc.nvim directory: /home/gioyik/.local/share/nvim/plugged/coc.nvim
term: tmux
platform: linux
## Log of coc.nvim
2023-11-28T17:49:54.146 INFO (pid:1452817) [attach] - receive notification: highlight []
2023-11-28T17:49:54.200 WARN (pid:1452817) [workspace] - Extension "coc-lists" registered synchronized autocmd "VimLeavePre", which could be slow.
2023-11-28T17:49:54.249 INFO (pid:1452817) [plugin] - coc.nvim initialized with node: v21.2.0 after 180
2023-11-28T17:49:54.250 INFO (pid:1452817) [services] - LanguageClient Rust Analyzer Language Server state change: stopped => starting
2023-11-28T17:49:54.258 INFO (pid:1452817) [language-client-index] - Language server "rust-analyzer" started with 1452842
2023-11-28T17:49:54.268 INFO (pid:1452817) [services] - LanguageClient Rust Analyzer Language Server state change: starting => running
2023-11-28T17:49:54.287 INFO (pid:1452817) [services] - service rust-analyzer started
2023-11-28T18:00:01.784 INFO (pid:1452817) [attach] - receive notification: showInfo []
What's the output of :CocCommand rust-analyzer.serverVersion
[coc.nvim] rust-analyzer 0.3.1748-standalone
What's your coc-rust-analyzer version? You can get it from :CocList extensions
hey, I am a bit curious how to check what binary is coc-rust-analyzer actually using or how can I force the system binary. Checking the login here https://github.com/fannheyward/coc-rust-analyzer/blob/ff219423b2b8961f9d4d3949881928590af56f66/src/ctx.ts#L84
My understanding is checks for a serverPath first if is defined: https://github.com/fannheyward/coc-rust-analyzer/blob/ff219423b2b8961f9d4d3949881928590af56f66/src/ctx.ts#L90
Then it checks for the bundled binary that can be updated: https://github.com/fannheyward/coc-rust-analyzer/blob/ff219423b2b8961f9d4d3949881928590af56f66/src/ctx.ts#L94
And if not found, it falls back to the system binary: https://github.com/fannheyward/coc-rust-analyzer/blob/ff219423b2b8961f9d4d3949881928590af56f66/src/ctx.ts#L98
I am assuming my current instance is using the bundled version as I get pop ups of new versions to be downloaded, but I would like to know if there's a command or option to tell coc-rust-analyzer to directly use the system binary instead, would that be using serverPath and falling into the first binary check first? if that's the case, for this extension to fallback in the system binary it will require me finding the bundled binary and deleting it so it fails and falls back to the system one?
thanks
What's the output of
:CocInfo
What's the output of
:CocCommand rust-analyzer.serverVersion
What's your coc-rust-analyzer version? You can get it from
:CocList extensions
0.75.0