neoclide / coc-rls

Rust language server support for coc.nvim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

:RustRun error

shuaixr opened this issue · comments

run :RustRun with the https://github.com/shuaixr/minigrep yields this error.
run cargo run from cli works fine.
It looks like running rustc instead of cargo run

log:
error[E0432]: unresolved import minigrep
--> src/main.rs:1:5
|
1 | use minigrep::Config;
| ^^^^^^^^ maybe a missing crate minigrep?

error[E0433]: failed to resolve: use of undeclared type or module minigrep --> src/main.rs:13:21 | 13 | if let Err(e) = minigrep::run(config) { | ^^^^^^^^ use of undeclared type or module minigrep error: aborting due to 2 previous errors
Some errors have detailed explanations: E0432, E0433.
For more information about an error, try rustc --explain E0432.
Press ENTER or type command to continue

uname -a
Linux raspberrypi 4.19.97-v7l+ #1294 SMP Thu Jan 30 13:21:14 GMT 2020 armv7l GNU/Linux

nvim --version

Build type: Release
LuaJIT 2.1.0-beta3
Compilation: /usr/bin/cc -g -O2 -fdebug-prefix-map=/build/neovim-PpSRXj/neovim-0.3.4=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=1 -DDISABLE_LOG -Wdate-time -D_FORTIFY_SOURCE=1 -Wconversion -O2 -DNDEBUG -DMIN_LOG_LEVEL=3 -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fdiagnostics-color=auto -Wno-array-bounds -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -I/build/neovim-PpSRXj/neovim-0.3.4/build/config -I/build/neovim-PpSRXj/neovim-0.3.4/src -I/usr/include -I/build/neovim-PpSRXj/neovim-0.3.4/build/src/nvim/auto -I/build/neovim-PpSRXj/neovim-0.3.4/build/include
Compiled by team+vim@tracker.debian.org

Features: +acl +iconv -jemalloc +tui
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/share/nvim"

Run :checkhealth for more info

rustc --version
rustc 1.43.0-nightly (8aa9d2014 2020-02-21)

cargo --version
cargo 1.43.0-nightly (e02974078 2020-02-18)