From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: dag via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#46568: 27.1; TRAMP: wrong-argument-type processp: nil on find-file Date: Thu, 18 Feb 2021 12:20:35 -0600 Message-ID: References: <87tuqbu5px.fsf@gmx.de> Reply-To: dag Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="602eaff3_28fd3810_5f7" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16785"; mail-complaints-to="usenet@ciao.gmane.io" Cc: David@debbugs.gnu.org, Greene@debbugs.gnu.org, via@debbugs.gnu.org, Bug@debbugs.gnu.org, reports@debbugs.gnu.org, for@debbugs.gnu.org, GNU@debbugs.gnu.org, Emacs@debbugs.gnu.org, 46568@debbugs.gnu.org To: "Michael Albinus" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Feb 18 19:21:21 2021 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 1lCnvU-0004DU-B6 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 18 Feb 2021 19:21:20 +0100 Original-Received: from localhost ([::1]:35244 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lCnvT-0001vg-9M for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 18 Feb 2021 13:21:19 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47096) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lCnvD-0001uc-Hp for bug-gnu-emacs@gnu.org; Thu, 18 Feb 2021 13:21:05 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36415) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lCnvD-0007SV-05 for bug-gnu-emacs@gnu.org; Thu, 18 Feb 2021 13:21:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lCnvC-0005fG-S7 for bug-gnu-emacs@gnu.org; Thu, 18 Feb 2021 13:21:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: dag Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 18 Feb 2021 18:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46568 X-GNU-PR-Package: emacs X-Debbugs-Original-Cc: David Greene via Bug reports for GNU Emacs, the Swiss army knife of text editors , 46568@debbugs.gnu.org Original-Received: via spool by 46568-submit@debbugs.gnu.org id=B46568.161367244921689 (code B ref 46568); Thu, 18 Feb 2021 18:21:02 +0000 Original-Received: (at 46568) by debbugs.gnu.org; 18 Feb 2021 18:20:49 +0000 Original-Received: from localhost ([127.0.0.1]:47953 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lCnuv-0005dh-Ov for submit@debbugs.gnu.org; Thu, 18 Feb 2021 13:20:49 -0500 Original-Received: from [216.160.0.40] (port=50048 helo=smtp.obbligato.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lCnur-0005dQ-FZ for 46568@debbugs.gnu.org; Thu, 18 Feb 2021 13:20:45 -0500 Original-Received: from victor (localhost [127.0.0.1]) by smtp.obbligato.org (Postfix) with ESMTPA id 61F9E4133F0; Thu, 18 Feb 2021 12:20:35 -0600 (CST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=obbligato.org; s=199568; t=1613672435; bh=rF65YOjtrIOQRlu258wBmkEHyZ4I4+xjEcFQZbv4uek=; h=Date:From:To:Cc:In-Reply-To:References:Subject; b=TeDkzkVuAeADAnL11V5MKIM+b2YJDvdSv/TD2SQVrRTmSoHWE3dNvh7mr72VLZmu/ fSDoGJ77uKIt/FZvB7r+rUF+Lb0UCjWgjMFL0+VXyr46IL0gCFLcXPsgndL7buUQ+4 aJFtJP6YfKbkikk6aoiAoF+kG5a8zxNT0GmiyK/Q= In-Reply-To: <87tuqbu5px.fsf@gmx.de> X-Synology-MCP-Status: no X-Synology-Spam-Flag: no X-Synology-Spam-Status: score=0.4, required 5, TO_DN_SOME 0, __THREADED 0, CC_EXCESS_QP 0, HTML_MESSAGE 0.001, FREEMAIL_TO 0, RCVD_COUNT_ZERO 0, FROM_EQ_ENVFROM 0, MIME_TRACE 0, __NOT_SPOOFED 0, NO_RECEIVED -0.001, FROM_HAS_DN 0, RCPT_COUNT_THREE 0, TO_MATCH_ENVRCPT_ALL 0, FREEMAIL_ENVRCPT 0, MIME_GOOD -0.1, HTML_MISSING_CTYPE 0, MID_RHS_NOT_FQDN 0.5, __KHOP_NO_FULL_NAME 0 X-Synology-Virus-Status: no 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:200278 Archived-At: --602eaff3_28fd3810_5f7 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello Michael, emacs -Q does indeed make the problem go away. I eventually tracked it down to this line in my config: (add-to-list 'tramp-remote-path 'tramp-own-remote-path) When I commented that out, things started working, but of course then TRAMP couldn't find some remote executables (git for magit, for example). Curiously, swapping back to emacs 26 and then uncommenting that line kept things working. Which is odd because emacs 26 is where things started going wrong and I had upgraded to emacs 27 to see if it would be fixed. I had previously disabled some small packages in my config that I wasn't really using, but was still seeing failures until the line above was commented out. So I don't think those packages have anything to do with this. It's a mystery, but it's at least working now, for unknown reasons. As I noted in th bug report, things just stopped working without any config changes on my end, so I'm not sure what the cause was. Just as mysteriously, they're now working aga in. David On 2021-02-16 14:18, Michael Albinus wrote: > > David Greene via "Bug reports for GNU Emacs, the Swiss army knife of > text editors" writes: > > Hi David, > > > I am getting the above error when doing a find-file in a vterm buffer > > with a remote shell. I have not changed anything recently in my config > > and I don't think the remote host has changed, but can't be sure since I > > don't control it. > > > > I have also seen a message about TRAMP not finding the command to check > > file existance. > > > > I have tried both 26.2 and 27.1 with no change in behavior. Previously > > I had ivy/counsel enabled but even after disabling it the error still > > occurs. > > Does this also happen if you start "emacs -Q"? > > > Here's a (sani tized) TRAMP debug log: > > > > backtrace() > > tramp-signal-hook-function(wrong-type-argument ("processp nil")) > > signal(wrong-type-argument ("processp nil")) > > tramp-maybe-open-connection((tra mp-file-name #("ssh" 0 3 (tramp-default t)) "user" nil "host" nil "/path/user/src/project/README.md" nil)) > > tramp-send-command((tramp-file-name #("ssh" 0 3 (tramp-default t)) "user" nil "host" nil "/path/user/src/project/README.md" nil) "test 0 2>/dev/null; echo tramp_exit_status $?") > > tramp-send-command-and-check((tramp-file-name #("ssh" 0 3 (tramp-default t)) "user" nil "host" nil "/path/user/src/project/README.md" nil) "test 0") > > tramp-get-test-command((tramp-file-name #("ssh" 0 3 (tramp-default t)) "user" nil "host" nil "/path/user/src/project/README.md" nil)) > > tramp-run-test("-d" #("/ssh:user@host:/path/user/src/project/RE..." 1 4 (tramp-default t))) > > tramp-sh-handle-file-directory-p(#("/ssh:user@host:/path/user/src/project/RE..." 1 4 (tramp-default t))) > > apply(tramp -sh-handle-file-directory-p #("/ssh:user@host:/path/user/src/project/RE..." 1 4 (tramp-default t))) > > tramp-sh-file-name-handler(file-directory-p #("/ssh:user@host:/path/user/src/project/RE..." 1 4 (tramp-default t))) > > apply(tramp-sh-file-name-handler file-directory-p #("/ssh:user@host:/path/user/src/project/RE..." 1 4 (tramp-default t))) > > tramp-file-name-handler(file-directory-p #("/ssh:user@host:/path/user/src/project/RE..." 1 4 (tramp-default t))) > > file-directory-p(#("/ssh:user@host:/path/user/src/project/RE..." 1 4 (tramp-default t))) > > find-file-noselect(#("/ssh:user@host:/path/user/src/project/RE..." 1 4 (tramp-default t)) nil nil t) > > find-file(#("/ssh:user@host:/path/user/src/project/RE..." 1 4 (tramp-default t)) t) > > funcall-interactively(find-file #("/ssh:user@host:/path/user/src/project/RE..." 1 4 (tramp-default t)) t) > > call-interactively(find-file nil nil) > > command-execute(find-file) > > That doesn't tell too much. If the test above doesn't help, co uld you > please start > > # emacs -Q --eval '(setq tramp-verbose 6)' > > and rerun the test? There will be a Tramp debug buffer; pls show it. > > Best regards, Michael. --602eaff3_28fd3810_5f7 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Hello Michael,
 
emacs -Q does indeed make the problem go away.  I eventually tr= acked it down to this line in my config:
 
(add-to-list 'tramp-remote-path 'tramp-own-remote-path)
 
When I commented that out, things started working, but of course the= n TRAMP couldn't find some remote executables (git for magit, for example= ).
 
Curiously, swapping back to emacs 26 and then uncommenting that line= kept things working.  Which is odd because emacs 26 is where
things started going wrong and I had upgraded to emacs 27 to see if = it would be fixed.
 
I had previously disabled some small packages in my config that I wa= sn't really using, but was still seeing failures until the line above was=
commented out.  So I don't think those packages have anything t= o do with this.
 
It's a mystery, but it's at least working now, for unknown reasons.&= nbsp; As I noted in th bug report, things just stopped working witho= ut any
config changes on my end, so I'm not sure what the cause was.  = Just as mysteriously, they're now working again.
 
David
 
On 2021-02-16 14:18, Michael Albinus <michael.albinus=40gmx.de>= ; wrote:
David Greene via =22Bug reports for GNU Emacs, the Swiss army knife =
of
text editors=22 <bug-gnu-emacs=40gnu.org> writes:

Hi David,

> I am getting the above error when doing a fin= d-file in a vterm buffer
> with a remote shell. I have not change= d anything recently in my config
> and I don't think the remote h= ost has changed, but can't be sure since I
> don't control it.>
> I have also seen a message about TRAMP not finding the = command to check
> file existance.
>
> I have tri= ed both 26.2 and 27.1 with no change in behavior. Previously
> I= had ivy/counsel enabled but even after disabling it the error still
> occurs.

Does this also happen if you start =22emacs -Q=22= =3F

> Here's a (sanitized) TRAMP debug log:
>
= > backtrace()
> tramp-signal-hook-function(wrong-type-argu= ment (=22processp nil=22))
> signal(wrong-type-argument (=22pro= cessp nil=22))
> tramp-maybe-open-connection((tramp-file-name =23= (=22ssh=22 0 3 (tramp-default t)) =22user=22 nil =22host=22 nil =22/path/= user/src/project/README.md=22 nil))
> tramp-send-command((tramp= -file-name =23(=22ssh=22 0 3 (tramp-default t)) =22user=22 nil =22host=22= nil =22/path/user/src/project/README.md=22 nil) =22test 0 2>/dev/null= ; echo tramp=5Fexit=5Fstatus =24=3F=22)
> tramp-send-command-an= d-check((tramp-file-name =23(=22ssh=22 0 3 (tramp-default t)) =22user=22 = nil =22host=22 nil =22/path/user/src/project/README.md=22 nil) =22test 0=22= )
> tramp-get-test-command((tramp-file-name =23(=22ssh=22 0 3 (= tramp-default t)) =22user=22 nil =22host=22 nil =22/path/user/src/project= /README.md=22 nil))
> tramp-run-test(=22-d=22 =23(=22/ssh:user=40= host:/path/user/src/project/RE...=22 1 4 (tramp-default t)))
> = tramp-sh-handle-file-directory-p(=23(=22/ssh:user=40host:/path/user/src/p= roject/RE...=22 1 4 (tramp-default t)))
> apply(tramp-sh-handle= -file-directory-p =23(=22/ssh:user=40host:/path/user/src/project/RE...=22= 1 4 (tramp-default t)))
> tramp-sh-file-name-handler(file-dire= ctory-p =23(=22/ssh:user=40host:/path/user/src/project/RE...=22 1 4 (tram= p-default t)))
> apply(tramp-sh-file-name-handler file-director= y-p =23(=22/ssh:user=40host:/path/user/src/project/RE...=22 1 4 (tramp-de= fault t)))
> tramp-file-name-handler(file-directory-p =23(=22/s= sh:user=40host:/path/user/src/project/RE...=22 1 4 (tramp-default t)))> file-directory-p(=23(=22/ssh:user=40host:/path/user/src/project= /RE...=22 1 4 (tramp-default t)))
> find-file-noselect(=23(=22/= ssh:user=40host:/path/user/src/project/RE...=22 1 4 (tramp-default t)) ni= l nil t)
> find-file(=23(=22/ssh:user=40host:/path/user/src/pro= ject/RE...=22 1 4 (tramp-default t)) t)
> funcall-interactively= (find-file =23(=22/ssh:user=40host:/path/user/src/project/RE...=22 1 4 (t= ramp-default t)) t)
> call-interactively(find-file nil nil)
> command-execute(find-file)

That doesn't tell too much= . If the test above doesn't help, could you
please start

= =23 emacs -Q --eval '(setq tramp-verbose 6)'

and rerun the tes= t=3F There will be a Tramp debug buffer; pls show it.

Best reg= ards, Michael.
--602eaff3_28fd3810_5f7--