Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Snow leopard Compatibility

#18

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

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

State: open
Milestone: none
Assigned to: Trevor Squires Trevor Squires

Activity

  1. Trevor Squires
    Trevor Squires
    • 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

    September 14th, 2009 @ 10:08 AM

  2. ihower
    ihower

    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)

    September 14th, 2009 @ 12:32 PM

  3. ihower
    ihower

    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 ;)

    September 14th, 2009 @ 01:06 PM

  4. Brad Greenlee
    Brad Greenlee

    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.

    September 23rd, 2009 @ 03:15 PM

  5. Brad Greenlee
    Brad Greenlee

    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.

    September 24th, 2009 @ 10:46 PM

  6. Ludo van den Boom
    Ludo van den Boom

    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.

    October 14th, 2009 @ 01:00 AM

  7. Brian Doll
    Brian Doll

    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.

    October 15th, 2009 @ 01:11 PM

  8. Preston Marshall
    Preston Marshall

    It's working fine for me on SL.

    October 27th, 2009 @ 09:52 PM

  9. Toby Matejovsky
    Toby Matejovsky

    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).

    February 2nd, 2010 @ 12:31 PM

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.