Textmate Ruby 1.9.1 and rvm - the facts

Posted about 1 year ago by Philip Ingram

boy, I almost went to macVim because of this error. /me shudders.

Note: this solution appears to work for Mac’s that can’t run in Snow Leopard in full 64 bit mode. Here is my uname on my box:


$ uname -a
Darwin macbook.local 10.2.0 Darwin Kernel Version 10.2.0: Tue Nov  3 10:37:10 PST 2009; root:xnu-1486.2.11~1/RELEASE_I386 i386

Google Bait: Errors i got

So here is the final error i got in the end that brought all of this together


macbook:Bundles nerb$ osascript -e 'tell app "TextMate" to reload bundles' 2010-02-11 09:14:54.925 osascript[91871:903] Error loading /Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types: dlopen(/Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types, 262): no suitable image found. Did find: /Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types: no matching architecture in universal wrapper osascript: OpenScripting.framework - scripting addition "/Library/ScriptingAdditions/Adobe Unit Types.osax" declares no loadable handlers.

You are trying to get RVM, Ruby 1.9.1 and the Textmate w/Ruby on Rails bundle to work.

  • You’ve installed rvm and are using Ruby version 1.9.1 – No steps here, google is your friend.
  • You are getting weird Textmate snippet errors – Things that worked before are now botched. It’s because of the ruby on Rails tmbundle that you’ve yet to update.

Steps to fix

Well, it was another Wayne E. Seguin impromptu script that came through for me. Praise be unto him.

  1. First be sure your textmate is latest version
  1. Then run the script below to make sure that your textmate bundles are up to date (you may have to run it as root depending on your permissions).
    
    #!/usr/bin/env bash

mkdir -p /Library/Application\ Support/TextMate/
cd /Library/Application\ Support/TextMate/

if [[ -d Bundles/.svn ]] ; then
cd Bundles && svn up
else
if [[ -d Bundles ]] ; then
mv Bundles Bundles.old
fi
svn co http://svn.textmate.org/trunk/Bundles
fi

arch -i386 osascript -e ‘tell app “TextMate” to reload bundles’

exit 0

  1. Set a textmate rvm ruby:
    
    rvm 1.9.1 --symlink textmate
  1. Then go to Textmate | Preferences | Advanced | Shell Variables, click the + sign and add this variable (change YOURUSERNAME to your real user name)
    
    TM_RUBY to /Users/YOURUSERNAME/.rvm/bin/textmate
    
  1. Close textmate and re-open it after to be sure everything is correct.

If it doesn’t work:

Perhaps you missed the uname line at the top and you are lucky enough to be running Snow Leopard in a native 64 bit environment, cough prick cough. Well just run this last line of the script without the "arch -i386 " bit.


macbook:Bundles $ osascript -e 'tell app "TextMate" to reload bundles'

If that still doesn’t work:

Perhaps you’ll need a new Ruby on Rails tmbundle.

Follow the instructions to download and when you run the osascript line at the bottom, adjust it to use the ‘arch -i386’ flag as we do in the script. Again, assuming you’ve got a uname similar to mine.

Hope it helps.

Comments

Awesome.

I recently switched to Ruby 1.9.1 with rvm and since I was already up-to-date with my Rails TextMate bundle, I just needed to do the symlink and set the TM_RUBY variable and all was well.

Thanks!

8f5dac3a09b4b8a3d049be5ad0ba11c7 Philip Ingram
Shortly After I wrote this post, Rails should use Ruby 1.9.2-head (now preview, but i can only speak to head). I should revamp this post shortly.
uPSjTMpp
GRun4k Well, actually, a lot of what you write is not quite true !… well, okay, it does not matter:D
vynEGO I envy you. The content and design of your blog is much better than mine. Who made a design for you?!….
2PdA8w Cool:) I would say say it exploded my brain..!!
TextMate supports user-defined commands and modifiable by the user are interpreted by bash or the shell specified with a racket. Orders can be sent to different types of seizures TextMate (the current document, selected text, the current word, etc).
you are lucky enough to be running Snow Leopard in a native 64 bit environment, cough prick cough.
Things that worked before are now botched. It’s because of the ruby on Rails tmbundle that you’ve yet to update.
Well, it was another Wayne E. Seguin impromptu script that came through for me. Praise be unto him.
The fixing steps you have shared are cool.
You point out great error.I like this post so much.
I recently switched Ruby 1.9.1 with RVM and since I’m already up to date with my Rails TextMate bundle, I just have to make symbolic and define variables TM_RUBY and everything was fine.
http://www.QKiMt6vfLbn1bD0zxU9QchzPHO25ZYPy.com
Thanks for the great material.
This is one of the Important post.This is one of the Static post.I am so happy to share my Opinion.Good.
This was really something very special and interesting.
Thanks for sharing such a useful stuff!
Great information, I learned a lot.
That is great that we are able to receive the business loans moreover, it opens up new opportunities.
I completely agree with everything that was said, well put.
Fabulous, just fabulous! J
Thanks a lot for all this code you have give to me. Keep it up!
I was doing a bit of research looking at some other term papers service. and this is the fifth link to the search essay about this good topic as relayed by Google… so you are conforming that you are arrange a free service for them and embellish their traffic. So if you purely support this then you should take the money but if your estimation has dispose at all and you’re against it then you should as the case may be clear away them. But it’s still yours to come to conclusion.
Hey, Nice post you have done on that issue, This is a great topic to sharing with us
Your stuff about this topic is very diverting. I would select the research paper writing services to buy essay and custom written essay about this topic, because that is the good way.
I sought for one who was able to assist me with persuasive essays creating. I have thought about lots of issues, however, I decided to say: "I need someone to write my essay ". It was a proper step.
Peasant job you have done on that problem, This is a great topic to distribution with us
There are quantities of hedges on the career building way. But, the writing service was created to help university students with custom research papers creating.
This kind of content exemplifies the Internet at its finest – and I do not assert this lightly! A true joy to read – is what this content was, and who knows how long it may be before I come across such a pleasure again!
 Innen for å der HIV-positive filippinere kan tilstrekkelig beskyttet, at han eller hun oppfordret spesifikke Institutt kommer fra alle Helse og hans veldige Insurance Commission kl finne med hvorvidt forsikringsselskapene nå vært konstituert med henhold når det kommer til Republic Act 8504 eller muligens mine AIDS Prevention med Kontroll Law.

"For forskere, den bestemte skala gir nesten alle rask kategorisering innen planetens relevans for å biologi, hjelp alle samme måte som kan stellar typer umiddelbart kan fortelle en astronom noe om ofte de størrelse , temperatur, eller lysstyrke på stjerne "

Det er umulig ikke alltid med varsel tips om hvordan god ny hund og / eller katten føler når du gnir under sine haken eller muligens en klø bak ørene. Den eksakte komfort hjelp hengivenhet under konstant berøring og dessuten kjærtegn kan forårsake over alle lykke mens med mindre du er glad du ikke kan svært være sunn, kan du?

Bookmarks submission is a perfect item to optimize you Internet site, but, not a lot of people know a correct way to submit bookmarks online. In spite on that, the social bookmarking submission service would offer its help everytime.
wZ9gYB comment2
Some important information just about this good post is proposed by research paper writing service. So, people would to buy essays or already written essays.
People have an access purchase the essays written or buy essays at the research paper writing service just about this post.
It’s heavy for people to learn though, you need to buy term papers or buy research paper just because a school isn’t the matchless at everything doesn’t mean it can’t be the finest at some things. Essays blogs can contribute more usefull for your handiwork you can also buy essay. But first of all, my thanks to this article, it has a complete angle.