代码之家  ›  专栏  ›  技术社区  ›  Steven Aguilar

E117:未知函数:ale#Lint

  •  1
  • Steven Aguilar  · 技术社区  · 7 年前

    .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
    

    1 回复  |  直到 7 年前
        1
  •  3
  •   Lex.Bartnicki    7 年前
    推荐文章