E117:未知功能:ale#Lint

Ste*_*lar 3 vim vim-plugin

我尝试升级我的.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
Run Code Online (Sandbox Code Playgroud)

我猜这个错误是从下面一行中从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
Run Code Online (Sandbox Code Playgroud)

我有vimrc.bundles以下几行。

if g:has_async
  Plug 'w0rp/ale'
endif
Run Code Online (Sandbox Code Playgroud)

ale 未正确安装是否有原因?

小智 5

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

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

  • 此修复导致错误从“ale#Lint”更改为“ale#Queue(0)”。这个补丁对我不起作用 (2认同)