client: Emacs doesn't like writing to KBFS
When I open foo.txt and editing it, I get the following on save:
Opening output file: input/output error, /keybase/public/timmc/foo.txt
The file does get saved, though. Another editor I tried worked fine. I don’t know enough about Emacs to say why this failed to go smoothly, but it might indicate a problem in the filesystem.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 27 (21 by maintainers)
Another hint for people experiencing problems with this. Projectile-mode causes significant pain with Keybase. It’s frequently looking for project files and that seems to slow Emacs down significantly. Here’s some sample strace output:
That seems to happen… maybe every time I move my cursor? It’s brutal. Turning off projectile for the single org-mode file I’ve got open on Keybase makes things buttery-smooth again.
@strib @tv42 Regarding this issue, it turned out it wasn’t Emacs’ auto-save, as I already had it setup to backup files in a specific local folder in my home.
The problem turned out to be Emacs’ lock files (which you cannot redirect to any other folder): here some Emacs documentation on File Locks.
So what I did was disable lock files entirely, as I am mostly working in machines alone, without danger of overwriting somebody else’s work. For that, I set
(setq create-lockfiles nil)in my Emacs config.With this config, I can safely open the org files individually (or via the agenda) -> /loose connectivity/ -> work on my files (without saving them) -> /regain connectivity/ -> save my work.
NOTE: Additionally, I had previously set EasyPg to skip autosave of (de)crypted files
(setq epa-file-inhibit-auto-save t)Emacs documentation on EasyPG.Many thanks for pointing me in the right direction. I hope for long life to the keybase project, I love it!