Forum: Ruby Textmate 2 Ruby Run settings fro current directory

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
1efbf6f5ea49f73c1472229b61cc6592?d=identicon&s=25 Koos Brandt (koos)
on 2013-09-01 13:02
I have Ruby 2.0.0 and TextMate 2 playing along nicely, after some
TM_RUBY settings from
http://hiltmon.com/blog/2013/01/16/rvm-in-textmate-2/.

However

I have

/Users/koos/Developments/RubyDevs/RubyTests/RubyLearn/Test1.rb and
/Users/koos/Developments/RubyDevs/RubyTests/RubyLearn/Test2.rb

Test1.rb has File.open("Test2.rb")

In TM 1.5 this worked, whether I open TM at the RubyDevs levels and
drill down, or if I open TM at the RubyLearn level.

In TM2 it gets "no such file or directory" if I open at RubyDevs level
but is ok if I open at RubyLearn level.

It is also OK if I change to

File.open("/Users/koos/Developments/RubyDevs/RubyTests/RubyLearn/Test2.rb")

This is clearly a settings issue of some sorts.

Any advise on this?
1efbf6f5ea49f73c1472229b61cc6592?d=identicon&s=25 Koos Brandt (koos)
on 2013-09-02 21:26
I have done some testing to show what happens. The pictures in the
attached word doc shows how TM1.5 and TM2.0 treat dir.pwd differently,
whilst the source code is exactly the same.

I trying to understand if this is a setting issue, or a feature, or a
bug.
This topic is locked and can not be replied to.