Closed chrisbloom7 closed 8 years ago
Sorry, I can't provide support for using RVM as I've never used it.
The preview command of this bundle always uses the system Ruby (see shebang in https://github.com/MikeMcQuaid/GitHub-Markdown.tmbundle/blob/master/Support/bin/redcarpet.rb ).
Have you tried installing the gems for system Ruby with the command given in the error message? (If this does not work you might need to do the equivalent of rbenv shell system
in RVM, but unfortunately I’m not an RVM expert either …)
To get this working I needed to temporarily turn off rvm by using:
rvm use system
Then install the gems by using:
sudo /usr/bin/gem install --user redcarpet pygments.rb
I have set my
TM_RUBY
variable set per https://rvm.io/integration/textmate and if I execute`rvm current` # =>
in a ruby document in Textmate I getruby-2.2.3@global
.In my console:
But when I then run "Show Preview" on a Markdown document in TextMate I get the following error in the output window:
If I uninstall the GitHub-Markdown bundle the default Show Preview command works fine.