* bug#36969: 27.0.50; tramp ftp fails (was Re: master 7aaf500: Stronger check for Tramp method)
[not found] <20190604105154.5DDFA209A5@vcs0.savannah.gnu.org>
@ 2019-08-08 7:33 ` Katsumi Yamaoka
2019-08-08 8:49 ` bug#36969: 27.0.50; tramp ftp fails Michael Albinus
0 siblings, 1 reply; 4+ messages in thread
From: Katsumi Yamaoka @ 2019-08-08 7:33 UTC (permalink / raw)
To: 36969; +Cc: Michael Albinus
Hi,
I'm a bit surprised that I've never used tramp ftp for two months. ;-)
But yesterday, I found it doesn't work. A recipe is here:
(require 'tramp)
(tramp-change-syntax 'simplified)
(setq tramp-default-method "ftp")
(setq ange-ftp-try-passive-mode t)
(setq debug-on-error t)
(dired "/jpl.org:~/")
Where "/jpl.org:~/" is my home directory in the jpl.org host,
user name and password are set in the ~/.netrc file as follows:
machine jpl.org login MyAcountName password MyPassword
The symptom is that it fails with the message:
tramp-error: Method `' is not known.
A Lisp backtrace is attached below, and a workaround I found to
make it work is to revert your change made in tramp.el with the
revno 7aaf500:
On Tue, 04 Jun 2019 06:51:53 -0400, Michael Albinus wrote:
> branch: master
> commit 7aaf500701be3b51c686b7d86c9b505ef5fa9b8f
> Author: Michael Albinus <michael.albinus@gmx.de>
> Commit: Michael Albinus <michael.albinus@gmx.de>
> Stronger check for Tramp method
[...]
> * lisp/net/tramp.el (tramp-dissect-file-name): Check for proper method.
[...]
> --- a/lisp/net/tramp.el
> +++ b/lisp/net/tramp.el
> @@ -1435,6 +1435,12 @@ default values are used."
> (setq v (make-tramp-file-name
> :method method :user user :domain domain :host host
> :port port :localname localname :hop hop))
> + ;; The method must be known.
> + (unless (or (tramp-completion-mode-p)
> + (string-equal method tramp-default-method-marker)
> + (assoc method tramp-methods))
> + (tramp-user-error
> + v "Method `%s' is not known." method))
> ;; Only some methods from tramp-sh.el do support multi-hops.
> (when (and
> hop
Thanks in advance.
Regards,
In GNU Emacs 27.0.50 (build 1, x86_64-pc-cygwin, GTK+ Version 3.22.28)
of 2019-08-08 built on localhost
Windowing system distributor 'The Cygwin/X Project', version 11.0.12004000
\f
Debugger entered--Lisp error: (user-error "Method `' is not known.")
signal(user-error ("Method `' is not known."))
tramp-error((tramp-file-name "" nil nil "jpl.org" nil #("/" 0 1 (fontified nil front-sticky (field inhibit-line-move-field-capture) rear-nonsticky t field output inhibit-line-move-field-capture t)) nil) user-error "Method `%s' is not known." "")
apply(tramp-error (tramp-file-name "" nil nil "jpl.org" nil #("/" 0 1 (fontified nil front-sticky (field inhibit-line-move-field-capture) rear-nonsticky t field output inhibit-line-move-field-capture t)) nil) user-error "Method `%s' is not known." "")
tramp-user-error((tramp-file-name "" nil nil "jpl.org" nil #("/" 0 1 (fontified nil front-sticky (field inhibit-line-move-field-capture) rear-nonsticky t field output inhibit-line-move-field-capture t)) nil) "Method `%s' is not known." "")
tramp-dissect-file-name(#("/jpl.org:/" 9 10 (inhibit-line-move-field-capture t field output rear-nonsticky t front-sticky (field inhibit-line-move-field-capture) fontified nil)) t)
tramp-ftp-file-name-handler(file-exists-p #("/jpl.org:/" 9 10 (inhibit-line-move-field-capture t field output rear-nonsticky t front-sticky (field inhibit-line-move-field-capture) fontified nil)))
apply(tramp-ftp-file-name-handler file-exists-p #("/jpl.org:/" 9 10 (inhibit-line-move-field-capture t field output rear-nonsticky t front-sticky (field inhibit-line-move-field-capture) fontified nil)))
tramp-file-name-handler(file-exists-p #("/jpl.org:/" 9 10 (inhibit-line-move-field-capture t field output rear-nonsticky t front-sticky (field inhibit-line-move-field-capture) fontified nil)))
file-name-case-insensitive-p(#("/jpl.org:/" 9 10 (inhibit-line-move-field-capture t field output rear-nonsticky t front-sticky (field inhibit-line-move-field-capture) fontified nil)))
apply(file-name-case-insensitive-p #("/jpl.org:/" 9 10 (inhibit-line-move-field-capture t field output rear-nonsticky t front-sticky (field inhibit-line-move-field-capture) fontified nil)))
ange-ftp-run-real-handler(file-name-case-insensitive-p (#("/jpl.org:/" 9 10 (inhibit-line-move-field-capture t field output rear-nonsticky t front-sticky (field inhibit-line-move-field-capture) fontified nil))))
ange-ftp-hook-function(file-name-case-insensitive-p #("/jpl.org:/" 9 10 (inhibit-line-move-field-capture t field output rear-nonsticky t front-sticky (field inhibit-line-move-field-capture) fontified nil)))
apply(ange-ftp-hook-function file-name-case-insensitive-p #("/jpl.org:/" 9 10 (inhibit-line-move-field-capture t field output rear-nonsticky t front-sticky (field inhibit-line-move-field-capture) fontified nil)))
tramp-ftp-file-name-handler(file-name-case-insensitive-p #("/jpl.org:/" 9 10 (inhibit-line-move-field-capture t field output rear-nonsticky t front-sticky (field inhibit-line-move-field-capture) fontified nil)))
apply(tramp-ftp-file-name-handler file-name-case-insensitive-p #("/jpl.org:/" 9 10 (inhibit-line-move-field-capture t field output rear-nonsticky t front-sticky (field inhibit-line-move-field-capture) fontified nil)))
tramp-file-name-handler(file-name-case-insensitive-p #("/jpl.org:/" 9 10 (inhibit-line-move-field-capture t field output rear-nonsticky t front-sticky (field inhibit-line-move-field-capture) fontified nil)))
file-name-case-insensitive-p(#("/jpl.org:/" 9 10 (inhibit-line-move-field-capture t field output rear-nonsticky t front-sticky (field inhibit-line-move-field-capture) fontified nil)))
abbreviate-file-name(#("/jpl.org:/" 9 10 (inhibit-line-move-field-capture t field output rear-nonsticky t front-sticky (field inhibit-line-move-field-capture) fontified nil)))
dired-noselect("/jpl.org:~/" nil)
#f(compiled-function (dirname &optional switches) "\"Edit\" directory DIRNAME--delete, rename, print, etc. some files in it.\nOptional second argument SWITCHES specifies the `ls' options used.\n(Interactively, use a prefix argument to be able to specify SWITCHES.)\n\nIf DIRNAME is a string, Dired displays a list of files in DIRNAME (which\nmay also have shell wildcards appended to select certain files).\n\nIf DIRNAME is a cons, its first element is taken as the directory name\nand the rest as an explicit list of files to make directory entries for.\nIn this case, SWITCHES are applied to each of the files separately, and\ntherefore switches that control the order of the files in the produced\nlisting have no effect.\n\n\\<dired-mode-map>You can flag files for deletion with \\[dired-flag-file-deletion] and then\ndelete them by typing \\[dired-do-flagged-delete].\nType \\[describe-mode] after entering Dired for more info.\n\nIf DIRNAME is already in a Dired buffer, that buffer is used without refresh." (interactive (dired-read-dir-and-switches "")) #<bytecode 0x180165f55>)("/jpl.org:~/" nil)
ls-lisp--dired(#f(compiled-function (dirname &optional switches) "\"Edit\" directory DIRNAME--delete, rename, print, etc. some files in it.\nOptional second argument SWITCHES specifies the `ls' options used.\n(Interactively, use a prefix argument to be able to specify SWITCHES.)\n\nIf DIRNAME is a string, Dired displays a list of files in DIRNAME (which\nmay also have shell wildcards appended to select certain files).\n\nIf DIRNAME is a cons, its first element is taken as the directory name\nand the rest as an explicit list of files to make directory entries for.\nIn this case, SWITCHES are applied to each of the files separately, and\ntherefore switches that control the order of the files in the produced\nlisting have no effect.\n\n\\<dired-mode-map>You can flag files for deletion with \\[dired-flag-file-deletion] and then\ndelete them by typing \\[dired-do-flagged-delete].\nType \\[describe-mode] after entering Dired for more info.\n\nIf DIRNAME is already in a Dired buffer, that buffer is used without refresh." (interactive (dired-read-dir-and-switches "")) #<bytecode 0x180165f55>) "/jpl.org:~/")
apply(ls-lisp--dired #f(compiled-function (dirname &optional switches) "\"Edit\" directory DIRNAME--delete, rename, print, etc. some files in it.\nOptional second argument SWITCHES specifies the `ls' options used.\n(Interactively, use a prefix argument to be able to specify SWITCHES.)\n\nIf DIRNAME is a string, Dired displays a list of files in DIRNAME (which\nmay also have shell wildcards appended to select certain files).\n\nIf DIRNAME is a cons, its first element is taken as the directory name\nand the rest as an explicit list of files to make directory entries for.\nIn this case, SWITCHES are applied to each of the files separately, and\ntherefore switches that control the order of the files in the produced\nlisting have no effect.\n\n\\<dired-mode-map>You can flag files for deletion with \\[dired-flag-file-deletion] and then\ndelete them by typing \\[dired-do-flagged-delete].\nType \\[describe-mode] after entering Dired for more info.\n\nIf DIRNAME is already in a Dired buffer, that buffer is used without refresh." (interactive (dired-read-dir-and-switches "")) #<bytecode 0x180165f55>) "/jpl.org:~/")
dired("/jpl.org:~/")
eval((dired "/jpl.org:~/") t)
eval-expression((dired "/jpl.org:~/") nil nil 127)
funcall-interactively(eval-expression (dired "/jpl.org:~/") nil nil 127)
call-interactively(eval-expression nil nil)
command-execute(eval-expression)
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#36969: 27.0.50; tramp ftp fails
2019-08-08 7:33 ` bug#36969: 27.0.50; tramp ftp fails (was Re: master 7aaf500: Stronger check for Tramp method) Katsumi Yamaoka
@ 2019-08-08 8:49 ` Michael Albinus
2019-08-08 21:54 ` Katsumi Yamaoka
0 siblings, 1 reply; 4+ messages in thread
From: Michael Albinus @ 2019-08-08 8:49 UTC (permalink / raw)
To: Katsumi Yamaoka; +Cc: 36969
[-- Attachment #1: Type: text/plain, Size: 258 bytes --]
Katsumi Yamaoka <yamaoka@jpl.org> writes:
> Hi,
Hi,
> The symptom is that it fails with the message:
>
> tramp-error: Method `' is not known.
Oops, that case I haven't tested. The appended patch shall fix it, could
you pls test?
Best regards, Michael.
[-- Attachment #2: Type: text/plain, Size: 541 bytes --]
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el
index 77d727e2f2..7bae434723 100644
--- a/lisp/net/tramp.el
+++ b/lisp/net/tramp.el
@@ -1440,7 +1440,7 @@ tramp-dissect-file-name
:method method :user user :domain domain :host host
:port port :localname localname :hop hop))
;; The method must be known.
- (unless (or (tramp-completion-mode-p)
+ (unless (or nodefault (tramp-completion-mode-p)
(string-equal method tramp-default-method-marker)
(assoc method tramp-methods))
(tramp-user-error
^ permalink raw reply related [flat|nested] 4+ messages in thread
* bug#36969: 27.0.50; tramp ftp fails
2019-08-08 8:49 ` bug#36969: 27.0.50; tramp ftp fails Michael Albinus
@ 2019-08-08 21:54 ` Katsumi Yamaoka
2019-08-09 7:27 ` Michael Albinus
0 siblings, 1 reply; 4+ messages in thread
From: Katsumi Yamaoka @ 2019-08-08 21:54 UTC (permalink / raw)
To: michael.albinus; +Cc: 36969
On Thu, 08 Aug 2019 10:49:17 +0200, Michael Albinus wrote:
> Oops, that case I haven't tested. The appended patch shall fix it, could
> you pls test?
Works fine as before. Thank you!
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#36969: 27.0.50; tramp ftp fails
2019-08-08 21:54 ` Katsumi Yamaoka
@ 2019-08-09 7:27 ` Michael Albinus
0 siblings, 0 replies; 4+ messages in thread
From: Michael Albinus @ 2019-08-09 7:27 UTC (permalink / raw)
To: Katsumi Yamaoka; +Cc: 36969-done
Katsumi Yamaoka <yamaoka@jpl.org> writes:
> Works fine as before.
Thanks for the feedback, I'm closing the bug.
> Thank you!
Best regards, Michael.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-08-09 7:27 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20190604105154.5DDFA209A5@vcs0.savannah.gnu.org>
2019-08-08 7:33 ` bug#36969: 27.0.50; tramp ftp fails (was Re: master 7aaf500: Stronger check for Tramp method) Katsumi Yamaoka
2019-08-08 8:49 ` bug#36969: 27.0.50; tramp ftp fails Michael Albinus
2019-08-08 21:54 ` Katsumi Yamaoka
2019-08-09 7:27 ` Michael Albinus
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).