#14 new
Derek Kastner

Ruby 1.9.1 Compatibility

Reported by Derek Kastner | February 6th, 2009 @ 06:31 PM

I am running Ruby 1.9.1. When I run ack in project, I get this error message:

/Applications/TextMate.app/Contents/SharedSupport/Support/lib/osx/plist.bundle: warning: already initialized constant EPOCH /Users/dkastner/Library/Application Support/TextMate/Pristine Copy/Bundles/Ack In Project.tmbundle/Support/lib/search_dialog.rb:10:in to_plist': An object in the argument tree could not be converted (ArgumentError) from /Users/dkastner/Library/Application Support/TextMate/Pristine Copy/Bundles/Ack In Project.tmbundle/Support/lib/search_dialog.rb:10:inshow' from /Users/dkastner/Library/Application Support/TextMate/Pristine Copy/Bundles/Ack In Project.tmbundle/Support/environment.rb:93:in show_search_dialog' from /tmp/temp_textmate.5l8nxo:3:in'

I investigated it a little bit, but didn't get anywhere. I updated the osx-plist gem to get it working with 1.9.1. However, installing the compatible gem didn't help. I then noticed that TextMate seems to be using its own plist.bundle in TextMate.app/Contents/SharedSupport/Support/lib/osx/ but I wasn't sure how or if I can turn the plist gem into a TM bundle.

The master branch of the osx-plist project on github has my 1.9.1 fixes. http://github.com/kballard/osx-p...

Comments and changes to this ticket

  • Trevor Squires

    Trevor Squires February 8th, 2009 @ 05:34 PM

    Hrm...

    I think this is something you need to bring up on the textmate mailing list - http://macromates.com/community - because it's standard practice for ruby scripts to use the plist format as in interchange with the dialog guis in TM.

    If you happen to have your ruby 1.8 install still handy I'm pretty sure you can set TM_RUBY to point to that.

  • Eric Harris-Braun

    Eric Harris-Braun June 7th, 2011 @ 06:27 AM

    • Milestone order changed from “0” to “0”

    I'm getting the same error. I tried following these instructions which seemed to work for some people, but didn't work for me:

    http://keep12on.com/2010/04/02/ack-in-project-textmate-bundle-fails...

  • anoiaque

    anoiaque May 24th, 2012 @ 07:17 AM

    Get the same problem.
    I want TextMate TM_RUBY to point to my rbenv current ruby version (for run a test ...) but it make Ack fails with the same error.
    I solved it by changing the Ack bundle command to use default ruby under /usr/bin :

    COPY/PASTE in Ack bundle command :

    /usr/bin/env ruby <<"[RUBY]" -rcgi require ENV['TM_BUNDLE_SUPPORT'] + '/environment.rb'
    AckInProject.show_search_dialog do |search_options|
    AckInProject.present_search(search_options) end
    [RUBY]

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

Pages