:RuboCop makes code window blank
Hey,
I have a strange issue with the new version of the vim-rubocop plugin. Now when I run the :RuboCop command the code window gets cleared (code is not deleted, window is just blank).
My test code:
class TestRubocop
def method
end
end
Sometimes I get proper warnings, but most of the time I get something like this (notice the error in the column & row):
/Users/twojcik/playground/1.9.3/test_rubocop.rb:1|1 error| C: Missing top-level class documentation comment.
/Users/twojcik/playground/1.9.3/test_rubocop.rb:1|1 error| C: Missing utf-8 encoding comment.
What I use:
- MacVim 7.4.52 (reproduced the issue in "normal" Vim)
- ruby 1.9.3p484
- rubocop gem (0.21.0, 0.12.0)
Before I've updated the vim-rubocop everything was fine - that's why I assume it can be the plugin's fault.
Hi.
I was not able to reproduce the problem.
I always got proper warnings following:
test_rubocop.rb|1 col 1| C: Missing top-level class documentation comment.
test_rubocop.rb|1 col 1| C: Missing utf-8 encoding comment.
What I use:
- MacVim 7.4.52
- ruby 1.9.3p484 (use RVM)
- rubocop gem (0.21.0, 0.12.0)
- vim-rubocop plugin (latest version d3caa5d4271d4e07bc981d5e7b36988b6d423e5f)
What I did:
-
Open the
test_rubocop.rbusing MacVim.$ mvim test_rubocop.rb -
Run the
:RuboCopcommand.
Hmm it now works fine for me (reinstalled everything). However do you think that this augroup could be the issue?
autocmd FileType ruby
\ if expand("%") =~# '_spec\.rb$' |
\ compiler rspec | setl makeprg=rspec\ $*|
\ else |
\ compiler ruby | setl makeprg=ruby\ -wc\ \"%:p\" |
\ endif