vigo/textmate2-gfm-preview

Failure running "Preview"

Opened this issue · 1 comments

Hi, I'm trying to preview using the bundle for my markdown, but I get the following error:

/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in require': cannot load such file -- bundler/setup (LoadError)
	from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in require'
	from /Users/rachelyen/Library/Application Support/TextMate/Bundles/GFM-Preview.tmbundle/Support/gfm.rb:2:in <main>'

I'm on a mac and I'm using the homebrewed installed version of Ruby. I was reading online maybe it's having more than one version of ruby on my machine that's giving issues?

vigo commented

Hi... according to error message, you are using osx' default ruby. You need to install gems via sudo...

sudo gem install bundler # this is the important part!
cd GFM-Preview.tmbundle/Support/
bundle install --path vendor/bundle
# go on with the rest of README...

can you try it like that?