Show Ticket

Status: closed, reported by Trevor Harmon on 2008-10-30 (bug)

Hang

Occasionally I experience a hang in TextMate. I've not been able to reproduce it, but my guess is that it seems to be triggered when typing a parenthesis in the Java bundle. Could be wrong, though. Anyway, I've attached a sample in the hope that it might lead to a diagnosis.
Note added by Trevor Harmon on 2008-10-30 03:43:35

Aha! I was able to reproduce it. It appears to be an infinite loop in the Java bundle. (I'm using the trunk, currently revision 10740.) To reproduce, create a new file and switch to Java mode. Paste in the following text:

public class ArrayListProfiler
{
public static void main(String[] args)
{
System.out.println("      Java: " + profiler.profileJava(new ArrayList<Int>()listSize, new Random(seed)));
}
}

Then, try to type a comma immediately in front of "listSize". TextMate will hang.

(Shouldn't TextMate be able to prevent bundles from locking up the entire app?)


Note added by Luke Daley on 2008-10-30 06:33:34

Fixed in r10753.

File added by Trevor Harmon on 2008-10-30 03:30:13

Sample of TextMate.txt (77441 bytes)