unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: Matt McClure <matthewlmcclure@gmail.com>
Cc: tramp-devel@gnu.org, emacs-devel@gnu.org
Subject: Re: TRAMP: Host name must not match method ...
Date: Fri, 16 Aug 2013 15:15:10 +0200	[thread overview]
Message-ID: <87y581dbfl.fsf@gmx.de> (raw)
In-Reply-To: <CAJELnLHUh3X68Z8nyA=LnXdBBJpqweU6VuRbnKWw8iLogvVT7w@mail.gmail.com> (Matt McClure's message of "Wed, 14 Aug 2013 09:06:55 -0400")

Matt McClure <matthewlmcclure@gmail.com> writes:

> Hi,

Hi Matt,

> In recent nightly builds of Emacs, I'm struggling to use TRAMP file
> paths as I've usually done. I'm getting an error message "Host name
> must not match method `ssh'".
>
> Here's a minimal test case:
>
>     $ open -a Emacs --args -Q --no-site-file
>
> Then:
>
>     C-x C-f /ssh:vagrant@192.168.33.2:/ RET

I'm not able to reproduce it. Trying with other IP address and user name
of course, but it works locally (as every single day) for me.

> Here's what *Messages* says:
>
>     For information about GNU Emacs and the GNU system, type C-h C-a.
>     Tramp: Opening connection for vagrant@192.168.33.2 using ssh...
>     Tramp: Sending command `exec ssh -l vagrant  -o
> ControlPath=/var/folders/_d/5p0jtv397qs73qr_frd6bw180000gn/T/tramp.9409723.%r@%h:%p
> -o ControlMaster=auto -o ControlPersist=no -e none 192.168.33.2'
>     Tramp: Waiting for prompts from remote shell...done
>     Tramp: Found remote shell prompt on `192.168.33.2'
>     Tramp: Opening connection for vagrant@192.168.33.2 using ssh...done
>     completion--some: Host name must not match method `ssh'

It is unclear where the error comes from. Could you, please, perform

(setq debug-on-error t tramp-verbose 6)

and rerun the test. There might be a backtrace, and there will be a
Tramp debug buffer. Both might show us what's up.

> I tried to reproduce more succinctly with:
>
>     $ open -a Emacs --args -Q --no-site-file --eval '(find-file
> "/ssh:vagrant@192.168.33.2:/")'
>
> To my surprise, it worked as intended rather than failing. So maybe
> that's a clue.

No, this doesn't help. The test in Tramp is not performed when you are
not in interactive mode. So it is normal that it works for you this way.

Best regards, Michael.



  reply	other threads:[~2013-08-16 13:15 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-14 13:06 TRAMP: Host name must not match method Matt McClure
2013-08-16 13:15 ` Michael Albinus [this message]
2013-08-17 17:18   ` Matt McClure
2013-08-17 17:41     ` Matt McClure
2013-08-19 10:25       ` Michael Albinus
2013-08-19 12:07     ` Michael Albinus
2013-08-20  2:38       ` Matt McClure
2013-08-20 10:06         ` Michael Albinus
2013-08-27 20:01           ` Matt McClure

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y581dbfl.fsf@gmx.de \
    --to=michael.albinus@gmx.de \
    --cc=emacs-devel@gnu.org \
    --cc=matthewlmcclure@gmail.com \
    --cc=tramp-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).