Sublime Forum

ST3 - Ruby build system

#1

I’m looking for opinions on whether ST3 has an in-built RVM-aware build system? I’ve cleaned out a lot of packages and configs to fix a problem relating to running unit tests. Right now I see a Ruby build system option in the menu Tools/Build System/Ruby. When I build from within any ruby file - ST3 resolves the correct Ruby interpreter based on my external RVM settings. This is good.

However there are many ST2 posts suggesting people have to explicitly edit the ST2 file ~/Library/Application Support/Sublime Text 2/Packages/Ruby/Ruby.sublime-build to inject config making it aware of RVM?

I do not have this file in my installation of ST3, I’ve removed it. ST3 still displays a Ruby build system in the menu, and still works perfectly well in resolving ruby version via external RVM settings?

Can someone therefore please clarify this is expected behaviour and the feature is pre canned in ST3? I’m concerned i may have some settings somewhere I can’t see…

0 Likes

#2

The reason is that the package is still there, only it’s tucked away in a zip file with the .sublime-package extension instead of the usual .zip extension. These packages reside in Installed Packages instead of the Packages folder.

1 Like

#3

This is slightly incorrect. Ruby is a default package, so it’s inside the Packages dir of the installation folder (where the binary resides).

You can install “PackageResourceViewer” to easily view and edit (i.e. override) these files.

4 Likes

#4

Thankyou for the replies guys, I’ve located the config and understand why it’s already system-ruby, and inherently RVM-aware. Learned something new. Thanks.

0 Likes