Configuring the SubLime Linter Plugin to use Ruby 1.9 Syntax

I was able to get it to work using the absolute path to my ruby 1.9 executable. I’m using rbenv, so to get the path I ran rbenv which ruby, you might need to put in /usr/local/bin/ruby or /usr/local/bin/ruby19.

This is how my sublimelinter default setting looks like (you can put this into a project-specific file too if you prefer:)

Preferences -> Package Settings -> SublimeLinter -> Settings - User

"sublimelinter_executable_map":
{
    "ruby": "~/.rbenv/versions/1.9.3-p0/bin/ruby"
},

Leave a Comment