Right, OK. That still doesn't seem to fully explain why the CPU load goes up again when I open a file whose project path is correctly set, but I can imagine that there's some kind of domino effect occurring here. Clearly, getting "projectDirectory" right is more important than I had realised. Thanks for explaining.
All the best, Jon
On 15 February 2013 23:32, Allan Odgaard mailinglist@textmate.org wrote:
On Feb 15, 2013, at 11:53 AM, Jon Clayden jon.clayden@gmail.com wrote:
Many thanks - that does fix the symptoms, but I remain puzzled about the
original nature of the problem. For total clarity, if I put the old "projectDirectory" line back, then these are my steps to reproduce the problems:
The CPU load is because TM will traverse the file system from current file and up till it finds your project directory (to check for things like ‘.git’, ‘Makefile’, etc.)
When project directory is an empty string then TM will go into infinite loop since no ancestor of current file will ever match the empty string.
No idea about why commands fail to run, but the assumption in the code is that projectDirectory is a well-formed path, so it could probably be several things failing.
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate