You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When ALE is linting a c++ file, sometimes it lags out vim entirely for around 4 seconds.
Let's say I open a file that has this code
#include<iostream>intmain() {
int test = 1;
for (int i = 0; i < 10; i++) {
std::cout << test + i << std::endl;
}
}
and I make a change to it, vim immediately freezes for around 4 seconds after I exit out of insert mode.
#include<iostream>intmain() {
int test = 1;
for (int i = 0; i < 10; i++) {
std::cout << test + i + i << std::endl;
}
}
:ALEInfo
Current Filetype: cpp
Available Linters: ['cc', 'ccls', 'clangcheck', 'clangd', 'clangtidy', 'clazy', 'cppcheck', 'cpplint', 'cquery', 'cspell', 'flawfinder']
Linter Aliases:
'cc' -> ['gcc', 'clang', 'g++', 'clang++']
Enabled Linters: ['cc']
Ignored Linters: []
Suggested Fixers:
'astyle' - Fix C/C++ with astyle.
'clang-format' - Fix C, C++, C#, CUDA, Java, JavaScript, JSON, ObjectiveC and Protobuf files with clang-format.
'clangtidy' - Fix C/C++ and ObjectiveC files with clang-tidy.
'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.
'uncrustify' - Fix C, C++, C#, ObjectiveC, ObjectiveC++, D, Java, Pawn, and VALA files with uncrustify.
Linter Variables:
" Press Space to read :help for a setting
let g:ale_cpp_cc_executable = 'gcc'
let g:ale_cpp_cc_header_exts = ['h', 'hpp']
let g:ale_cpp_cc_options = '-std=c++23 -Wall -Werror -Wextra -Wshadow -Weffc++ -pedantic'
let g:ale_cpp_cc_use_header_lang_flag = -1
Global Variables:
" Press Space to read :help for a setting
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_disable_lsp = 'auto'
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_info_default_mode = 'preview'
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 = 1
let g:ale_lint_on_filetype_changed = 1
let g:ale_lint_on_insert_leave = 1
let g:ale_lint_on_save = 1
let g:ale_lint_on_text_changed = 'normal'
let g:ale_linter_aliases = {}
let g:ale_linters = {'cpp': ['gcc']}
let g:ale_linters_explicit = 0
let g:ale_linters_ignore = {}
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 = v:null
let g:ale_pattern_options_enabled = v:null
let g:ale_root = {}
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 = 0
let g:ale_sign_error = 'E'
let g:ale_sign_info = 'I'
let g:ale_sign_offset = 1000000
let g:ale_sign_style_error = 'E'
let g:ale_sign_style_warning = 'W'
let g:ale_sign_warning = 'W'
let g:ale_sign_highlight_linenrs = 0
let g:ale_type_map = {}
let g:ale_use_neovim_diagnostics_api = 0
let g:ale_use_global_executables = v:null
let g:ale_virtualtext_cursor = 'all'
let g:ale_warn_about_trailing_blank_lines = 1
let g:ale_warn_about_trailing_whitespace = 1
Command History:
(executable check - success) gcc
(finished - exit code 0) ['/usr/bin/bash', '-c', '''gcc'' -S -x c++ -o /dev/null -iquote ''/home/User'' -std=c++23 -Wall -Werror -Wextra -Wshadow -Weffc++ -pedantic - < ''/tmp/vHothcf/3/program_qoi.cpp''']
<<<NO OUTPUT RETURNED>>>
(finished - exit code 0) ['/usr/bin/bash', '-c', '''gcc'' -S -x c++ -o /dev/null -iquote ''/home/User'' -std=c++23 -Wall -Werror -Wextra -Wshadow -Weffc++ -pedantic - < ''/tmp/vHothcf/4/program_qoi.cpp''']
<<<NO OUTPUT RETURNED>>>
(finished - exit code 0) ['/usr/bin/bash', '-c', '''gcc'' -S -x c++ -o /dev/null -iquote ''/home/User'' -std=c++23 -Wall -Werror -Wextra -Wshadow -Weffc++ -pedantic - < ''/tmp/vHothcf/5/program_qoi.cpp''']
<<<NO OUTPUT RETURNED>>>
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
When ALE is linting a c++ file, sometimes it lags out vim entirely for around 4 seconds.
Let's say I open a file that has this code
and I make a change to it, vim immediately freezes for around 4 seconds after I exit out of insert mode.
:ALEInfo
Beta Was this translation helpful? Give feedback.
All reactions