From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#71200: TRAMP: Trying to do a project-find-file or (find-directory) using the podman method causes a (wrong-type-argument stringp nil) error Date: Thu, 30 May 2024 10:47:10 +0200 Message-ID: <87o78nr8j5.fsf@gmx.de> References: <_cjSz3e_d7dB-G6yi32s-DPrp4mzoDHxqSRzmME4I-ihzlXVEzxQ7vsUrIh5dEk0Ofp56PgvenniYybY9hX4zOgzD-Cuky_G05tWXjOG4YA=@pm.me> <87jzjcg92r.fsf@gmx.de> <878qzsg1qp.fsf@gmx.de> <878qzspvll.fsf@pm.me> <874jagg1al.fsf@gmx.de> <87r0dkefu8.fsf@gmx.de> <-wt3_nsE6oodYaxd5JN1ab1NDts1TOBWr_rFbUljxua0xcKmNyivkT0fPfuGOjfHo3WpDoXgmHNH4E7XTizRifFSDmrwblh7AaEbHBppPRc=@pm.me> <87mso8een1.fsf@gmx.de> Reply-To: Michael Albinus Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14803"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 71200@debbugs.gnu.org, alexispurslane@pm.me To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu May 30 10:48:13 2024 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 1sCbSG-0003gX-S6 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 30 May 2024 10:48:12 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sCbRz-0007Hb-Hi; Thu, 30 May 2024 04:47:55 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sCbRv-0007H6-TX for bug-gnu-emacs@gnu.org; Thu, 30 May 2024 04:47:52 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sCbRv-0006oW-L2 for bug-gnu-emacs@gnu.org; Thu, 30 May 2024 04:47:51 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sCbS5-0007u7-Qh for bug-gnu-emacs@gnu.org; Thu, 30 May 2024 04:48:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 30 May 2024 08:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71200 X-GNU-PR-Package: emacs Original-Received: via spool by 71200-submit@debbugs.gnu.org id=B71200.171705885630324 (code B ref 71200); Thu, 30 May 2024 08:48:01 +0000 Original-Received: (at 71200) by debbugs.gnu.org; 30 May 2024 08:47:36 +0000 Original-Received: from localhost ([127.0.0.1]:53185 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sCbRg-0007t2-4w for submit@debbugs.gnu.org; Thu, 30 May 2024 04:47:36 -0400 Original-Received: from mout.gmx.net ([212.227.15.18]:43113) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sCbRc-0007sW-2C for 71200@debbugs.gnu.org; Thu, 30 May 2024 04:47:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.de; s=s31663417; t=1717058831; x=1717663631; i=michael.albinus@gmx.de; bh=m014WV12cMd6hTDaOLCeI3Q2/6+c1nUYqbWzzTEq3gQ=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=sca4hyW2OVu+o3h/YrZLnMPBiuerlNt5quxjIDRIRhh00O0h3uPMi8PtAn30MyJf wT6ZFL/KbVe7Heg1jRwSY1A9aRdlqZmxizow//wT6hbBlq8ApzjqSYbLpJT3mVRUm Stlvejt9nw21IffKRH/NfOp8LV0jG9wtJX3I4idgQ0659v2fqPXnDVlz8q3YvrCQf jEfX5lewHAbD2bFYPjEI40+V4iJMgoi5Tk4S8Ktn8AWz+mTil2eSSGtMKJ/dxi+1f ZYLu6M/4J3V9DSQkImZh6zRHvOTWS0UQcOa22yC9gpN2RKXZRDiBPK/AATRJLzsux CsYRygFRX7x1SGZRGQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from gandalf.gmx.de ([185.89.38.151]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1N6KYl-1sWp3m0jgP-015YeM; Thu, 30 May 2024 10:47:11 +0200 In-Reply-To: (Dmitry Gutov's message of "Thu, 30 May 2024 00:13:37 +0300") X-Provags-ID: V03:K1:Tt4ODqwRqvBzNFGQkZAQwy/U/GfgUPOJyiWbuc2VCWtIVd0W0Iv myKFyy/anroe1p9gUXLrRL3BA7xLnLRw+BaCWYszX3NMjDjz/eT9TF2NXlnR7bfqtXti1rz 1BwRRRsBR+1iibZd6g8g++0CiM3cpW4hjwhJwroAk+1c59D+u1itF7GyOgiYUeI04ceALj7 j+3WlXQ5rjlb9uSkJUpuw== UI-OutboundReport: notjunk:1;M01:P0:TkGFkS0yk+4=;sdfKqxO7IL+bqZCZhuELIOLQR0c amUIYdrgsAXcqis2hGztfT0oyQW4jP497TNIAzXxWet2o4U332xL8+fFF81OPnGPU8O1qgtM/ 5Ga7B/E6gGyM76RPqhZ0x8/A1U9G9zPGQ06YwZ8d/wx5oXwGUIRwzKR4X8tY3wOJuFExHHEa0 U5nTCWIJ2yt0OB+nUGjnkd+PxaxHQTDoWgbIcXFH6eNdiwAvg3pGZRxWCNo7DcXHsMNloN3u4 W4bdtSumQOmOklAQ8jDjer9nEKIIJLQTOgD3lOmJYuCwgR65BP/BLyENWfVKY+3tdpR554WHq 9iymslNcWcGCyZNP8lDmsFcXx5COIMtGUkiwNUsjlHLm1r/CBm5pIA5rIFkoFbYJqo01iqsDp AULIgNd0f8bgwcs1r/v5/nFtQNJRFFFxim5kWgAeO7iOSTyXgqBxmW3M9+3DQHTjgt8/eSPPZ k7QJ8gYf4xmW7Ow2NMqpmxpQRk0yDzzDuIOTD1/4BTD3jnehF2odg6ugtuhLCkN5MDKuIj76s 3wcF6rQc9IwN+zFkl2x0OjRYmGapTD9Wn9zhlpOpUtVTiVKrMcR9gxipmjguJCVCIKA4xCOm2 +vPnUKo4MKmTaPoFt/z09qwWaAgXh7dYopv/1tmFeCYCaSbCj5OCDBHEm1fFoZAgL91+Y92gs TvwPCCtevh3LnnxjWlA5uFqbcmgGp7uKCF/wlVNW9lX8IlqQCV+FLUoteOQTqhb/ds0j3ylu9 ZmiDW9el2v6bs2JQue/9ASc4WzdrCn32pgge/mclJVYcmAidiy14JMiZVPW9bUBLYZf33XmV 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:286201 Archived-At: Dmitry Gutov writes: > Hi Michael, Hi Dmitry, > Replying in private, just in case. No, this can be discussed publicly :-) >>> I really apologize for not checking this earlier, but it didn't occur >>> to me to test this, it came up naturally: if you try to enter a >>> distrobox that doesn't exist, Emacs will hang and peg one CPU until >>> you hit C-g. But yes I think this bug can be closed for sure >> Well, I don't believe it is up to Tramp to check it. For all >> container-based methods it is requested that the respective container >> is running. In case of toolbox and distrobox, it is sufficient that the >> container is created. If not running, it is started then. > > Sorry to butt in, but it seems the 'docker' transport does some > checking. At least if I enter /docker:asdfg:RET RET (the second one to > confirm), it shows me the error rather quickly: > > Error response from daemon: No such container: asdf > > I guess it might be considered an implementation detail, though. Yes, it always depends on the used client program. I'm on Fedora, so I use the podman case as example. --8<---------------cut here---------------start------------->8--- # podman exec -it asdf /bin/sh -i Error: no container with name or ID "asdf" found: no such container --8<---------------cut here---------------end--------------->8--- podman returns immediately, and Tramp sees the failed process. But it doesn't check anything for the error message. --8<---------------cut here---------------start------------->8--- # distrobox enter -n asdf -- /bin/sh -i Error: no such container asdf Create it now, out of image registry.fedoraproject.org/fedora-toolbox:39? [Y/n]: --8<---------------cut here---------------end--------------->8--- distrobox fails as well, but then it asks interactively how to continue. That's why Emacs is in an infinite loop. Again, such an error isn't checked from Tramp yet. Well, I have added a check to Tramp, this is detected now. Pushed to the repositories. Best regards, Michael.