I've been seeing the same problem I think is described here: http://lists.macromates.com/pipermail/textmate/2007-July/020708.html
I definitely see it with XML files all on one line (this is very common in my business as much of the XML I see is machine-generated). But I think I'm also seeing this with large multi-line files. For your testing pleasure, download the XML from this URL: http://giswebservices.massgis.state.ma.us/geoserver/wms?request=GetCapabilit...
--- Raj
You're best bet is to keep textmate from parsing a file with no newlines at all costs. It drives my batty, but it's just a core problem with how textmate 1.x works.
What I usually do is rename the file to .txt then open it up with wrapping turned on and reformat the file, then save, rename back and then reformat properly.
It's a pain, but it's better than the spinning beachball of death
On Oct 2, 2007, at 3:39 PM, Raj Singh wrote:
I've been seeing the same problem I think is described here: http://lists.macromates.com/pipermail/textmate/2007-July/020708.html
I definitely see it with XML files all on one line (this is very common in my business as much of the XML I see is machine-generated). But I think I'm also seeing this with large multi-line files. For your testing pleasure, download the XML from this URL: http://giswebservices.massgis.state.ma.us/geoserver/wms?request=GetCapabilit...
Raj
—Thomas Aylott – subtleGradient—
On Oct 2, 2007, at 12:39 PM, Raj Singh wrote:
I've been seeing the same problem I think is described here: http://lists.macromates.com/pipermail/textmate/2007-July/020708.html
I definitely see it with XML files all on one line (this is very common in my business as much of the XML I see is machine-generated). But I think I'm also seeing this with large multi-line files. For your testing pleasure, download the XML from this URL: http://giswebservices.massgis.state.ma.us/geoserver/wms? request=GetCapabilities
I just ran into this yesterday with a large MySQL dump. In your case you can work around the problem by running XML through "xmllint -- format" to add new-lines in a safe manner:
chris@enceladus:~/Desktop $ cat temp.xml <foo><bar><baaz/></bar></foo> chris@enceladus:~/Desktop $ xmllint --format temp.xml <?xml version="1.0"?> <foo> <bar> <baaz/> </bar> </foo>
In my case, I used Perl to add newlines for parentheses but that would be dangerous depending on the input data since it doesn't escaped string values at all (this wasn't an issue with my data).
Not handling really long lines is a common problem - vim also hung on my file.
Chris