Sublime Forum

Sublime Text thinks files saved to SMB mount have changed

#1

I’m using Sublime Text on a Mac, and I’ve been working recently with a codebase that’s hosted on an Ubuntu server and shared with the Mac via SMB. It works just fine, except that I frequently get the message “Such and such a file has changed on disk. Do you want to reload it?”, with the file being one that I recently saved. I wish I could nail it down to a more specific scenario, but it’s not reproducible on command and Sublime seems to defer these checks until the app is deactivated and then reactivated.

I thought perhaps there was a clock skew problem between the two machines, but they were within 1 second of each other. I didn’t know if that was enough to create problems, so I made one an NTP client of the other and was able to reduce the time difference to about 0.001s. However, it doesn’t change Sublime Text’s behavior.

I know I can turn off reloading completely, but I actually find that feature quite useful. I would like Sublime Text to reload the file automatically if it has actually changed on disk and I haven’t made any changes in Sublime Text, which is the behavior I get on Mac-native filesystems. And if I have made changes, I’d like to get the same dialog I’m now receiving.

Any idea what might be going wrong? This is with build 4200 and several previous builds on an M4 Mac Studio running Tahoe 26.3.

0 Likes