User forums > Using Code::Blocks

File changed outside of editor is not always recoginzed as changed

(1/1)

eddyq:
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.

Jenna:
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 .

eddyq:
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.

Navigation

[0] Message Index

Go to full version