I've been trying to track down a problem in code folding for Ruby. At this point, I have two 100+ line files, one of which has problems and the other does not. The _odd_ thing is that cmp(1) says they're identical. I have tried closing the files, stopping and restarting TM, reloading bundles, etc. Nothing seems to make much difference.
One annoying constraint is that the code is proprietary, so I can't just post it publicly (even in its rather cut-down form). Sigh.
Details:
TextMate 1.5.9 (1510) Mac OS X 10.5.8 (Mac Pro) RUBY_VERSION 1.8.5 (for Google Sketchup Pro 7.1.6859)
Guesses:
It appears that TM has saved bogus folding information for one of the files, but not the other. Suggestions on tracking this down or at least gathering useful information?
-r
On 28 Mar 2010, at 09:31, Rich Morin wrote:
[…] It appears that TM has saved bogus folding information for one of the files, but not the other. Suggestions on tracking this down or at least gathering useful information?
Folding info is stored as an extended attribute.
Try: xattr -l «file»
That lists all the attributes of the file, you can simply delete the one containing folding info (also using xattr).