Results 1 to 8 of 8

Thread: Editors write empty files over gvfs mounts

  1. #1
    Join Date
    May 2007
    Beans
    4

    [SOLVED] (kind of) -- Editors write empty files over gvfs mounts

    I just updated to version 10.10 and a serious issue appeared.
    As a developer, I access my company's server shared folders via Nautilus and ssh (sftp) mounts (using gvfs).
    Everything was working fine before the upgrade, but suddenly, when I open a file from the server, make some changes to it and write it back, the file size is 0 bytes! Luckily, we have backups, otherwise it would have been a real disaster!.

    My main editor is Geany, but same happens with any other I've tried (Gedit, Leafpad, Komodo Edit ...)
    I found a similar problem being reported on Launchpad (
    Eclipse writes empty files over gvfs), but no answers there yet.

    If a solution is not being found soon, I'll have to regress and install 10.04, or even 9.10.

    This happened on my Dell Inspiron 1764 laptop. Luckily, my desktop computers at work and home and my other laptop are still with the old version...
    Last edited by vordan; October 18th, 2010 at 04:56 PM. Reason: missed letters (#1), solved (#2), , solved (#3)

  2. #2
    Join Date
    Jul 2008
    Location
    Hoorn, The Netherlands
    Beans
    26
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Editors write empty files over gvfs mounts

    I got the exact same problem, didn't find a way to get around it yet :s

  3. #3
    Join Date
    Jul 2008
    Location
    Hoorn, The Netherlands
    Beans
    26
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Editors write empty files over gvfs mounts

    Solution:
    ~/.config/geany/geany.conf and changed use_safe_file_saving from FALSE to TRUE, after that the remote saving worked.

    Found in:
    https://bugs.launchpad.net/ubuntu/+s...ny/+bug/643253

  4. #4
    Join Date
    Apr 2009
    Beans
    12

    Re: Editors write empty files over gvfs mounts

    Same thing happens with IntelliJ Idea and other few editors. It seems to me that also the permission got screwed, am I right ?

  5. #5
    Join Date
    Jul 2008
    Location
    Hoorn, The Netherlands
    Beans
    26
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Editors write empty files over gvfs mounts

    Not sure, sounds more like a bug in gvfs. No idea how to work around it in other ide's. Try following this bug report aswell: https://bugs.launchpad.net/ubuntu/+s...fs/+bug/658069

  6. #6
    Join Date
    Dec 2005
    Beans
    13

    Re: Editors write empty files over gvfs mounts

    has to be something related to gvfs itself for all these editors to be involved. i'm using SciTE and it's also saving empty files very surprising

    just for fun, i cd'd my way into the gvs path and edited a file using vi, lo and behold it worked! (what can't vi do?), however nano also saved an empty file. amazing.

    anybody find a bug report that is not editor-specific?

    edit: posted too soon, the workaround to fix SciTE (if i'm not the only one as it seems i may be...), is to in your Global Options file (SciTEGlobal.properties) set

    Code:
    save.deletes.first=1
    edit 2: this has the unfortunate side effect of resetting permissions on the file you're saving.
    also, FTR i had added myself to the fuse group, and that may be necessary
    Last edited by qbxk; October 13th, 2010 at 01:59 PM. Reason: found the workaround for scite + the drawback to it

  7. #7
    Join Date
    May 2007
    Beans
    4

    Re: Editors write empty files over gvfs mounts

    Quote Originally Posted by habl View Post
    Solution:
    ~/.config/geany/geany.conf and changed use_safe_file_saving from FALSE to TRUE, after that the remote saving worked.

    Found in:
    https://bugs.launchpad.net/ubuntu/+s...ny/+bug/643253
    Thanks, this works for me.
    As I understand, it's a workaround, not a solution to the problem (which is, by all accounts, in gvfs).
    But, it'll do for now.


    BTW, a tip:
    I keep my Geany, Nautilus, SSHmenu, OpenOffice and some other configs into my Dropbox folder.
    I just make a symlink from there to the places where the programs expect their config files.

    That way, on all my computers I have exact same configurations for the key programs I use every day. When I make some adjustment, I can be sure that it will be available immediately everywhere!

  8. #8
    Join Date
    May 2007
    Beans
    4

    Re: Editors write empty files over gvfs mounts

    This issue appears to be solved with today's (18 Oct 2010) update of Nautilus.
    I tested with multiple editors and everything worked fine.

    Oddly, the Geany setting [use_safe_file_saving=true] must remain in place, otherwise it still doesn't work.

    EDIT: It doesn't work with UEX.
    Last edited by vordan; October 18th, 2010 at 05:04 PM. Reason: Geany setting

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •