Hello!

I am using Tramp over ssh to do remote development in Go. This works
reasonably well with gopls, thanks to everyone who has made this possible!
Magit tends to be slow, so I gave up trying to use it.

With the hope of improving performance, I tried out sshfs. I ran into
some shortcomings (bugs?) compared to ssh. If this is not the right
place to report those then please ignore. I'm not subscribed to the
list, please group-reply. But I can also subscribe, it that's required
or preferred.

I am using Emacs 30.1 with Tramp 2.8.1.3, go-mode 20250311.156, magit
20260401.2251 (all packages updated via elpa yesterday). gopls is
installed in /usr/local/bin on the remote host.

When I open a Go file, *Warnings* opens and I get:
   ⛔ Warning (tramp): STDERR not supported

I don't have a workaround. Because this takes up screen space it's
pretty annoying.

When trying to start lsp, it fails:

   LSP :: The following servers support current file but do not have automatic 
installation: semgrep-ls-tramp golangci-lint-tramp gopls-tramp
   You may find the installation instructions at 
https://emacs-lsp.github.io/lsp-mode/page/languages.
   (If you have already installed the server check *lsp-log*).

That's because it doesn't find the gopls command (visible in
*lsp-log*). I found that I can work around that by creating a symlink to
it in /bin. The reasons seems to be
https://emacs.stackexchange.com/questions/81829/tramp-sshfs-remote-command-execution-doesnt-respect-tramp-remote-path-or-tra
I think it should work the same as ssh and use the remote path settings.

magit gathers some information, but then fails with:

   magit-rev-diff-count: Wrong type argument: stringp, nil

This is after some more warnings about stderr, so maybe related?

All of this works with tramp over ssh.

Thanks, Patrick

Reply via email to