VIM version
NVIM v0.2.2
Build type: Release
Operating System:
macOS v10.13.4
Current Filetype: rust
Available Linters: ['cargo', 'rls', 'rustc']
Enabled Linters: ['rls']
Linter Variables:
let g:ale_rust_rls_executable = 'rls'
let g:ale_rust_rls_toolchain = 'stable'
Global Variables:
let g:ale_cache_executable_check_failures = v:null
let g:ale_change_sign_column_color = v:null
let g:ale_command_wrapper = ''
let g:ale_completion_delay = v:null
let g:ale_completion_enabled = 0
let g:ale_completion_max_suggestions = v:null
let g:ale_echo_cursor = 1
let g:ale_echo_msg_error_str = 'Error'
let g:ale_echo_msg_format = '%code: %%s'
let g:ale_echo_msg_info_str = 'Info'
let g:ale_echo_msg_warning_str = 'Warning'
let g:ale_enabled = 1
let g:ale_fix_on_save = 0
let g:ale_fixers = {}
let g:ale_history_enabled = 1
let g:ale_history_log_output = 1
let g:ale_keep_list_window_open = v:null
let g:ale_lint_delay = 200
let g:ale_lint_on_enter = 1
let g:ale_lint_on_filetype_changed = 1
let g:ale_lint_on_save = 1
let g:ale_lint_on_text_changed = 'always'
let g:ale_lint_on_insert_leave = 0
let g:ale_linter_aliases = {}
let g:ale_linters = {'rust': ['rls']}
let g:ale_linters_explicit = 0
let g:ale_list_window_size = v:null
let g:ale_list_vertical = v:null
let g:ale_loclist_msg_format = v:null
let g:ale_max_buffer_history_size = 20
let g:ale_max_signs = v:null
let g:ale_maximum_file_size = v:null
let g:ale_open_list = v:null
let g:ale_pattern_options = {}
let g:ale_pattern_options_enabled = 0
let g:ale_set_balloons = 0
let g:ale_set_highlights = 1
let g:ale_set_loclist = 1
let g:ale_set_quickfix = 0
let g:ale_set_signs = 1
let g:ale_sign_column_always = v:null
let g:ale_sign_error = v:null
let g:ale_sign_info = v:null
let g:ale_sign_offset = v:null
let g:ale_sign_style_error = v:null
let g:ale_sign_style_warning = v:null
let g:ale_sign_warning = v:null
let g:ale_statusline_format = v:null
let g:ale_type_map = {}
let g:ale_use_global_executables = v:null
let g:ale_warn_about_trailing_blank_lines = 1
let g:ale_warn_about_trailing_whitespace = 1
Command History:
(started) ['/usr/local/bin/zsh', '-c', '''rls'' +''stable''']
Using RLS ALE will routinely report / lint only once.
Steps for repeating the bug:
I realize this issue is unhelpful as written, trying to come up with a consistent failing test to post as an example.
I was able to recreate the issue, but I am not totally sure it is with ALE, so sorry if this is the case.
Given a lib with a bin inside of it such as:
.
โโโ Cargo.lock
โโโ Cargo.toml
โโโ src
โย ย โโโ bin
โย ย โย ย โโโ main.rs
โย ย โโโ lib.rs
โโโ target
Making an edit that creates an error (as reported with cargo check) on lib.rs only correctly reports once using RLS as the linter.
Here is a repo where the issue can be reproduced: https://github.com/tbremer/ale_rls_error
It appears if I use the _nightly_ toolchain of Rust and RLS linting works as expected, so this may be an RLS issue, but I'd like to see if we can get the stable version working correctly.
Hi @tbremer
Is this this still an issue with ALE + RLS ?
Sorry, I have not come back in a while and tried to re-create the issue. I don't know.
I'll close this, as this is probably out of date. Someone can open a new issue if there's a problem.
Most helpful comment
It appears if I use the _nightly_ toolchain of Rust and RLS linting works as expected, so this may be an RLS issue, but I'd like to see if we can get the stable version working correctly.