Open atsalolikhin-spokeo opened 3 years ago
I'm having the same error message on all files with filetype sh. For me, it doesn't seem to depend on the value of set shellcmdflag
. The specific error I'm seeing is
Error detected while processing function <SNR>146_VimCloseCallback[11]..<SNR>146_VimExitCallback[22]..func
tion <SNR>146_VimCloseCallback[11]..<SNR>146_VimExitCallback[15]..<lambda>10[1]..<SNR>140_ExitCallback[28]
..<SNR>139_HandleExit[30]..ale#engine#HandleLocList[15]..ale#engine#FixLocList:
line 16:
E1098: String, List or Blob required
Error detected while processing function <SNR>146_VimCloseCallback:
line 11:
E171: Missing :endif
Snipping the ale
-related output from :scriptnames
:
130: ~/.vim/bundle/ale/autoload/ale/util.vim
131: ~/.vim/bundle/ale/autoload/ale/linter.vim
132: ~/.vim/bundle/ale/ale_linters/sh/bashate.vim
133: ~/.vim/bundle/ale/ale_linters/sh/cspell.vim
134: ~/.vim/bundle/ale/autoload/ale/handlers/cspell.vim
135: ~/.vim/bundle/ale/ale_linters/sh/language_server.vim
136: ~/.vim/bundle/ale/ale_linters/sh/shell.vim
137: ~/.vim/bundle/ale/ale_linters/sh/shellcheck.vim
138: ~/.vim/bundle/ale/autoload/ale/handlers/shellcheck.vim
139: ~/.vim/bundle/ale/autoload/ale/engine.vim
140: ~/.vim/bundle/ale/autoload/ale/command.vim
141: ~/.vim/bundle/ale/autoload/ale/history.vim
142: ~/.vim/bundle/ale/autoload/ale/path.vim
143: ~/.vim/bundle/ale/autoload/ale/lsp_linter.vim
144: ~/.vim/bundle/ale/autoload/ale/handlers/sh.vim
145: ~/.vim/bundle/ale/autoload/ale/semver.vim
146: ~/.vim/bundle/ale/autoload/ale/job.vim
147: ~/.vim/bundle/ale/autoload/ale/filetypes.vim
I've tracked down the error to a specific commit d63f5e6a from six months ago (14 Jaunary 2024), which roughly corresponds to when I began seeing this. The previous commit ebc6718c does not exhibit this error, while all future commits up to the current master (commit a0ad5f93) do.
Oddly, none of the files referenced in the error messag (146: job.vim, 140: command.vim, and 139: engine.vim) appear to have been touched in commit d63f5e6a, so I'm not sure where to proceed from here in tracking down the error.
Information
VIM version
Operating System: macOS Big Sur 11.2.2
What went wrong
I added to my .vimrc:
and now when I am in Vim, I see messages like this at the bottom of my screen:
The error flashes briefly (for like a second) at the bottom of my screen, when I make changes to the file, or every once in a while. It's in red so it's very distracting.
If I remove the
shellcmdflag
setting, the error doesn't flash.Reproducing the bug
set shellcmdflag=-ic
to my .vimrc:ALEInfo