From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ravi Newsgroups: gmane.emacs.help Subject: Re: Filename auto complete doesn't work in tramp mode Date: Thu, 23 May 2013 17:51:44 +0530 Message-ID: References: <87sj1gsr88.fsf@gmx.de> <519B2A48.1010201@mousecar.com> <87sj1f9zbx.fsf@gmx.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1369311756 1051 80.91.229.3 (23 May 2013 12:22:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 23 May 2013 12:22:36 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Michael Albinus Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu May 23 14:22:36 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UfUXU-0003ah-EX for geh-help-gnu-emacs@m.gmane.org; Thu, 23 May 2013 14:22:36 +0200 Original-Received: from localhost ([::1]:59126 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UfUXT-0001tb-TR for geh-help-gnu-emacs@m.gmane.org; Thu, 23 May 2013 08:22:35 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:60277) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UfUX5-0001eR-KG for help-gnu-emacs@gnu.org; Thu, 23 May 2013 08:22:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UfUWz-0004Ns-QB for help-gnu-emacs@gnu.org; Thu, 23 May 2013 08:22:11 -0400 Original-Received: from mail-oa0-f44.google.com ([209.85.219.44]:55557) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UfUWz-0004Nb-G8 for help-gnu-emacs@gnu.org; Thu, 23 May 2013 08:22:05 -0400 Original-Received: by mail-oa0-f44.google.com with SMTP id n12so4297037oag.3 for ; Thu, 23 May 2013 05:22:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=c7RMXqDLqRt5Zn9Zspddqz+i4dAYmkK2rPy5qMNTJGw=; b=CcGfcU9fBOsn7nlX5dX7AkmE9HPf4Zv02Xn6g4gFfAV/erFTR40IyS4Qllk4O4x+aE pHF5WY/zx4YdFb7exgAtOJUAdIeBmU7Bv2ABXdOoTBAq/vSVAWFWg18DIas3EdtwbKhj FHnm5tKsmW65rDJ1+/NV3Ud+t8yae6OCVWQgiQkyGXrcsl3Z6Ig2J1f4G11RSJdBBtGd P05DvM63wrMLSksOTHMpqfZuGavYY8PWzakYXCZpBa9kfLKmrnBPdtsqt66K2xLLfWs5 xB5xjBPy8gFdHmcPfJXQQ5Mn0KBnblLKz+ncBNOTMcrr4iX2cBBubfF8EGC4fLtvoXTb SkxA== X-Received: by 10.60.155.177 with SMTP id vx17mr8362938oeb.9.1369311724718; Thu, 23 May 2013 05:22:04 -0700 (PDT) Original-Received: by 10.76.168.102 with HTTP; Thu, 23 May 2013 05:21:44 -0700 (PDT) In-Reply-To: <87sj1f9zbx.fsf@gmx.de> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.219.44 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:90995 Archived-At: > > Hi Ravi, > =E2=80=8BHi 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 accessin= g > `/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. > =E2=80=8B =E2=80=8BThanks, at least its some start! I do not know Perl and know littl= e elisp but will surely try to triage the problem as much as I can.=E2=80=8B =E2=80=8B 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? > =E2=80=8B =E2=80=8BI performed the actions as you mentioned. Following are the result= s: 1. After =E2=80=8B"M-x tramp-cleanup-all-connections" , C-x C-f , enter pat= h 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.=E2=80=8B 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. > =E2=80=8BThe log =E2=80=8Bis available in base64 encoding at: http://pasteb= in.com/qbbAFC8n (you can copy paste text in a text editor, save it and run command "base64 -d " to get original contents) > Best regards, Michael. > =E2=80=8BThanks a lot for you efforts Michael. -Ravi=E2=80=8B