Sublime Forum

ST3 Misinterprets EOF

#1

I have a logfile open in Sublime Text 3 (Build 3061). If I re-run some application that modifies the logfile, then try to re-open it, Sublime misinterprets the EOF.

For example, if I tail the logfile at the prompt, I see this:

/nfs/mydir> tail -3 logfile Time: 35969309000 fs CPU Time: 28.520 seconds; Data structure size: 88.7Mb Thu Feb 27 09:47:31 2014

But, when I re-open it, I find the same text followed by dozens of NUL characters, followed by the overwritten part of the previous version of the file.

Time: 35069309000 fs CPU Time: 21.210 seconds; Data structure size: 88.7Mb Wed Feb 26 21:39:53 2014 NUL|NUL|NUL|NUL|NUL|NUL|NUL|NUL|NUL|NUL|NUL|NUL|NUL|NUL %I-( svt_pcie_pl_proxy.sv:6708.....blah, blah, blah....

Among other issues, now you can no longer use Find in Files…

[code]Searching 1 file for “Time” (regex)

/nfs/mydir/logfile:

[/code]

I can close and re-open the file, but the problem persists.

Only quitting and re-starting Sublime Text altogether solves the issue.

0 Likes