GNOME Bugzilla – Bug 609566
gedit can't save existing files on VirtualBox shared folders
Last modified: 2016-11-26 22:23:50 UTC
This bug has been reported here: https://bugs.launchpad.net/ubuntu/+source/gedit/+bug/341725 For Ubuntu (other distros have not been tested) inside VirtualBox with Guest Additions, if gedit attempts to edit a file on a shared folder, gedit fails to save, and instead returns a "Text file busy" error: ~$ gedit /mnt/share/foobar.txt ** (gedit:1942): WARNING **: Hit unhandled case 0 (Text file busy) in parse_error. However, this issue only occurs with "save", and only with gedit. If gedit edits the file and the user does "Save as" for any file name (including the same file name as the original file), gedit saves the file's changes without complaining. If nano (or any other editor) modifies the file and tries to save it, the file's changes are saved.
*** Bug 614625 has been marked as a duplicate of this bug. ***
The same in gedit 2.30.4 Maybe this is a hint: gedit creates a hidden temporary file in the shared folder when a changed file should be saved. But gedit cannot change file names so the save command is not finished.
geany has the same problem Maybe something is wrong in GTK
Thanks for taking the time to report this. However, you are using a version that is too old and not supported anymore by GNOME developers. GNOME developers are no longer working on that version, so unfortunately there will not be any bug fixes by GNOME developers for the version that you use. Edition of files through a VirtualBox shared folder with Gedit 3.22 works fine. By upgrading to a newer version of GNOME you could receive bug fixes and new functionality. You may need to upgrade your Linux distribution to obtain a newer version of GNOME. Please feel free to reopen this bug report if the problem still occurs with a recent version of GNOME, or feel free to report this bug in the bug tracking system of your Linux distribution if your distribution still supports the version that you are using.