I try upgrading my .vimrc
file. When I open up a Rails application I'm working on I get the following error.
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
The error is thrown from Ale I guess from the following line.
" 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
On the vimrc.bundles
I have the following line.
if g:has_async
Plug 'w0rp/ale'
endif
Is there a reason why ale is not being installed properly?
ale#Lint needs be replaced with ale#Queue(0)
See relevant pull request: https://github.com/thoughtbot/dotfiles/pull/615/files