I have been advised to submit a bug report. When I set
tramp-save-ad-hoc-proxies to true, I see 'Scan error' over and
over. Depending on my configuration, emacs can become completely
unresponsive. My setup is a bit unusual, but I've tried this every way I
can think of: inside docker in WSL2 with my init file inside docker,
inside docker in WSL2 with my init file on Windows, the same version of
emacs running only in WSL2 (no docker). I have the same issue no matter
how I run it.
https://emacs.stackexchange.com/questions/77320/tramp-scan-errorI was able to simplify my init.el down to the following, and I'm still
having this issue.
(require 'tramp)
(setq tramp-default-method "ssh")
(setq tramp-default-host "192.168.2.6")
(setq tramp-save-ad-hoc-proxies t)
> uname -r
5.15.90.1-microsoft-standard-WSL2
> more /etc/system-release
Rocky Linux release 9.1 (Blue Onyx)
The docker image is ubuntu:20.04.
Tramp bug report here