unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Ravi <ra.ravi.rav@gmail.com>
To: Michael Albinus <michael.albinus@gmx.de>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Filename auto complete doesn't work in tramp mode
Date: Thu, 23 May 2013 17:51:44 +0530	[thread overview]
Message-ID: <CAFQs6PeVMm_uu0JPnYwt+aM8dJ-b96AT4VMy8hZaJn8H+aOMXg@mail.gmail.com> (raw)
In-Reply-To: <87sj1f9zbx.fsf@gmx.de>

>
> Hi Ravi,
>

​Hi Michael,

In the debug output, there is the following sequence (shortened):
>
> 00:10:03.198174 tramp-send-command (6) #
> tramp_perl_file_name_all_completions /home/username/ '' 0
> 00:10:03.513918 tramp-wait-for-regexp (6) #
> ///4a9849cafd12e16baecfd05f1384e262#$
> 00:10:03.514405 tramp-sh-handle-file-name-all-completions (1) # File
> error: tramp-sh-handle-file-name-all-completions: internal error accessing
> `/home/username/': `'
>
> That means, that Tramp sends the command
> "tramp_perl_file_name_all_completions /home/username/ '' 0", which is an
> internal shell function which Tramp has declared earlier. It returns an
> empty output, "///4a9849cafd12e16baecfd05f1384e262#$" is just the shell
> prompt for Tramp.
>
> That internal shell function does not work correctly; it shall return as
> last output line "ok\n". 'Cause this line is missing, Tramp speaks about
> an internal error.
>
​
​Thanks, at least its some start! I do not know Perl and know little elisp
but will surely try to triage the problem as much as I can.​
​

So we need to debug that shell function, which is mainly the call of a
> Perl script.
>
> First step is to check, that there are no wrong connection properties
> left in Tramp due to a previous connection. Could you, please, perform
> "M-x tramp-cleanup-all-connections" and rerun the test?
>
​
​I performed the actions as you mentioned. Following are the results:

1. After ​"M-x tramp-cleanup-all-connections" , C-x C-f , enter path as
"/scpc:myserver_name_changed.com:/home/" and pres TAB. It asks for
passphrase and opens the connection, which succeeds. But it gives the error:

"ssh: Could not resolve hostname scpc: Name or service not known"

2. Do C-x C-f again, enter path: "/scpc:myserver_name_changed.com:/home/"
and press TAB. It will wait for the command to complete and will show "[No
match]" next to path in mini-buffer.​

I would also like to see the *whole* debug buffer of that test. If you
> do not want to publish it due to internal sensitive information, you
> might send it to me directly.
>

​The log ​is available in base64 encoding at: http://pastebin.com/qbbAFC8n
(you can copy paste text in a text editor, save it and run command "base64
-d <filename>" to get original contents)



> Best regards, Michael.
>

​Thanks a lot for you efforts Michael.
-Ravi​


  reply	other threads:[~2013-05-23 12:21 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-21  6:27 Filename auto complete doesn't work in tramp mode Ravi
2013-05-21  7:54 ` Michael Albinus
2013-05-21  8:03   ` ken
2013-05-22  6:35     ` Ravi
2013-05-22  8:46       ` Michael Albinus
2013-05-23 12:21         ` Ravi [this message]
2013-05-23 13:03           ` Michael Albinus
2013-05-23 14:23             ` Ravi
2013-05-24  7:17               ` Michael Albinus
2013-05-24 13:22                 ` Ravi
2013-05-22  6:34   ` Ravi

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=CAFQs6PeVMm_uu0JPnYwt+aM8dJ-b96AT4VMy8hZaJn8H+aOMXg@mail.gmail.com \
    --to=ra.ravi.rav@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=michael.albinus@gmx.de \
    /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.
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).