Home Download Buy Blog Forum Support

file changed detection buggy

file changed detection buggy

Postby euchoreo on Fri Nov 22, 2013 7:48 pm

I noticed that sublime will often not detect changes that are made to files by programs other than sublime. For example, I have a refactoring python script that I use to rename variables. I use this script because I sometimes don't like the result of sublime's replace-all-across-files, which also seems to work the way I want about 75% of the time.

This is what I do.

1. Save my changes to myCode.cpp
2. run python script from command line that changes many variables in different files, including myCode.cpp
3. Run the shell command "more myCode.cpp" to verify the change has occured.
4. Look back at sublime and see that the update has not been picked up.
5. Do a little typing in sublime to see if this would trigger detection, it does not.
6. Close the file and reopen the myCode.cpp. This, too, does not work and the file contents are still shown as old
7. Hunt down I close all instances of myCode.cpp across all of my split windows (I use a custom window splitter similar to Origami), THEN open mycode.cpp

It is not until step 7 that the file is reread from disk and the change is noted. Is there anything I can do to fix or work around this problem?

I am using sublime 3 beta, so this may be just an issue with that version.
Posts: 15
Joined: Fri Aug 30, 2013 8:19 pm

Return to Technical Support

Who is online

Users browsing this forum: Exabot [Bot], Google [Bot] and 38 guests