WestMichiganRubyTraining / discussion

Create issues on this repository to open discussion threads in the Issue Tracker!
2 stars 0 forks source link

Any experience using custom builds in Sublime Text? #36

Open atkolkma opened 11 years ago

atkolkma commented 11 years ago

I created a custom build in Sublime Text so that I can execute my ruby without switching back to terminal. Everything seems to work perfectly. EXCEPT, when I use require 'json' I get an error saying "no such file to load -- json (LoadError)".

This is the code for my ruby build. Pretty simple.

{ "cmd": ["ruby", "$file"] }

I looked up samples of other ruby builds. All I found was this. But it didn't work at all:

{ "cmd": ["~/.rvm/bin/rvm-auto-ruby", "$file"], "fileregex": "^(...?):([0-9]_):?([0-9]*)", "selector": "source.ruby" }

Any tips?????

billgathen commented 11 years ago

@walsh1kt is our Sublime user, but I'm pretty sure RubyTest is the standard solution for great testing in Sublime.

If you're using RVM (and you should be), make sure to check out the first point under "Additional Features", as well as the Bundler section and the "Known Issues" at the very bottom.

Good luck!