[SVN] Re: Patch for RubyMate: 'No such file or directory' when filename cannot be resolved

James Gray james at grayproductions.net
Tue Jun 2 20:23:11 UTC 2009


On Jun 2, 2009, at 2:23 PM, Stonefield wrote:

> This problem emerged again with Rails 2.3.x. I hope I have fixed it  
> this time.
> The actual problem occur if running e.g. a test script with cmd-r.
> Executor looks for the referenced file from current directory, which  
> may be where the file being run is located, where as the output from  
> the script is referring to the project directory.
> The actual_path_name function solves this, where 2 attempts are  
> done. FIrst checks to see if the file referenced is relative to the  
> current directory, if that fails, prefixes the referenced file with  
> the project directory. This is really a better patch than the  
> previous one, but not as pretty.

I've tried to commit your changes.  I had trouble getting the diff to  
work for me, so I had to apply them by hand.  Please double-check my  
work and let me know if I got it right.

Thanks for the fixes.

James Edward Gray II



More information about the textmate-dev mailing list