Sublime Forum

Corrupted files while editing on network share

#1

Hi there. I have been trying ST for a week and I do like the dark interface better over my other text editor but I found this issue that is making it unusable for me.

My setup is Sublime 311 Build 3176 on mac OS 10.12.6. I have a headless server Mac mini running mac os 10.13.6 that shares several volumes over SMB (OS X)

I was editing a .sh last night on the network mount when all of sudden my file turned to eight columns of hexadecimal.

I can reproduce the behavior every time. I start a new file, save it to any of the two network drives, start editing and after about a dozen saves, the content of the file changes to hex.

Closing/reopening the file keeps bringing the hex. If I open the same file in nano it looks ok except for a long line of non-ASCII characters at the end of the file. If I remove this line and save the file in nano, I can open it again with ST and it looks ok.

So I’m guessing there is some kind of corruption happening that makes those non-ASCII chars appear and from then on ST displays the file as hexa.

This is my everyday work setup so I think any corruption issues on the mac mini drives I would have noticed (is a file server as well as a Docker host). This only happens with ST and not with Apple’s TextEdit or TextMate.

If I can provide any other information to shine some light on this I’ll be happy to help.

0 Likes

#2

You might be bumping into the following issue; common understanding seems to be that the SMB implementation in MacOS does funny things (people report this with several editors and not just Sublime, for example).

0 Likes

#3

It is exactly that.

My search for “network” before didn’t took me there, I should have know that SMB could be the problem.

Thanks and sorry for wasting your time.

0 Likes