Duplicates of this ticket: 476338C7
|Status: open, reported by z on 2007-01-25 (bug)
Circular symbolic links cause Textmate to hang on opening project
I have a project with a directory structure like the following:
|--c (symbolic link to f)
|g (symbolic link to a)
On opening directory 'a' as a TextMate project, it hangs.
|Note added by Jacob Rus on 2007-02-09 13:41:34|
why do you have a circular symbolic link?
|Note added by James Yopp on 2008-01-28 09:32:00|
I am having the same problem under Leopard with the newest TextMate build, and I'm pretty sure it's the g -> a link in the diagram that's causing this.
For myself, the symlink exists because a particular automated tool has a defective regex (I guess), and won't accept relative paths that start with "..", so to access the files in the higher-level directory, I created a link to the containing directory and called it "source". TextMate hangs when it receives focus, but if I remove the symbolic link, it becomes responsive again.
|Note added by Bill Kirtley on 2009-05-15 17:26:34|
Its a common practice for ruby gem projects to have a circular path like this.
|-mygem-10.0.0 (symlink to ../../..)
This allows running tests without installing the gem, and checking in the project without knowing absolute paths.
For me, textmate 1.5.8 (1498) on Leopard 10.5.6 doesn't hang, but Cmd-T does show many copies of each file.
I'd be happy with an option to disable following symlinks. Is that possible?
|Note added by Adam Salter on 2009-08-26 06:59:37|
I'm getting this as well. Very annoying.
multiple copies (around 20) of all the files within the symlink loop.
Follow symlinks (or not) is a very common setting on *NIX systems, would it be that hard to have a similar setting in Textmate?
|Note added by Simon Chiang on 2009-10-05 14:51:07|
I'm also running into this issue as a result of an otherwise very convenient testing setup. Filtering my vendor directory using the folder pattern config works, but it would be very nice to filter out just the offending symlink.
|Note added by Irae on 2010-01-21 18:49:05|
I have a web app that the htdocs is inside the source tree and for debug reasons I have a circular symbolic link to the current branch.
|Note added by John Grubb on 2011-04-12 16:01:15|
Just encountered this yesterday. Removed the symlink and went right back to snappy-as-usual.
|Note added by Dave Gallagher on 2011-05-04 16:56:43|
Had this happen to me as well. I had a project directory open. Inside it I had symlink-A to a single file somewhere. I added a second symlink-B to an API directory, which also contained the file pointed to by symlink-A. This caused TextMate to hang. Force-quitting and re-starting did not fix the issue. Only when I removed symlink-B from the project, everything started working again.