When check ruby syntax, some errors shown on console.
"~/one/test.rb" 3L, 36C written
syntastic: error: checker output:
warning: parser/current is loading parser/ruby22, which recognizes
warning: 2.2.3-compliant syntax, but you are running 2.2.0.
0.34.2
syntastic: error: checker ruby/rubocop: can't parse version string (abnormal termination?)
Reason
There is some warnings when get rubocop's version:
17:50:13-liubin~/one\ -> rubocop --version
warning: parser/current is loading parser/ruby22, which recognizes
warning: 2.2.3-compliant syntax, but you are running 2.2.0.
0.34.2
17:53:41-liubin~/one\ -> rubocop --version 2>/dev/null
0.34.2
Workaround
Disable warning when get rubocop's version:
# ~/.vim/bundle/syntastic/plugin/syntastic/checker.vim
- let command = a:0 ? a:1 : self.getExecEscaped() . ' --version'
+ let command = a:0 ? a:1 : self.getExecEscaped() . ' --version 2> /dev/null'