E117: 未知函数:ale#Lint

3

我尝试升级我的.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无法正确安装?

看到你也有不同的插件问题,你真的需要检查一下你的'runtimepath' - Ingo Karkat
1个回答

5

2
这个修复导致错误从 ale#Lint 变成了 ale#Queue(0)。这个补丁对我没有起作用。 - Steven Aguilar

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接