# Textmate 2 Ruby Run settings fro current directory

**URL:** <https://www.ruby-forum.com/t/textmate-2-ruby-run-settings-fro-current-directory/236407>\
**Category:** Ruby\
**Created:** [September 1, 2013, 1:02pm UTC](https://www.ruby-forum.com/t/textmate-2-ruby-run-settings-fro-current-directory/236407 "2013-09-01T13:02:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![addis\_a](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c4cdca/32.png) [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Post date:** [September 1, 2013, 1:02pm UTC](https://www.ruby-forum.com/t/textmate-2-ruby-run-settings-fro-current-directory/236407/1 "2013-09-01T13:02:19Z")

</div>

I have Ruby 2.0.0 and TextMate 2 playing along nicely, after some  
TM\_RUBY settings from  
[RVM in TextMate 2](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?

---

<div class="post-metadata">

**Author:** ![koos](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/2acd7d/32.png) [@koos](https://www.ruby-forum.com/u/koos)\
**Post date:** [September 2, 2013, 9:26pm UTC](https://www.ruby-forum.com/t/textmate-2-ruby-run-settings-fro-current-directory/236407/2 "2013-09-02T21:26:08Z")

</div>

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.
