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.

Ruby 1.9.1 Compatibility

#14

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

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

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

Activity

  1. Trevor Squires
    Trevor Squires

    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.

    February 8th, 2009 @ 05:34 PM

  2. Eric Harris-Braun
    Eric Harris-Braun
    • 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...

    June 7th, 2011 @ 06:27 AM

  3. anoiaque
    anoiaque

    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]

    May 24th, 2012 @ 07:17 AM

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.