0

代码命令:

~/.vimrc

 91 " Run NeoMake on read and write operations
 92 autocmd! BufReadPost,BufWritePost * Neomake
 93
 94 call neomake#configure#automake('w')
 95 let g:neomake_open_list = 2
 96 let g:neomake_ruby_enabled_makers = ['rubocop']

测试.rb

def

错误信息

Neomake: rubocop: unexpected output on stderr: /Users/martins/.rvm/rubies/ruby-2.4.0/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:68:in
`require': 
incompatible library version - 
gems/jaro_winkler-1.5.1/lib/jaro_winkler/jaro_winkler_ext.bundle (LoadError)
^Ifrom /Users/martins/.rvm/rubies/ruby-2.4.0/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:68:in `require'
^Ifrom gems/jaro_winkler-1.5.1/lib/jaro_winkler.rb:6:in `<top (required)>'
^Ifrom core_ext/kernel_require.rb:68:in `require'

(PS 直接在文件上运行 rubocop 可以正常工作。 $ rubocop /tmp/test.rb=> OK)

4

0 回答 0