#18 open

Snow leopard Compatibility

Reported by ihower | September 14th, 2009 @ 09:49 AM

It seems not working in snow leopard. "Ack in Project" window always is busy and blank.... :(

Comments and changes to this ticket

  • Trevor Squires

    Trevor Squires September 14th, 2009 @ 10:08 AM

    • State changed from “new” to “open”

    Not sure what could be the source of the problem here.

    I have heard that there are issues with TextMate bundles not working well with Snow Leopard's ruby 1.8.7 install but it works fine on my machine.

    Even so, if you have a version of ruby 1.8.6 on your machine you might want to try setting the TM_RUBY environment variable (in TextMate preferences, under advanced, shell variables) to point to your 1.8.6 install.

    Beyond that there isn't much I can offer because I can't replicate your behaviour here. Obviously, if you find the source of the problem do let me know and I'll merge any patch that solves it.

    Sorry I can't be more helpful.

    Regards, Trevor

  • ihower

    ihower September 14th, 2009 @ 12:32 PM

    Thank you for your help. I think i found the problem and a work-around:

    require '/Applications/TextMate.app/Contents/SharedSupport/Support/lib/osx/plist'

    will fail and no respond, i use Ruby 1.8.6 from MacPorts (/opt/local/bin/ruby)
    So, I just click Textmate.app first, not command line mate, then it will use Mac's build-in Ruby 1.8.7 (/usr/bin/ruby)

  • ihower

    ihower September 14th, 2009 @ 01:06 PM

    After discuss with my friends, we guess the reason is my /opt/local/bin/ruby is 64-bit (i686-darwin10.0.0) and Textmate is 32-bit only app, require a native library will fail... :(
    Mac's build-in Ruby 1.8.7 is 3-way universal binary (x86_64, i386, ppc), so it works.

    Anyway, Thank you very much, Ack-tmbudle is my favorite ;)

  • Brad Greenlee

    Brad Greenlee September 23rd, 2009 @ 03:15 PM

    I'm having the same issue. I've tried both Snow Leopard's 1.8.7 and MacPort's 1.8.6-p368, neither work. When I hit cmd-shift-A, the Ack In Project window comes up blank with a spinner, and stays that way.

    If there's anything I can do to help debug, let me know.

  • Brad Greenlee

    Brad Greenlee September 24th, 2009 @ 10:46 PM

    Found the problem. It was hanging in environment.rb:27, when requiring Support/lib/ui.rb. Specifically, in ui.rb, it is hanging when trying to require osx/plist. I've tried recompiling plist.bundle, but no luck. Interestingly, the test.rb file in the plist source folder hangs if I run under MacPort ruby 1.8.6-p368, but runs fine under Snow Leopard's 1.8.7. Yet, setting TextMate's TM_RUBY to 1.8.7 doesn't fix the issue for me. Then I noticed that Ack In Project uses "#!/usr/bin/env ruby" (as do all other ruby bundles), which for me would be running 1.8.6. I changed that to #!/usr/bin/ruby (1.8.7), and it now works.

  • Ludo van den Boom

    Ludo van den Boom October 14th, 2009 @ 01:00 AM

    I encountered the same problem. Reverting to a previous version of the bundle made it work again (git checkout 50cda12). I do not have the TM_RUBY variable set.

  • Brian Doll

    Brian Doll October 15th, 2009 @ 01:11 PM

    Ditto on the bundle working well with the system default ruby (1.8.7), but not with either 1.8.6 Ruby Enterprise Edition or the latest 1.8.6 version. For those of us using rvm, this can lead to some strange behavior when you forget which ruby version you're using.

    Like Brad, I changed the bundle to use /usr/bin/ruby and all is well again.

  • Preston Marshall

    Preston Marshall October 27th, 2009 @ 09:52 PM

    It's working fine for me on SL.

  • Toby Matejovsky

    Toby Matejovsky February 2nd, 2010 @ 12:31 PM

    The bundle works for me on Snow Leopard with the #!/usr/bin/ruby change as well (I'm also using rvm to manage ruby versions, and that defaults to 1.9.1).

    Also, I needed to use the ack-standalone, as my own ack (TM_ACK set to /opt/local/bin/ack) did not work.

    For those still having trouble, remember to reload the bundle (Bundles -> Bundle Editor -> Reload Bundles) or flush cache and reload (hold down Option when reloading bundles).

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Ack Textmate Bundle