Templates

Troubleshooting.Templates History

Hide minor edits - Show changes to output

May 02, 2008, at 19:11 UTC by Allan Odgaard - Remove (:markdown:)
Deleted lines 0-1:
(:markdown:)
Deleted lines 13-14:

(:markdownend:)
October 14, 2006, at 03:50 UTC by Allan Odgaard -
Changed lines 9-12 from:
For example, if you change to another directory at the end of your .bash_profile (cd ~/svn/) you can removed the line, launch a terminal, relaunch textmate and the issue should be resolved.

If you need to change the current working directory then you can restrict it to only happen for interactive shells e.g. by using a line like this:
to:
If you need to change the current working directory (e.g. in `~/.bash_profile`) then you can restrict it to only happen for interactive shells by using a line like this:
August 29, 2006, at 15:27 UTC by logic_at_newmethods_com -
Added lines 9-10:
For example, if you change to another directory at the end of your .bash_profile (cd ~/svn/) you can removed the line, launch a terminal, relaunch textmate and the issue should be resolved.
July 07, 2006, at 18:53 UTC by Allan Odgaard -
Changed lines 3-4 from:
*Problem:* **I can’t create templates.** When I select File → New From Template → «any of the templates» nothing happens.
to:
*Problem:* **I can’t create templates.** When I select File → New From Template → *«any of the templates»* nothing happens.
July 07, 2006, at 18:52 UTC by Allan Odgaard -
Added lines 1-17:
(:markdown:)

*Problem:* **I can’t create templates.** When I select File → New From Template → «any of the templates» nothing happens.

*Solution:* Templates are created by running a shell script which create the actual template. This script reads the actual template from its current working directory.

If any of the [files sourced in the shell startup](http://macromates.com/textmate/manual/shell_commands#search_path) changes the current working directory, it will break the templates.

If you need to change the current working directory then you can restrict it to only happen for interactive shells e.g. by using a line like this:

[[ $- = *i* ]] && cd «directory»

- - -

See also: [Shell Commands](ShellCommands)

(:markdownend:)