I’ve just installed https://github.com/SublimeLinter/SublimeLinter
and was wondering : it possible by default to switch checking ruby ?
they write that Ruby – syntax checking via ruby -wc but how it’s to be called?
And are there any rails specific addons? didn’t find other…
I’ve just installed https://github.com/SublimeLinter/SublimeLinter and was wondering : it possible by default to switch
Share
I’m not quite sure what you’re asking … but if you’re looking to change SublimeLinter so that it runs something other than
ruby -wc, then you can edit line 10 in the file~/Library/Application Support/Sublime Text 2/Packages/SublimeLinter/sublimelinter/modules/ruby.py.For example, you can take these steps to have SublimeLinter use your gemset’s ruby:
Gomenu in FinderLibraryApplication Support/Sublime Text 2/Packages/SublimeLinter/sublimelinter/modulesruby.pyin Sublime Text 2'executable': 'ruby',to'executable': '/Users/YOUR-USER-NAME/.rvm/bin/rvm-auto-ruby',Update:
I just found out an easier way to accomplish this…
You can change the SublimeLinter settings to have SublimeLinter use your gemset’s ruby by opening the
Sublime Text 2menu, going into Preferences -> Package Settings -> SublimeLinter, and selectingSettings - User. Add this text to the file, save it, and restart Sublime Text 2: