From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philipp Stephani Newsgroups: gmane.emacs.bugs Subject: bug#53283: 28.0.91; TRAMP SSHFS method not known by default Date: Sat, 15 Jan 2022 19:24:09 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4579"; mail-complaints-to="usenet@ciao.gmane.io" To: 53283@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jan 15 19:25:11 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n8njj-00014P-7Q for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 15 Jan 2022 19:25:11 +0100 Original-Received: from localhost ([::1]:46998 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n8nji-0004r3-44 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 15 Jan 2022 13:25:10 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:52278) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n8nja-0004pz-Od for bug-gnu-emacs@gnu.org; Sat, 15 Jan 2022 13:25:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48810) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n8nja-0007sZ-FZ for bug-gnu-emacs@gnu.org; Sat, 15 Jan 2022 13:25:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n8nja-0003gb-B8 for bug-gnu-emacs@gnu.org; Sat, 15 Jan 2022 13:25:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Philipp Stephani Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 15 Jan 2022 18:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53283 X-GNU-PR-Package: emacs Original-Received: via spool by 53283-submit@debbugs.gnu.org id=B53283.164227107214117 (code B ref 53283); Sat, 15 Jan 2022 18:25:02 +0000 Original-Received: (at 53283) by debbugs.gnu.org; 15 Jan 2022 18:24:32 +0000 Original-Received: from localhost ([127.0.0.1]:41713 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n8nj5-0003fd-Mx for submit@debbugs.gnu.org; Sat, 15 Jan 2022 13:24:31 -0500 Original-Received: from mail-oi1-f176.google.com ([209.85.167.176]:33419) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n8nj0-0003fJ-BM for 53283@debbugs.gnu.org; Sat, 15 Jan 2022 13:24:30 -0500 Original-Received: by mail-oi1-f176.google.com with SMTP id x193so17270280oix.0 for <53283@debbugs.gnu.org>; Sat, 15 Jan 2022 10:24:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :content-transfer-encoding; bh=ec9lyLP2NTYnIvVdjp0jCD/F9u8M6Ok4n6QWz1//byM=; b=qLxs7GZ5c/+9lR9GZgnD+TcsJVAZsqrU9Z3pCCurv7koQCXTbRQxXyAbuyNZqbx9JB zBAZCpIMeaAjZe61DOdPkDuOK2DzIOQH7xe6QZqgXFgIw+ZiTfrqJg3foBj5u06OXNyl IioITEV7HwfDIKI7SYeCvLGim/jZHVMi2IWSE75TdYzmZcqI4kFGVCtZfphqNXAZqIob Q4bh/EwMdRV+0aWpxf3y/ks5Bvi5XojPp6a70oUmfqaDVyMxuXhVS6Q514uaqpdb8JTM X88Jy0gKDCk8KfiJZaXvL6LMUbO7WI1EGoFw10G+AR/Y7Dq6kLKE+O3SdOhEKYvVrUj+ 98UA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:content-transfer-encoding; bh=ec9lyLP2NTYnIvVdjp0jCD/F9u8M6Ok4n6QWz1//byM=; b=q0Fju5vJGxl589J8cKlcUT7oIJbOM+6Pavo91MuCcysne/Vd2kbO7b3B1YLnOzOmF0 eravX/kRa+4PmTDxi0aHwQfGzt/SnBOwbsF33CeJnPli+CMRifutwHEzmlwj+ydJwVwt 2fUgyAiRuQFHLoQD/cfxDld0q3RJs5b49ZHFuv7OsJx3O+XwCJ8jHRbGdJZbggbhHv5I 4gBxwMXi0swu1+hR8bBbzYQMOEy9q3HPYWyiVbyKOj1s8pHVRX4M/g//1A+2CPdUPOmm qcKR/YG3o+hwJvFQszYMN6HxntjO4TA3hU7KDbQ6NEGwX4to0FNRFKcDE59BJToWxO3e V1Bg== X-Gm-Message-State: AOAM530QL/LZOBYYvODl5iGlvPxUlUK80d8bxyR4D7o4XhCFJxIcAScu XHp3/Y+XqQeDC0vcE9LIj5nPEISjrT/zcdxCFI0mAiBN X-Google-Smtp-Source: ABdhPJxhXlF1gXSkeApM6F91GaNNzoq6HV86qKNaXNEIGc6D2j5vesLpdcrAKgxG935IJoag1Y3HXGJkJrd8Oh0Gm7c= X-Received: by 2002:a05:6808:b38:: with SMTP id t24mr10158425oij.25.1642271060558; Sat, 15 Jan 2022 10:24:20 -0800 (PST) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:224327 Archived-At: Am Sa., 15. Jan. 2022 um 14:06 Uhr schrieb Philipp Stephani : > > > First, thanks for adding the SSHFS method, it works really well in > general! However, I think it should be available by default: > > $ emacs -Q -batch -eval '(print (directory-files "/ssh:localhost:/sys"))' > Tramp: Sending command =E2=80=98exec ssh -e none localhost=E2=80=99 > Tramp: Found remote shell prompt on =E2=80=98localhost=E2=80=99 > > ("." ".." "block" "bus" "class" "dev" "devices" "firmware" "fs" "hypervis= or" "kernel" "module" "power") > > (as expected) > > But: > > $ emacs -Q -batch -eval '(print (directory-files "/sshfs:localhost:/sys/"= ))' > , Method =E2=80=98sshfs=E2=80=99 is not known. > Debugger entered--Lisp error: (user-error "Method =E2=80=98sshfs=E2=80=99= is not known.") > signal(user-error ("Method =E2=80=98sshfs=E2=80=99 is not known.")) > tramp-error((tramp-file-name "sshfs" nil nil "localhost" nil "/sys/" ni= l) user-error "Method `%s' is not known." "sshfs") > apply(tramp-error (tramp-file-name "sshfs" nil nil "localhost" nil "/sy= s/" nil) user-error "Method `%s' is not known." "sshfs") > tramp-user-error((tramp-file-name "sshfs" nil nil "localhost" nil "/sys= /" nil) "Method `%s' is not known." "sshfs") > tramp-dissect-file-name("/sshfs:localhost:/sys/") > tramp-file-name-handler(expand-file-name "/sshfs:localhost:/sys/" nil) > expand-file-name("/sshfs:localhost:/sys/" nil) > apply(expand-file-name ("/sshfs:localhost:/sys/" nil)) > tramp-autoload-file-name-handler(expand-file-name "/sshfs:localhost:/sy= s/" nil) > directory-files("/sshfs:localhost:/sys/") > (print (directory-files "/sshfs:localhost:/sys/")) > eval((print (directory-files "/sshfs:localhost:/sys/")) t) > command-line-1(("-eval" "(print (directory-files \"/sshfs:localhost:/sy= s/\"))")) > command-line() > normal-top-level() > OK, removing lisp/net/tramp-loaddefs.el and manually regenerating it fixes the issue. So this is not a bug in the Emacs code itself. Maybe there's a small bug in the Makefiles around detecting whether tramp-loaddefs.el needs to be rebuilt?