This is an issue I face quite often. I use Sublime to edit files on a server connected via sftp through Netdrive.
I will edit a file and having completed my task close it.
Then on the server I switch to another git branch or perhaps just revert the file.
I open the file locally (or say yes to a reload) and then sublime loads a truncated version of the file. I don’t think the size of the modification matters, adding or removing lines. The file visible on the NetDrive drive is truncated.
I can issue a touch command for the server file or delete it and recreated it, but I still get the same truncated source code in sublime. If I don’t move to the end of the file each time to check to see if it is truncated, then my site fails to load because of the syntax error. The only solution is to disconnect and then reconnect that particular drive and then everything is fine.
Is there a fix for this?
Is there an invalidate cache button/parameter hidden somewhere?
Could I have a batch file that I use to wipe out a certain local directory and thus force the file to be loaded from the server?