corrupted file

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

corrupted file

Leo Brewin
Hi Folks,

I'be had a recurring problem with one file. For some reason when TextMate reads the film from disk it somehow corrupts the tail of the file. I've attached two images of the corrupted and original versions. I've done a bit of digging and have observed the following.
1. It only appears to happen for this one particular file (weird).
2. When I first launch Textmate and then open this file it appears corrupted in Textmate but not when I use "tail" in the command line (i.e., the file is corrupted in TextMate's memory but not on disk).
3. If I close the (apparently) corrupted file and re-open it, the file is now not corrupted.
4. If I save the file to disk then it is saved in corrupted form (oops).
5. If I delete ~/Library/Caches/com.macromates.TextMate/BundlesIndex.binary before launching TextMate then the file is not corrupted.
6. I ran Apple's debug (reboot+D) to check my memory and it reported no errors.
7. I'm running TextMate 2.0-rc.23 on macOS 10.14.4

Any suggestions would be most appreciated,

Cheers,
Leo

fig-01.png


fig-02.png



_______________________________________________
textmate mailing list
[hidden email]
https://lists.macromates.com/listinfo/textmate
Reply | Threaded
Open this post in threaded view
|

Re: corrupted file

Allan Odgaard-4

On 4 May 2019, at 4:22, Leo Brewin wrote:

I'be had a recurring problem with one file. For some reason when TextMate
reads the film from disk it somehow corrupts the tail of the file […]
If I delete ~/Library/Caches/com.macromates.TextMate/BundlesIndex.binary
before launching TextMate then the file is not corrupted.

Any suggestions would be most appreciated,

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).

To troubleshoot this, first open Bundles → Select Bundle Item (⌃⌘T).

Use the gear menu to switch to “Semantic Class” and now enter “import” in the filter string.

There are 5 default hooks for importing files (binary property lists, compiled AppleScript, etc.)

If you see more, then that might be the problem.

If this does not find anything, try removing all custom bundles, steps detailed here: https://github.com/textmate/textmate/wiki/Reverting-To-Defaults



_______________________________________________
textmate mailing list
[hidden email]
https://lists.macromates.com/listinfo/textmate