rust-lang / rust.vim

Vim configuration for Rust.
Apache License 2.0
3.9k stars 297 forks source link

Not Seeing the Linting Functionality #492

Open big-c-note opened 1 year ago

big-c-note commented 1 year ago

Hey, I'm not seeing the syntastic linting after following your README.md installation. I'm using vim-plug and, I'm assuming the latest version.

Thanks in advance for your time.

Steps to reproduce:

Example .vimrc.

call plug#begin('~/.vim/plugged')
Plug 'rust-lang/rust.vim'
call plug#end()

" [Ref] `plugged/rust.vim/` - configuration.
syntax enable
filetype plugin indent on

" [Ref] `plugged/rust.vim/` - enables running of `:RustFmt`.
let g:rustfmt_autosave = 1

" [Ref] `help rust` - `rust.vim` options.
let g:rust_fold = 1
let g:rust_recommended_style = 1
let g:loaded_syntastic_rust_cargo_checker = 1
let g:loaded_syntastic_rust_filetype = 1
let g:loaded_syntastic_rust_rustc_checker = 1

Then :PlugInstall

Expected vs. actual behavior:

Expected linting as seen here. I see no linting, but I can see the fixer is running.

big-c-note commented 1 year ago

I was able to get it moving through Ale which is what I'm typically using anyway for linting and fixing. I had to build rust-analyzer from source.

https://github.com/dense-analysis/ale/blob/master/doc/ale-rust.txt