Reputation: 604
i've installed BeautifyRuby in my Sublime Text 2 (running OS X Yosemite 10.10), but is not working, I receive this message when I try to cmd + ctrl + k:
Error: invalid output. Check your ruby interpreter settings
I've changed, as suggested https://github.com/CraigWilliams/BeautifyRuby , the sublime-settings file with:
"ruby": "/Users/alessiogastaldo/.rbenv/bin/ruby"
and also using the specific version:
"ruby": "/Users/alessiogastaldo/.rbenv/versions/1.8.7-p371/bin/ruby"
but with no success.
I've read the different solutions proposed (like https://github.com/CraigWilliams/BeautifyRuby/issues/52) but nothing works.
Anyone do know how to solve this?
Upvotes: 0
Views: 500
Reputation: 951
I had the same problem too. I solved with this:
which ruby
."/home/user/.rbenv/shims/ruby"
Preferences > Package Settings > BeautyfyRuby > Settings Default
."ruby": "/home/user/.rbenv/shims/ruby",
You will need to install the htmlbeautifier gem
.
gem install htmlbeautifier
It works for me.
Upvotes: 1