File name changes are cached?


#1

It seems that file name changes do not take effect immediately when I change the name of a file in my project by right-clicking it in the project tree. Instead, I must make a change inside the newly renamed file and save it before the name change gets noticed by the operating system. (Atom v1.8.0, Mac OS X v10.11.6)
Is this a feature or a bug?


#2

I might be wrong, but this should be executed when renaming files or directories:

It seems to use the moveSync method (line 38) from fs-plus.
Have you tried using a fs watcher and see what happens when you rename a file?


#3

I couldn’t reproduce the problem you’re describing using Atom v1.8.0 on Mac OS X 10.11.5 or Mac OS X 10.11.6. Here’s what I did:

  1. Launch Atom in my local Atom repository
  2. Right click the README.md in the Tree View
  3. Rename the file to test.md

In both cases, the new file name was reflected immediately in both the Tree View and in the file name shown on the tab. I also checked, as quickly as possible the file name using the terminal. It was always up-to-date.


#4

Sorry for the late reply.
I think there were other problems happening on my computer that were slowing down the visible responses to my changes. Atom did not seem to be to source of any problems.

Sorry for the false alarm.

-Thom