[TxMt] Re: TextMate::UI.request_confirmation fails; Ruby version in bundle scripts
Michael Sheets
mummer at whitefalls.org
Sat Feb 8 09:47:03 UTC 2014
On Feb 8, 2014, at 2:28 AM, Allan Odgaard <mailinglist at textmate.org> wrote:
>> […] go_to_alternate_file.rb […] The first line of the this file is
>> #!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
>> […]
>> Am I missing something?
>
> The commands which call this script do so by using "${TM_RUBY:-ruby}" (effectively ignoring the script’s shebang).
>
> The reason they do that is (as I understand it) intentional, as the Rails bundle may load stuff from the user’s project (for member file queries etc.), and therefor should use the version of ruby that the user normally uses.
I’ve just deployed a change where we now use Ruby 1.8 for all bundle commands that don’t load rails itself. This should solve many of the issues. The commands that do load rails still use TM_RUBY so there are still the problems described by Allan there.
More information about the textmate
mailing list