Information
VIM version
VIM - Vi IMproved 8.2 (2019 Dec 12, compiled May 12 2020 02:37:13)
Included patches: 1-716
Operating System: Linux (Debian bullseye/sid)
What went wrong
Constantly get these errors after https://github.com/dense-analysis/ale/commit/fa3a927ca3e587e42aed187430c069cca578a6ae
E716: Key not present in Dictionary: body.displayString, "\n")[0])
E116: Invalid arguments for function split(a:response.body.displayString, "\n")[0])
E116: Invalid arguments for function ale#cursor#TruncatedEcho
Note that this happens with either rls or rust-analyzer (two different LSPs for Rust) - I have attached the rls log only.
Does not happen when downgrading to 9894e925539bb65c875fa8c67c9e2ddc4d5a17b1 (the commit before "Display hover information on CursorHold" was merged).
I can also stop it by removing the LSP linters with let b:ale_linters = { "rust": { ["cargo"] }, or by ALEDisable obviously.
Reproducing the bug
- Install a rust-analyzer binary to your
$PATH
- Download and open a rust file (e.g. https://raw.githubusercontent.com/BurntSushi/ripgrep/master/crates/cli/src/lib.rs)
- Position cursor somewhere in the code
:ALEInfo
Collapsed
Current Filetype: rust
Available Linters: ['analyzer', 'cargo', 'rls', 'rustc']
Enabled Linters: ['cargo', 'rls']
Suggested Fixers:
'remove_trailing_lines' - Remove all blank lines at the end of a file.
'rustfmt' - Fix Rust files with Rustfmt.
'trim_whitespace' - Remove all trailing whitespace characters at the end of every line.
Linter Variables:
let g:ale_rust_cargo_avoid_whole_workspace = 1
let g:ale_rust_cargo_check_all_targets = 0
let g:ale_rust_cargo_check_examples = 0
let g:ale_rust_cargo_check_tests = 0
let g:ale_rust_cargo_clippy_options = ''
let g:ale_rust_cargo_default_feature_behavior = 'default'
let g:ale_rust_cargo_include_features = ''
let g:ale_rust_cargo_use_check = 1
let g:ale_rust_cargo_use_clippy = 0
let g:ale_rust_ignore_error_codes = []
let g:ale_rust_ignore_secondary_spans = 0
let g:ale_rust_rls_config = {}
let g:ale_rust_rls_executable = 'rls'
let g:ale_rust_rls_toolchain = ''
let g:ale_rust_rustfmt_executable = 'rustfmt'
let g:ale_rust_rustfmt_options = ''
Global Variables:
let g:ale_cache_executable_check_failures = v:null
let g:ale_change_sign_column_color = 0
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 = 1
let g:ale_fixers = {}
let b:ale_fixers = {'rust': ['rustfmt']}
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 = 0
let g:ale_lint_on_filetype_changed = 1
let g:ale_lint_on_insert_leave = 0
let g:ale_lint_on_save = 0
let b:ale_lint_on_save = 1
let g:ale_lint_on_text_changed = 'never'
let g:ale_linter_aliases = {}
let g:ale_linters = {}
let b:ale_linters = {'rust': ['rls', 'cargo']}
let g:ale_linters_explicit = 0
let g:ale_list_vertical = v:null
let g:ale_list_window_size = v:null
let g:ale_loclist_msg_format = v:null
let g:ale_lsp_root = {}
let g:ale_max_buffer_history_size = 20
let g:ale_max_signs = -1
let g:ale_maximum_file_size = v:null
let g:ale_open_list = v:null
let g:ale_pattern_options = v:null
let g:ale_pattern_options_enabled = v:null
let g:ale_set_balloons = 0
let g:ale_set_highlights = 1
let g:ale_set_loclist = 0
let g:ale_set_quickfix = 0
let g:ale_set_signs = 1
let g:ale_sign_column_always = 1
let g:ale_sign_error = '✖'
let g:ale_sign_info = 'ℹ'
let g:ale_sign_offset = 1000000
let g:ale_sign_style_error = '➤'
let g:ale_sign_style_warning = 'âš '
let g:ale_sign_warning = 'âš '
let g:ale_sign_highlight_linenrs = 0
let g:ale_statusline_format = v:null
let g:ale_type_map = {}
let g:ale_use_global_executables = v:null
let g:ale_virtualtext_cursor = 0
let g:ale_warn_about_trailing_blank_lines = 1
let g:ale_warn_about_trailing_whitespace = 1
LSP Error Messages:
(Errors for rls)
invalid value: integer -1, expected u64
invalid value: integer -1, expected u64
Command History:
(finished - exit code 101) ['/bin/bash', '-c', 'cd ''/home/nl/workspace/rust/testeroni'' && cargo check --frozen --message-format=json -q']
<<
To learn more, run the command again with --verbose.
<<
(started) ['/bin/bash', '-c', '''rls''']
(finished - exit code 0) ['/bin/bash', '-c', '''rustfmt'' < ''/tmp/vp2XANM/13/dot_formatter.rs''']
(finished - exit code 101) ['/bin/bash', '-c', 'cd ''/home/nl/workspace/rust/testeroni'' && cargo check --frozen --message-format=json -q']
<<
To learn more, run the command again with --verbose.
<<
(finished - exit code 0) ['/bin/bash', '-c', '''rustfmt'' < ''/tmp/vp2XANM/14/dot_formatter.rs''']
(finished - exit code 101) ['/bin/bash', '-c', 'cd ''/home/nl/workspace/rust/testeroni'' && cargo check --frozen --message-format=json -q']
<<
To learn more, run the command again with --verbose.
<<
(finished - exit code 0) ['/bin/bash', '-c', '''rustfmt'' < ''/tmp/vp2XANM/15/dot_formatter.rs''']
(finished - exit code 101) ['/bin/bash', '-c', 'cd ''/home/nl/workspace/rust/testeroni'' && cargo check --frozen --message-format=json -q']
<<
To learn more, run the command again with --verbose.
<<
(finished - exit code 0) ['/bin/bash', '-c', '''rustfmt'' < ''/tmp/vp2XANM/16/dot_formatter.rs''']
(finished - exit code 101) ['/bin/bash', '-c', 'cd ''/home/nl/workspace/rust/testeroni'' && cargo check --frozen --message-format=json -q']
<<
To learn more, run the command again with --verbose.
<<
(finished - exit code 0) ['/bin/bash', '-c', '''rustfmt'' < ''/tmp/vp2XANM/19/dot_formatter.rs''']
(finished - exit code 101) ['/bin/bash', '-c', 'cd ''/home/nl/workspace/rust/testeroni'' && cargo check --frozen --message-format=json -q']
<<
To learn more, run the command again with --verbose.
<<
(finished - exit code 0) ['/bin/bash', '-c', '''rustfmt'' < ''/tmp/vp2XANM/20/dot_formatter.rs''']
(finished - exit code 0) ['/bin/bash', '-c', '''rustfmt'' < ''/tmp/vp2XANM/21/dot_formatter.rs''']
(finished - exit code 0) ['/bin/bash', '-c', '''rustfmt'' < ''/tmp/vp2XANM/22/dot_formatter.rs''']
(finished - exit code 0) ['/bin/bash', '-c', '''rustfmt'' < ''/tmp/vp2XANM/23/dot_formatter.rs''']
(finished - exit code 101) ['/bin/bash', '-c', 'cd ''/home/nl/workspace/rust/testeroni'' && cargo check --frozen --message-format=json -q']
<<
To learn more, run the command again with --verbose.
<<
(started) ['/bin/bash', '-c', '''rls''']
(finished - exit code 101) ['/bin/bash', '-c', 'cd ''/home/nl/workspace/rust/testeroni'' && cargo check --frozen --message-format=json -q']
<<
To learn more, run the command again with --verbose.
<<
(started) ['/bin/bash', '-c', '''rls''']