Author Topic: File changed outside of editor is not always recoginzed as changed  (Read 3520 times)

Offline eddyq

  • Multiple posting newcomer
  • *
  • Posts: 56
This may be a corner case but thought I would mention it.

1) I am using VirtualBox with Linux.
2) My files are on a shared folder (a Virtual Box feature)
3) My project is also on the shared folder
4) The shared folder is in Windows (the host machine)
5) The shared folder is referenced in Linux via a symbolic link

When I make a change a file in Windows and then switch over to CB in Virtual Box, Virtual Box does not see the file as changed outside of the editor.
But if I close any file (in this case not changed), it then sees the changed files and puts up the expected message.

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: File changed outside of editor is not always recoginzed as changed
« Reply #1 on: March 25, 2013, 09:52:22 pm »
Did it also happen if the focus in your VM switches to another app and then back to C::B ?
C::B checkss for changed files, if it gets activated.
If you switch away from the VM and change the file outside of it, it is the same as working on two machines and C::B most likely stays activated.
To change this behaviour, we would need to call the check-function in a timer-event, but this will slow down C::B .

Offline eddyq

  • Multiple posting newcomer
  • *
  • Posts: 56
Re: File changed outside of editor is not always recoginzed as changed
« Reply #2 on: March 26, 2013, 01:17:57 pm »
Yes, that works. Don't add a check based on a timer because this is a corner case. As long as I understand it that makes it OK.