Friday, July 27, 2007

So, This is Weird (aka, TextMate doesn’t want to play nice with the other kids)

Warning… Geek stuff ahead. Nothing funny here. Regular goofiness will return Monday, unless I think of something funny this afternoon, in which case, I’ll shovel it right out to the IntarWebs. (Update! Figured out the problem, see below.)

Anyone else who uses the normally delightful TextMate, ever have this problem?

Copy and Paste into or out of TextMate, just stops working.

See the pics below.

In this one I’ve copied some text to the clipboard:




Now we go to Mail.app (or any other app for that matter)

Copy some different text:




Go back to TextMate. Paste. Should be the copy I snagged from within Mail, right? No, not so much. Same text I had earlier in TextMate:




But what happens if we copy some text from TextMate and try to pull it into Mail? (You’ll just have to trust me that I re-copied my snippet of “Hello there!” text.




Couple of caveats:

I use iClip, which kind of mucks around with the normal clipboard process, allowing you to have multiple clipboards. BUT! It wasn’t running when I took the screen grabs. And, I’ve used iClip without too much fuss before. And! It’s like everything works grandly for a while, but then things stop working. A machine restart fixes everything, but that’s annoying and a rather inelegant solution. And! I also use TextExpander, which seems to do some copy/past wizardry to do it’s “auto-complete and then put the cursor in a different spot” mojo. But again, after a restart, everything works perfectly, and at some point in the day, copy and paste in TextMate stops working. Doesn’t make a whole lot of sense to me. And I know TM does its own copy/paste “stuff” with its “Paste from History” geekery. Maybe all three of those things get together in a room and start fighting and TM decides it doesn’t want to play anymore. But it still doesn’t explain why it sometimes works and sometimes doesn’t.

And here is my System Info:

Anyone have any ideas? It’s driving me a little batty. TextMate is one of favorite tools and I’m all sad inside when I can’t use it.


UPDATE:
Seems it’s a bug in the system’s pasteboard server. Details here and here.

Basically, quit everything except the Terminal. Then fire off the following commands in the Terminal:

killall pbs

followed by

nohup /System/Library/CoreServices/pbs &

The first command nukes the pasteboard server process and the second one re-starts it. I recommend quitting the Terminal and also re-launching the Finder. You do that by bringing up the “Force Quit” applications box (Cmd + Option + Escape), highlighting the “Finder” and them smacking the “Relaunch” button. See below:

Whew! Now I can get on with my life.

Jon scribbled this mess on 07/27/07 at 09:16 AM, best we can tell it fits in the category of Regular Post. This many folks had something to say about that, The permanent home of this entry is here: Link

Twitter

    Favorite Entries

    If you are new around here, the following entries have been reasonably well received. You might want to peruse these.

     

    Holy Crap! Look at all this STUFF down here. It's awesome!

     

    Really, I'm glad you made it down here. Almost no one ever comes down here. I'm like in a freaking dungeon down here. I get lonely. But not you. YOU made it all the way to the end of the page. For this I think I've a little crush on you. I don't know, is "love" to strong a word to use in this situation? Well, if it's not "love," then it's very strong "like." I'm totally in like with you for coming down here. You are awesome. Please love me back! I know, I know, I shouldn't be all needy, it's not attractive at all, but you don't know how it is to be stuck down here. Who scrolls all the way to the end of a page anymore these days? Anyway, thanks for shedding some light down here in the depths. I appreciate it. Shoot me an email and I'll send you a dollar, OK?


    ©2005-2008 Jon B. Deal All Rights Reserved. I'm not kidding around here, I know people who know other people who would be willing to beat you up or similarly infringe on your rights, should you happen to infringe on my rights.