Forum: Ruby Textmate 2 Ruby Run settings fro current directory

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.
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.