gpt4 book ai didi

vim - E117 : Unknown function: ale#Lint

转载 作者:行者123 更新时间:2023-12-05 02:14:46 36 4
gpt4 key购买 nike

我尝试升级我的 .vimrc 文件。当我打开我正在处理的 Rails 应用程序时,出现以下错误。

rails_app/config/environments/development.rb                                                                    2,3            Top
Error detected while processing CursorHold Auto commands for "*":
E117: Unknown function: ale#Lint
Press ENTER or type command to continue

错误是从 Ale 抛出的我猜从下面一行。

" ALE linting events
augroup ale
autocmd!

if g:has_async
set updatetime=1000
let g:ale_lint_on_text_changed = 0
autocmd CursorHold * call ale#Lint()
autocmd CursorHoldI * call ale#Lint()
autocmd InsertEnter * call ale#Lint()
autocmd InsertLeave * call ale#Lint()
else
echoerr "The thoughtbot dotfiles require NeoVim or Vim 8"
endif
augroup END

vimrc.bundles 上,我有以下行。

if g:has_async
Plug 'w0rp/ale'
endif

是否存在未正确安装 ale 的原因?

最佳答案

ale#Lint 需要替换为 ale#Queue(0)

查看相关拉取请求: https://github.com/thoughtbot/dotfiles/pull/615/files

关于vim - E117 : Unknown function: ale#Lint,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53073095/

36 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com