After the recent upgrade it seems that TextMate and Ruby are no longer friends.
Are you seeing errors like:
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require’: /Applications/TextMate.app/Contents/SharedSupport/Support/lib/shelltokenize.rb:74: invalid multibyte escape: /[^\w_\-\+=\/\x7F-\xFF]/ (SyntaxError) from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require’ from /Applications/TextMate.app/Contents/SharedSupport/Bundles/Subversion.tmbundle/Support/format_status.rb:4:in `
‘
I think I have a more permanent fix this time. If you read my previous post you sill see that the moving the current Ruby link is no longer working. Also, if you set the TM_RUBY variable, this too does not fix the problem.
Todays workaround is to update the PATH environment variable within TextMate to include Ruby 1.8 fist in the list.
To do this:
- Open TextMate
- Open the preferences pane TextMate -> Preferences
- Select the Advanced tab
- Select Shell Variables
- Edit the PATH variable. Add to the beginning
- /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin:
- Done.
Yosemite Update
See https://hootbah.co.uk/2014/10/22/textmate-1-on-yosemite/
thanks for that. worked for me. my version of TextMate doesn’t have an ‘Advanced’ tab, but I found the right place in the ‘Variables’ tab.
glad I saved your blog from the last such issue in October!
any insights on fixing this in OS X Yosemite? i used your tips before to fix this in Mavericks, but this won’t work for 10.10 it seems. thanks.
OS X Yosemite is still in beta. Once it has been released I can take a look at the problem. There will most likely be a ruby version problem.
I’ve posted some information on how to work round this problem on Yosemite
https://hootbah.co.uk/2014/10/22/textmate-1-on-yosemite/