Closed kcubeterm closed 2 years ago
Additional info:
~$ rust-analyzer --version
rust-analyzer ???????
~ $ apt show rust-analyzer
Package: rust-analyzer
Version: 20220124
Maintainer: @termux
Installed-Size: 23.4 MB
Homepage: https://github.com/rust-analyzer/rust-analyzer
Download-Size: 4632 kB
APT-Manual-Installed: no
APT-Sources: https://dl.kcubeterm.com/termux-main stable/main aarch64 Packages
Description: A Rust compiler front-end for IDEs
rust-analyzer itself doesn't show e version but apt show it is 20220124
Do you set rust-analyzer.server.path
in your coc-settings.json? What's the value?
cat coc-settings.json
{
"rust-analyzer.server.path": {
"type": [
"null",
"string"
],
"default": "/data/data/com.termux/files/usr/bin/rust-analyzer",
"markdownDescription": "Path to rust-analyzer executable (points to bundled binary by default). If this is set, then \"rust-analyzer.updates.channel\" setting is not used"
}
}
Default path is correct!
$ which rust-analyzer
/data/data/com.termux/files/usr/bin/rust-analyzer
Your rust-analyzer.server.path
in coc-settings.json is incorrect, it should b a string value. You can leave it empty, or set the real path of rust-analyzer to it.
Thanks, Now I got it.
What's the output of
:CocInfo
versions
vim version: NVIM v0.7.2 node version: v18.4.0 coc.nvim version: 0.0.81-2522eee5 2022-06-14 19:03:29 +0800 coc.nvim directory: /data/data/com.termux/files/home/.nvim_plug/coc.nvim term: xterm-256color platform: android
Log of coc.nvim
2022-08-06T20:02:12.002 INFO (pid:12037) [attach] - receive notification: showInfo [] What's the output of
:CocCommand rust-analyzer.serverVersion
[coc.nvim] Error on notification "runCommand": Command: rust-analyzer.serverVersion not found