|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
TM error editing php in MacOS-X 10.6.1Greetings,
I've run into an extremely strange error while editing a PHP file In TextMate Version 1.5.9 (1510) on 10.6.1. Perhaps someone could give me a clue on what's wrong. When I use CMD-/ to try to insert a comment in my source (or to make an existing line into a comment, or to uncomment an existing comment line) I get the following message inserted into the source code at the point of insertion: env: ruby: No such file or directory Now, I have a suspicion regarding this, but even if I'm right, I have no idea how to fix it. I had tried to follow a process followed for updating Ruby-on-Rails to run in 10.6.1. This process failed in trying to create an instance of ruby-1.8.7-p174. I suspect this process clobbered something that TextMate needs, but I don't know what to suspect or where to look. I can't be certain that the problem was caused by the failed Ruby installation, but I do know that I hadn't noticed it before that event, and I often use this method of commenting and uncommenting in PHP. The upgrade method I used for Ruby is the one at: http://hivelogic.com/articles/compiling-ruby-rubygems-and-rails-on-snow-leopard/ If I echo $PATH, I get: /usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/usr/bin:/bin:/ usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin I have not saved any shell variables in the Textmate preferences. A recommendation on how to proceed would be most appreciated. Thanks, Tom Bajzek _______________________________________________ textmate-dev mailing list textmate-dev@... http://lists.macromates.com/listinfo/textmate-dev |
|
|
Re: TM error editing php in MacOS-X 10.6.1> The upgrade method I used for Ruby is the one at:
> http://hivelogic.com/articles/compiling-ruby-rubygems-and-rails-on-snow-leopard/ I also followed that. > When I use CMD-/ to try to insert a comment in my source (or to make > an existing line into a comment, or to uncomment an existing comment > line) I get the following message inserted into the source code at the > point of insertion: > > env: ruby: No such file or directory It works for me. The command that does all the work is the 'Comment Line / Selection' found in the Source.tmbundle. This command finds the interpreter directly, using #!/usr/bin/env ruby, so it looks like it's the 'env' command that's not finding ruby. Changing the commands first line to #!/usr/local/bin/ruby is likely to work. Or you could follow the suggestions, marked Important: in 8.2 here http://manual.macromates.com/en/shell_commands Hopefully someone else has a better understanding of what may be wrong because I don't see why ruby isn't getting picked up by env. Cheers, Simon _______________________________________________ textmate-dev mailing list textmate-dev@... http://lists.macromates.com/listinfo/textmate-dev |
|
|
Re: TM error editing php in MacOS-X 10.6.1Simon,
I don't see why Ruby is involved. I'm editing PHP here, and have not used TM for anything having to do with Ruby. However, I'll look at your suggestion and see if I can apply that to this problem. Or, am I missing the point that TM is built with Ruby? Thanks, Tom On Nov 7, 2009, at 9:19 AM, Simon Gregory wrote: >> The upgrade method I used for Ruby is the one at: >> http://hivelogic.com/articles/compiling-ruby-rubygems-and-rails-on-snow-leopard/ > > > I also followed that. > >> When I use CMD-/ to try to insert a comment in my source (or to make >> an existing line into a comment, or to uncomment an existing comment >> line) I get the following message inserted into the source code at >> the >> point of insertion: >> >> env: ruby: No such file or directory > > It works for me. > > The command that does all the work is the 'Comment Line / Selection' > found in the Source.tmbundle. This command finds the interpreter > directly, using #!/usr/bin/env ruby, so it looks like it's the 'env' > command that's not finding ruby. Changing the commands first line to > #!/usr/local/bin/ruby is likely to work. Or you could follow the > suggestions, marked Important: in 8.2 here http://manual.macromates.com/en/shell_commands > > Hopefully someone else has a better understanding of what may be wrong > because I don't see why ruby isn't getting picked up by env. > > Cheers, > Simon > > _______________________________________________ > textmate-dev mailing list > textmate-dev@... > http://lists.macromates.com/listinfo/textmate-dev _______________________________________________ textmate-dev mailing list textmate-dev@... http://lists.macromates.com/listinfo/textmate-dev |
|
|
Re: TM error editing php in MacOS-X 10.6.1> I don't see why Ruby is involved. I'm editing PHP here, and have not
> used TM for anything having to do with Ruby. What you're editing won't matter, what your command is written it does. Reading http://manual.macromates.com/en/commands may help you understand how commands work. _______________________________________________ textmate-dev mailing list textmate-dev@... http://lists.macromates.com/listinfo/textmate-dev |
| Free embeddable forum powered by Nabble | Forum Help |