SublimeLinter / SublimeLinter-rubocop

SublimeLinter 3 plugin for Ruby, using rubocop.
MIT License
159 stars 40 forks source link

ruby: invalid option --format #70

Closed maprihoda closed 4 years ago

maprihoda commented 4 years ago

With the debug option set to true, the console output shows:

SublimeLinter: #3 linter.py:786       WARNING: rubocop output:
ruby: invalid option --format  (-h will show valid options) (RuntimeError)

and the linter doesn't work, obviously.

ruby 2.7.0p0 latest SublimeLinter

kaste commented 4 years ago

If you already have "debug" on, what's the command SublimeLinter is running here? Does it look sane?

maprihoda commented 4 years ago
  /home/user/code/ruby/test-app  (working dir)
  $ cat app/models/user.rb | /home/user/.rbenv/shims/ruby --format emacs --force-exclusion --stdin /home/user/code/ruby/test-app/app/models/user.rb

SublimeLinter: #2 linter.py:786       WARNING: rubocop output:
ruby: invalid option --format  (-h will show valid options) (RuntimeError)
kaste commented 4 years ago

I don't see how you'd get that command without changing the settings? Are you sure on the latest version of this plugin?

Is there anything else in the debug output of interest?

maprihoda commented 4 years ago

resolved, see

Thanks for you help.

kaste commented 4 years ago

💐