I prefer vim style mode/navigation so I tend do use Xcode/Android Studio with plugins or start up a separate Vim for editing. In both of these IDEs whenever I save the file in Vim and tab back, the IDE detects the file change and reloads the file. This doesn’t seem to happen with Fire. There is no change, and I see no manual option to reload the file.
In fact, I deliberately added a mistake to a project and tried building it. The error was detected, the line pointed at… and the editor view was still not displaying the line, so I had even highlighting of ghost text input. I closed the project, opened it again using the “Recents” menu option, and the view still didn’t show the new line with the error. I had to completely quit Fire to see it there.
Is detecting and reloading files due to external changes a planned feature?
this should already be working, and does in my testing. When a file charges on disk, it should update right away in Fire. I’ll try adding more debug logging to this process for the next build, so we can narrow down why this might not be happening for you.
Can i assume your project is on a local disk? (i’m to sure if file change notifications will be reliable when using network drives).
The project is saved to the local desktop folder. I started creating a template from scratch, then opened the file in vim to introduce a mistake, and when I built the project the correct contents where highlighted. However, while the file was open, modifying it in vim would not refresh it, even after running the build command. In the attached screens you can see more or less the steps I did. The last screenshot shows the editor highlighting an area of not updated text.
Thanx. What you are seeing is consistent with Fire just not seeing the change notification. The compiler runs as separate process, on the files on disk, so it sees and reports the error — Fire just never reloads the file. Now we need to find out why…
I’ll try to shoot you a new build with some logging, tomorrow. Can you PM or email me your username for remobjects.com?