The "Find in Project..." feature has been acting oddly when searching for strings with "special" characters in them. I have the "Regular Expression" box unchecked and the "Ignore Case" box checked.
I have a project with ~100 files in it. About 75 of those contain the variable $ROOT_DIR. When I do a "Find in Project..." and search for $ROOT_DIR I get three results back. I really can't figure out what is special about the three that are returned. Is the "$" causing a problem? I would think that if you are not using regular expressions that all special characters would be automatically escaped.
That's my first problem. Here's the second:
I then tried "*$ROOT_DIR*" with the regular expression box checked just to see what would happen. I realize that this doesn't make much sense as a regular expression. I know next to nothing about them. TextMate proceeded to give me the spinning beach ball for about five minutes. My system became unresponsive. TextMate eventually bombed. I opened TextMate again and repeated the search. Same results. Should there be error checking on the regular expression before it is executed to prevent things like this?
Bryce
The first problem seems to work better after restarting the application. $ROOT_DIR was found in every spot it should have been. Does TextMate periodically index the project and then search that index? That would explain why only a few files were found before the restart. If so, how often does the index get refreshed?
On Tue, 8 Feb 2005 16:38:27 -0500, Bryce Thornton brycethornton@gmail.com wrote:
The "Find in Project..." feature has been acting oddly when searching for strings with "special" characters in them. I have the "Regular Expression" box unchecked and the "Ignore Case" box checked.
I have a project with ~100 files in it. About 75 of those contain the variable $ROOT_DIR. When I do a "Find in Project..." and search for $ROOT_DIR I get three results back. I really can't figure out what is special about the three that are returned. Is the "$" causing a problem? I would think that if you are not using regular expressions that all special characters would be automatically escaped.
That's my first problem. Here's the second:
I then tried "*$ROOT_DIR*" with the regular expression box checked just to see what would happen. I realize that this doesn't make much sense as a regular expression. I know next to nothing about them. TextMate proceeded to give me the spinning beach ball for about five minutes. My system became unresponsive. TextMate eventually bombed. I opened TextMate again and repeated the search. Same results. Should there be error checking on the regular expression before it is executed to prevent things like this?
Bryce
On Feb 8, 2005, at 22:38, Bryce Thornton wrote:
I have a project with ~100 files in it. About 75 of those contain the variable $ROOT_DIR. When I do a "Find in Project..." and search for $ROOT_DIR I get three results back. I really can't figure out what is special about the three that are returned. Is the "$" causing a problem?
I don't have any idea to what have gone wrong here. It could be that the files that contain $ROOT_DIR are not considered text files by TextMate, and so, the Find in Project skips these!?!
[...] My system became unresponsive. TextMate eventually bombed. I opened TextMate again and repeated the search. Same results. Should there be error checking on the regular expression before it is executed to prevent things like this?
Yes, there should, and it's unfortunate that I haven't gotten around to adding this yet, my apologies for the troubles it is causing! :/