I'm getting the message "interpreter failed: No such file or directory" when I try to use bundle commands that are written in Ruby, including commenting, HTML's "Convert selection to entities" and so on.
I've verified that /usr/bin/env and /usr/bin/ruby are functioning properly outside of Textmate, and that the paths within the bundle scripts are correct (mostly using /usr/bin/env ruby).
I've also tried adding a ~/.MacOSX/environment.plist file with my PATH information, but that doesn't seem to have any effect either (did make sure to log out.
I also deleted the Textmate.app package and downloaded the latest version; no joy.
Any other ideas on how to get this working again? It just stopped sometime yesterday morning and it's driving me nuts!
-chris
On 26 Oct 2007, at 08:44, Chris Yates wrote:
I'm getting the message "interpreter failed: No such file or directory" when I try to use bundle commands that are written in Ruby, including commenting, HTML's "Convert selection to entities" and so on.
Sounds like you already did, but make sure you read http:// macromates.com/textmate/manual/shell_commands#search_path
Also try putting
which ruby
And
echo $TM_RUBY
on a line in a TM document and pressing ⌃R to see the result.
On 10/26/07 9:50 AM, "Ciarán Walsh" ciawal@gmail.com wrote:
On 26 Oct 2007, at 08:44, Chris Yates wrote:
I'm getting the message "interpreter failed: No such file or directory" when
I try to use bundle commands that are written in Ruby, including commenting,
HTML's "Convert selection to entities" and so on.
Sounds like you already did, but make sure you read http://macromates.com/textmate/manual/shell_commands#search_path
Yup, I've looked at that page, where I got the environment.plist tip from. My path looks like so:
/bin:/sbin:/usr/bin:/usr/sbin:/sw/bin:/usr/local/bin:/opt/gnome-2.14/bin:/op t/local/bin
From my the /etc/profile + .bash_profile PATHs
Also try putting
which ruby
And
echo $TM_RUBY
on a line in a TM document and pressing ⌃R to see the result.
I get
/usr/bin/ruby
And no result from echo $TM_RUBY
-chris
On 26 Oct 2007, at 08:57, Chris Yates wrote:
Also try putting
which ruby
And
echo $TM_RUBY
on a line in a TM document and pressing ⌃R to see the result.
I get
/usr/bin/ruby
And no result from echo $TM_RUBY
Can you also try checking env in the same way, e.g. with
#!/usr/bin/env sh echo foo
Select both lines and do ⌃R from TM
On 10/26/07 10:07 AM, "Ciarán Walsh" ciawal@gmail.com wrote:
Can you also try checking env in the same way, e.g. with
#!/usr/bin/env sh echo foo
Select both lines and do ⌃R from TM
If I select both lines I get:
#!/usr/bin/env sh echo foointerpreter failed: No such file or directory
If I just select the second line I get
echo foofoo
If I do command-R instead of ^R, it returns foo.
-chris
On 26 Oct 2007, at 08:57, Chris Yates wrote:
My path looks like so:
/bin:/sbin:/usr/bin:/usr/sbin:/sw/bin:/usr/local/bin:/opt/ gnome-2.14/bin:/op t/local/bin
Did you check this from inside TM? i.e. with echo $PATH ⌃R
On 10/26/07 10:19 AM, "Ciarán Walsh" ciawal@gmail.com wrote:
Did you check this from inside TM? i.e. with echo $PATH ⌃R
Yeah, that first path was from the shell... Here's what TM has for its path:
/Applications/TextMate.app/Contents/SharedSupport/Support/bin/CocoaDialog.ap p/Contents/MacOS:/bin:/sbin:/usr/bin:/usr/sbin:/sw/bin:/usr/local/bin:/opt/g nome-2.14/bin:/opt/local/bin:/Applications/TextMate.app/Contents/SharedSuppo rt/Support/bin
On 26 Oct 2007, at 09:22, Chris Yates wrote:
Yeah, that first path was from the shell... Here's what TM has for its path:
/Applications/TextMate.app/Contents/SharedSupport/Support/bin/ CocoaDialog.ap p/Contents/MacOS:/bin:/sbin:/usr/bin:/usr/sbin:/sw/bin:/usr/local/ bin:/opt/g nome-2.14/bin:/opt/local/bin:/Applications/TextMate.app/Contents/ SharedSuppo rt/Support/bin
Well, the error message you are seeing is from the shell not being able to find the interpreter which is in the command shebang, so if you are having issues with commands that are using /usr/bin/env then that’s what can’t be found – however it does seem to be in the path, so I am not really sure what is going on here. Possibly you recently added something to your shell startup files which is causing the problems?
Well, the error message you are seeing is from the shell not being able to find the interpreter which is in the command shebang, so if you are having issues with commands that are using /usr/bin/env then that¹s what can¹t be found however it does seem to be in the path, so I am not really sure what is going on here. Possibly you recently added something to your shell startup files which is causing the problems?
I figured that was the problem, but I can run ruby scripts from the command line using /usr/bin/env ruby, and I've also tried editing the script in the bundle, replacing /usr/bin/env ruby with /usr/bin/ruby
I haven't made any changes to my bash files lately either, which has me perplexed.
On 26/10/2007, at 18:36, Chris Yates wrote:
[...]
I figured that was the problem, but I can run ruby scripts from the command line using /usr/bin/env ruby, and I've also tried editing the script in the bundle, replacing /usr/bin/env ruby with /usr/bin/ruby
I haven't made any changes to my bash files lately either, which has me perplexed.
The error is indicative of not finding /usr/bin/env -- PATH and similar doesn’t really matter here.
So Q do you have /usr/bin/env and are you using Tiger (Panther did not support arguments for execv interpreters, so likely on a Panther system it could fail with such error)?
On 10/26/07 12:47 PM, "Allan Odgaard" throw-away-2@macromates.com wrote:
On 26/10/2007, at 18:36, Chris Yates wrote:
[...]
I figured that was the problem, but I can run ruby scripts from the command line using /usr/bin/env ruby, and I've also tried editing the script in the bundle, replacing /usr/bin/env ruby with /usr/bin/ruby
I haven't made any changes to my bash files lately either, which has me perplexed.
The error is indicative of not finding /usr/bin/env -- PATH and similar doesn¹t really matter here.
So Q do you have /usr/bin/env and are you using Tiger (Panther did not support arguments for execv interpreters, so likely on a Panther system it could fail with such error)?
Allan, I'm running 10.4.10 (upgraded last night from 10.4.8 to see if it would fix the problem - it didn't). It seems that /usr/bin/env works:
which env /usr/bin/env
/usr/bin/env ruby -e 'puts "Foo"' Foo
-chris
On 26/10/2007, at 19:00, Chris Yates wrote:
[...] Allan, I'm running 10.4.10 (upgraded last night from 10.4.8 to see if it would fix the problem - it didn't). It seems that /usr/bin/env works:
If you haven’t already, try reboot your system. Also try from a new user account.
On 10/26/07 1:10 PM, "Allan Odgaard" throw-away-2@macromates.com wrote:
On 26/10/2007, at 19:00, Chris Yates wrote:
[...] Allan, I'm running 10.4.10 (upgraded last night from 10.4.8 to see if it would fix the problem - it didn't). It seems that /usr/bin/env works:
If you haven¹t already, try reboot your system. Also try from a new user account.
I get the same errors from other user accounts, and after reboot.