validate-on-save.tmbundle icon indicating copy to clipboard operation
validate-on-save.tmbundle copied to clipboard

env: ruby\r: No such file or directory

Open JonasNielsen opened this issue 14 years ago • 2 comments

Hi sxtxixtxcxh,

Thank you creating this great bundle! I've run into some issues with it though. I'm consistently getting env: ruby\r: No such file or directory.

Textmate is configured to integrate with RVM (http://beginrescueend.com/integration/textmate/)

puts RUBY_DESCRIPTION gives me: ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-darwin10.6.0]

Shell variables:

PATH=/usr/local/bin/:/usr/bin:/bin:/usr/sbin:/sbin
TM_RUBY=/Users/Jonas/.rvm/bin/textmate_ruby

Running Textmate Version 1.5.10 (1631) with the most recent version of validate-on-save.tmbunlde (commit 612e760c0cb5eca61ef789463632d17eff17655b)

Thanks in advance!

JonasNielsen avatar Sep 08 '11 08:09 JonasNielsen

That's quite weird. Does ruby otherwise work with TextMate, like in cmd+R?

It seems from the error at least that the ruby binary filename string it's trying to execute ends with a carriage return (\r). Maybe dig around in that textmate_ruby binary generated by RVM to see what you can find.

jimeh avatar Sep 09 '11 07:09 jimeh

Yes, ruby works fine with TextMate when running files. I'm not sure what you mean by "it's trying to execute ends with a carriage return (\r)"?

Have anyone successfully used this bundle with Textmate configured with RVM?

JonasNielsen avatar Sep 20 '11 07:09 JonasNielsen