Working with Helix on sshfs filesystem #7641
Replies: 2 comments
-
I think I have found the reason. The log was right it's seems to be LSP related issue - css LSP to be precise. I don't know how and why. I imagine the LSP has a problem communicating through sshfs.
That is the best I came up with so far. |
Beta Was this translation helpful? Give feedback.
-
Okay, new Clue. Error: " The error occurred while editing LOCAL MAKE file in the FreeBSD ports. When editing file owned by root. I'm a little lost in this already. Attaching last Log line. Because there is still error related to LSP.
Thing that makes me wonder why I found this error just now. The only thing I can think of is that several days ago I upgraded FreeBSD from 13 to 13.1 The last thing that comes to my mind. It is recompile Helix from ports instead of installing from package |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
While working on sshfs, on Save the bug clears the contents of the edited file and sends it back to the server as blank. I don't know what it depends on, but I suspect the size of the file.
Reproduction Steps
I tried this:
This will apply to FreeBSD but I suspect the problem will be on any Unix system.
But just in case. If there was a need for full replication on this platform.
FreeBSD part:
$ kldload fusefs
: Add fuse module to the kernel$ sysctl vfs.usermount=1
: Allow user to mount filesystem$ pkg install fusefs-sshfs
: Install fuse-sshfs packageUniversal Part:
In my particular case I'm using a tunnel. I don't suspect it would be important, but the more information the better and faster replication.
Here is
.ssh/config
I'm using. This is relevant because sshfs uses ssh config fileNow the mouting is quite strighforwad:
sshfs server_www:/path/to/remote/directory ~/Desktop/current_job/
Now we edit the content.
hx ~/Desktop/current_job/style.css
and such.I expected this to happen:
After opening and saving the file, I expect it to be, well... saved and sent back to the server. Exactly as I would work with the local file.
Instead, this happened:
When I do
:w
appears"Async job failed: Permission denied (os error 13)"
It is important that there are some changes to the file, otherwise the error will not appear
Then the file goes completely blank, and all the work is lost. And with such empty content it's sent to the server.
I've been working with Vim like this, and it doesn't have that problem. So it must be Helix related issue not some sshfs config one or related to permissions.
Helix log
~/.cache/helix/helix.log
Platform
FreeBSD 13.1-RELEASE
Terminal Emulator
alacritty 0.10.1
Helix Version
helix 22.05
Beta Was this translation helpful? Give feedback.
All reactions