<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/xhtml; charset=utf-8">
</head>
<body>
<div style="font-family:sans-serif"><div style="white-space:normal"><p dir="auto">On 4 May 2019, at 4:22, Leo Brewin wrote:</p>
<blockquote style="border-left:2px solid #777; color:#777; margin:0 0 5px; padding-left:5px"><p dir="auto">I'be had a recurring problem with one file. For some reason when TextMate<br>
reads the film from disk it somehow corrupts the tail of the file […]<br>
If I delete ~/Library/Caches/com.macromates.TextMate/BundlesIndex.binary<br>
before launching TextMate then the file is not corrupted.<br>
<br>
Any suggestions would be most appreciated,</p>
</blockquote><p dir="auto">That it is not mangled when you delete the bundle index indicates that it is a bundle item responsible for the mangling (when there is no index, bundles are indexed asynchronously after launch, so any bundle import hooks would not be used for files loaded before indexing has completed).</p>
<p dir="auto">To troubleshoot this, first open Bundles → Select Bundle Item (⌃⌘T).</p>
<p dir="auto">Use the gear menu to switch to “Semantic Class” and now enter “import” in the filter string.</p>
<p dir="auto">There are 5 default hooks for importing files (binary property lists, compiled AppleScript, etc.)</p>
<p dir="auto">If you see more, then that might be the problem.</p>
<p dir="auto">If this does not find anything, try removing all custom bundles, steps detailed here: <a href="https://github.com/textmate/textmate/wiki/Reverting-To-Defaults" style="color:#3983C4">https://github.com/textmate/textmate/wiki/Reverting-To-Defaults</a></p>
</div>
</div>
</body>
</html>