Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Kotlin - Error detected while processing function ale#events#SaveEvent #2440

@apemost

Description

@apemost

Information

VIM version

VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Jun 05 2018 21:42:14)
Included patches: 1-1766

Operating System: Ubuntu 18.10

What went wrong

Error detected while processing function ale#events#SaveEvent[13]..ale#Queue[33]..<SNR>231_Lint[26]..ale#engine#RunLinters[14]..<SNR>218
_RunLinter[6]..<SNR>218_RunIfExecutable[26]..ale#linter#GetCommand[5]..ale_linters#kotlin#kotlinc#RunWithImportPaths:
line   14:
E121: Undefined variable: l:command
E116: Invalid arguments for function empty(l:command)
E15: Invalid expression: empty(l:command)

Reproducing the bug

  1. Save a .kt file
  2. Then this happened.

:ALEInfo

 Current Filetype: kotlin
Available Linters: ['kotlinc', 'ktlint', 'languageserver']
  Enabled Linters: ['kotlinc', 'ktlint', 'languageserver']
 Suggested Fixers: 
  'remove_trailing_lines' - Remove all blank lines at the end of a file.
  'trim_whitespace' - Remove all trailing whitespace characters at the end of every line.
 Linter Variables:

let g:ale_kotlin_kotlinc_classpath = ''
let g:ale_kotlin_kotlinc_config_file = '.ale_kotlinc_config'
let g:ale_kotlin_kotlinc_enable_config = 0
let g:ale_kotlin_kotlinc_module_filename = 'module.xml'
let g:ale_kotlin_kotlinc_options = ''
let g:ale_kotlin_kotlinc_sourcepath = ''
let g:ale_kotlin_kotlinc_use_module_file = 0
let g:ale_kotlin_languageserver_executable = 'kotlin-language-server'
 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 = v:null
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 = 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 = 'never'
let g:ale_linter_aliases = {}
let g:ale_linters = {'javascript': ['eslint'], 'python': ['pylint']}
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 = v:null
let g:ale_maximum_file_size = v:null
let g:ale_open_list = v:null
let g:ale_pattern_options = {'\.min\.css$': {'ale_linters': [], 'ale_fixers': []}, '\.min\.js$': {'ale_linters': [], 'ale_fixers': []}}
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 = 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 = '×'
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 = '¤'
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:

(executable check - success) kotlinc

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