I am unable to use the File/New from Template/Python/* menu item, or to create a new file in an open project, by any of the available means (application File menu, control-click in project drawer, use gear icon menu). I gather, from following several different Google searches, that my problem(s) has/have something to do with the search path that Textmate is using to look for the template files, but I can find no information regarding what I have to change or how I have to change it to make the correct path(s) available to TM.
I know that the Python.tmbundle file lives in "/Library/Application Support/TextMate/Bundles/", but when I add that directory to my PATH in ~/.bash_profile, that doesn't change anything.
I would be really, really grateful for a simple "do it this way" solution to my problem.
Thanks.
Richard
On 1. Apr 2007, at 20:34, Richard Blumberg wrote:
I am unable to use the File/New from Template/Python/* menu item, or to create a new file in an open project, by any of the available means (application File menu, control-click in project drawer, use gear icon menu). I gather, from following several different Google searches, that my problem(s) has/have something to do with the search path that Textmate is using to look for the template files [...]
More likely that you have a custom bash startup that interferes: http://macromates.com/wiki/Troubleshooting/Templates -- try e.g. test it using a new user account.
Thanks, Allan, but that isn't it. First I tried commenting out everything in my .bash_profile except for the alias declarations. When that didn't work, I created a new user account and logged in with that.
I still can't use the File/New from Template command.
I tried something else. I created a file, test_tm.sh, with the content:
#!/bin/bash echo #TM_SUPPORT_PATH
When I run that from TextMate, I get no output and no error message, just "Program exited with status 0"
Should #TM_SUPPORT_PATH have a value?
Any other ideas?
Richard
On 4/1/07, Allan Odgaard throw-away-1@macromates.com wrote:
On 1. Apr 2007, at 20:34, Richard Blumberg wrote:
I am unable to use the File/New from Template/Python/* menu item, or to create a new file in an open project, by any of the available means (application File menu, control-click in project drawer, use gear icon menu). I gather, from following several different Google searches, that my problem(s) has/have something to do with the search path that Textmate is using to look for the template files [...]
More likely that you have a custom bash startup that interferes: http://macromates.com/wiki/Troubleshooting/Templates -- try e.g. test it using a new user account.
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
Well, no… but $TM_SUPPORT_PATH probably does ;)
And so it does :)
And $PATH works as well, and both seem to be showing reasonable and proper values.
And I still can't create a new file from a template or create a new file in a project.
If I select File/New From Template/Edit Templates..., it finds the templates just fine, so there seems to be nothing wrong with the search path. But I still can't open a new file.
Extremely frustrating.
Richard
On 4/1/07, Jacob Rus jrus@hcs.harvard.edu wrote:
Richard Blumberg wrote:
#!/bin/bash echo #TM_SUPPORT_PATH
When I run that from TextMate, I get no output and no error message,
just
"Program exited with status 0"
Should #TM_SUPPORT_PATH have a value?
Well, no… but $TM_SUPPORT_PATH probably does ;)
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
On 2. Apr 2007, at 02:30, Richard Blumberg wrote:
[...] And I still can't create a new file from a template or create a new file in a project.
Is there any messages in Console?
If I select File/New From Template/Edit Templates..., it finds the templates just fine, so there seems to be nothing wrong with the search path. But I still can't open a new file.
I assume Test also fails in the template editor?
What about the Text → Empty File, does that one also fail? If so, I really can’t imagine this is anything else than your shell startup which is the problem.
It's mostly working now; I commented out a line in my /etc/profile script that I must have added a year or so ago when I was installing System Logistics servers, and everythng is working except for Python templates. I still can't create a Python template, either from the main file menu or from the project pane.
I'm using the cutting-edge version of TM, and I've downloaded the latest package of bundles via subversion.
Is the Python bundle broken?
Thanks for all the help. I've learned a lot along the way.
Richard
On 4/1/07, Allan Odgaard throw-away-1@macromates.com wrote:
On 2. Apr 2007, at 02:30, Richard Blumberg wrote:
[...] And I still can't create a new file from a template or create a new file in a project.
Is there any messages in Console?
If I select File/New From Template/Edit Templates..., it finds the templates just fine, so there seems to be nothing wrong with the search path. But I still can't open a new file.
I assume Test also fails in the template editor?
What about the Text → Empty File, does that one also fail? If so, I really can't imagine this is anything else than your shell startup which is the problem.
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
On 2. Apr 2007, at 14:15, Richard Blumberg wrote:
It's mostly working now; I commented out a line in my /etc/profile script that I must have added a year or so ago when I was installing System Logistics servers, and everythng is working except for Python templates. I still can't create a Python template, either from the main file menu or from the project pane.
I'm using the cutting-edge version of TM, and I've downloaded the latest package of bundles via subversion.
Is the Python bundle broken?
It works for me -- though the Python templates call /usr/bin/ruby, maybe you removed that?
the ruby application is at /usr/local/bin/ruby.
There's a symlink at /usr/bin/ruby
Shouldn't that work?
Richard
On 4/2/07, Allan Odgaard throw-away-1@macromates.com wrote:
On 2. Apr 2007, at 14:15, Richard Blumberg wrote:
It's mostly working now; I commented out a line in my /etc/profile script that I must have added a year or so ago when I was installing System Logistics servers, and everythng is working except for Python templates. I still can't create a Python template, either from the main file menu or from the project pane.
I'm using the cutting-edge version of TM, and I've downloaded the latest package of bundles via subversion.
Is the Python bundle broken?
It works for me -- though the Python templates call /usr/bin/ruby, maybe you removed that?
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
Richard Blumberg wrote:
the ruby application is at /usr/local/bin/ruby.
There's a symlink at /usr/bin/ruby
Shouldn't that work?
Bad idea. Don't do this. Some applications may rely on the original (system provided) ruby being in /usr/bin, and replacing it could break things.
-Jacob
On 2. Apr 2007, at 19:52, Richard Blumberg wrote:
the ruby application is at /usr/local/bin/ruby.
There's a symlink at /usr/bin/ruby
Shouldn't that work?
Yes, so probably your symlink is wrong ;)
I updated the templates to use ‘#!/usr/bin/env ruby’ -- but you probably want to inspect /usr/bin/ruby. Try e.g. run it from Terminal (with abs. path).