SublimeLinter / SublimeLinter-rubocop

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

Linter breaks due to deprecated/changed executable_path #51

Closed martinbohman closed 6 years ago

martinbohman commented 6 years ago

Previously self.executable_path started returning a list which prompted this issue and change: https://github.com/SublimeLinter/SublimeLinter/issues/640 https://github.com/SublimeLinter/SublimeLinter-rubocop/pull/47

However these recent changes deprecated the use of self.executable_path which now just returns self.executable: https://github.com/SublimeLinter/SublimeLinter/pull/1194 https://github.com/SublimeLinter/SublimeLinter/pull/1241

This crashes the linter:

  File "/Users/m/Library/Application Support/Sublime Text 3/Packages/SublimeLinter-ruby/linter.py", line 49, in cmd
    command = self.executable_path + ['-S']
TypeError: Can't convert 'list' object to str implicitly