Skip to content

Autocomplete 'Pattern not found' when using RLS #2130

Closed as not planned
Closed as not planned
@64

Description

@64

Information

VIM version

NVIM v0.3.1
Build type: Release

Operating System: Arch Linux x86_64

What went wrong

Typing anything results in the message: -- Omni completion (^O^N^P) Pattern not found at the bottom of vim. This seems to be an ALE issue and not a RLS issue since the lints seem to be working fine, only the autocomplete is problematic.

Reproducing the bug

Using this ALE config:

Plug 'w0rp/ale'
let g:ale_sign_column_always = 1
let g:ale_set_highlights = 0
let g:ale_lint_on_enter = 0
let g:ale_completion_enabled = 1
let g:ale_rust_rls_toolchain = 'stable'
let g:ale_linters = {
\ 'python': [],
\ 'javascript': [],
\ 'json': [],
\ 'asm': [],
\ 'c': ['gcc'],
\ 'rust': ['rls'],
\}
  1. Download RLS on stable: rustup component add rls-preview
  2. Open a rust file, and start typing some code. Any time the autocomplete popup should be triggered, it gives the error message mentioned above and no popup is displayed at all.

:ALEInfo

 Current Filetype: rust
Available Linters: ['cargo', 'rls', 'rustc']
  Enabled Linters: ['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_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 = 0
let g:ale_command_wrapper = ''
let g:ale_completion_delay = 100
let g:ale_completion_enabled = 1
let g:ale_completion_max_suggestions = 50
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 = 0
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 = 1
let g:ale_lint_on_text_changed = 'always'
let g:ale_linter_aliases = {}
let g:ale_linters = {'c': ['gcc'], 'asm': [], 'json': [], 'rust': ['rls'], 'javascript': [], 'python': []}
let g:ale_linters_explicit = 0
let g:ale_list_vertical = 0
let g:ale_list_window_size = 10
let g:ale_loclist_msg_format = '%code: %%s'
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 = 0
let g:ale_pattern_options = {'.*byteos/.*\.[ch]$': {'ale_linters': {'c': ['gcc']}, 'ale_c_gcc_executable': 'x86_64-elf-gcc', 'ale_c_gcc_options': '-std=gnu11 -Wall -Wextra -Iinclude -ffreestanding -Iinclude/kernel'}}
let g:ale_pattern_options_enabled = v:null
let g:ale_set_balloons = 0
let g:ale_set_highlights = 0
let g:ale_set_loclist = 1
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_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
  Command History:

(started) ['/usr/bin/zsh', '-c', '''rls'' +''stable''']

My full init.vim can be found here.

See also this vi stackexchange question I asked, to no avail.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions