From unknown Sat Aug 16 18:45:33 2025 X-Loop: help-debbugs@gnu.org Subject: bug#76950: tramp caches non-existing podman containers Resent-From: Konstantin Kharlamov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 11 Mar 2025 17:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 76950 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 76950@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.17417145833537 (code B ref -1); Tue, 11 Mar 2025 17:37:02 +0000 Received: (at submit) by debbugs.gnu.org; 11 Mar 2025 17:36:23 +0000 Received: from localhost ([127.0.0.1]:45416 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ts3Wh-0000uy-De for submit@debbugs.gnu.org; Tue, 11 Mar 2025 13:36:23 -0400 Received: from lists.gnu.org ([2001:470:142::17]:49686) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ts3Wc-0000ue-LW for submit@debbugs.gnu.org; Tue, 11 Mar 2025 13:36:19 -0400 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 1ts3WQ-0007C4-Eq for bug-gnu-emacs@gnu.org; Tue, 11 Mar 2025 13:36:11 -0400 Received: from forward103a.mail.yandex.net ([178.154.239.86]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ts3WL-0006c5-3k for bug-gnu-emacs@gnu.org; Tue, 11 Mar 2025 13:36:06 -0400 Received: from mail-nwsmtp-smtp-production-main-95.vla.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-95.vla.yp-c.yandex.net [IPv6:2a02:6b8:c1f:644d:0:640:2ef6:0]) by forward103a.mail.yandex.net (Yandex) with ESMTPS id 7F40B60AC6 for ; Tue, 11 Mar 2025 20:35:52 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-95.vla.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id pZuMInHLcW20-73QdvmbO; Tue, 11 Mar 2025 20:35:52 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1741714552; bh=UfrmXHnWRg0DCBuS1rwL7UmTlGB4Lj912gh4i1wNE+I=; h=Date:To:From:Subject:Message-ID; b=NAKH0f1xy11CBCm3g8v66WMK07EDgkHD8oQNeJdDoWyFTTHYp43Js9ubi+SLUNED9 uZKGWNhMAtfh5Jiu2XBVB8umqPL4jWFVwbBg8fI4GxT/qA1meaty6hNljt65J1bzTO HOVT1BVNoR/ntiTcd8vGI2z5aFjMCtdpNJDnZ8lY= Authentication-Results: mail-nwsmtp-smtp-production-main-95.vla.yp-c.yandex.net; dkim=pass header.i=@yandex.ru Message-ID: <697c898fad1f3666a6b7263a79ab14913256e578.camel@yandex.ru> From: Konstantin Kharlamov Date: Tue, 11 Mar 2025 20:35:51 +0300 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.54.3 MIME-Version: 1.0 Received-SPF: pass client-ip=178.154.239.86; envelope-from=Hi-Angel@yandex.ru; helo=forward103a.mail.yandex.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) When tramp is used to connect to a container, it provides completion based on what containers are currently running. However, after containers exit, the completion annoyingly still enlists those dead containers. # Steps to reproduce 1. Run any container, e.g.: `podman run --rm -it ubuntu:24.04` 2. Start Emacs as `emacs -Q --eval "(require 'tramp)"` 3. Press `C-x C-f /podman:`, then press TAB to complete the minibuffer text to container name (it should get completed). 4. Cancel with C-g 5. Exit the container 6. Repeat step 3 ## Expected You'd get no completion because no containers are running. ## Actual You'd get completion for the non-existing container. # Version Emacs built yesterday from master, commit 94ba1b097ed12b9b77ecef4899c18b46b7e2dd36 From unknown Sat Aug 16 18:45:33 2025 X-Loop: help-debbugs@gnu.org Subject: bug#76950: tramp caches non-existing podman containers Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 11 Mar 2025 19:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 76950 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Konstantin Kharlamov Cc: 76950@debbugs.gnu.org Received: via spool by 76950-submit@debbugs.gnu.org id=B76950.17417209822130 (code B ref 76950); Tue, 11 Mar 2025 19:24:02 +0000 Received: (at 76950) by debbugs.gnu.org; 11 Mar 2025 19:23:02 +0000 Received: from localhost ([127.0.0.1]:45794 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ts5Bt-0000Y3-Th for submit@debbugs.gnu.org; Tue, 11 Mar 2025 15:23:02 -0400 Received: from mout.gmx.net ([212.227.15.19]:34727) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ts5Bq-0000Xb-BH for 76950@debbugs.gnu.org; Tue, 11 Mar 2025 15:22:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.de; s=s31663417; t=1741720971; x=1742325771; i=michael.albinus@gmx.de; bh=IEkRhFzjCWmmWe8+8RDYqpt2+9JuUZ4WLjjE6qFna+Q=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:cc: content-transfer-encoding:content-type:date:from:message-id: mime-version:reply-to:subject:to; b=jQxSO5VVIj2dqKH8JLOr5hHUah6wHZWcvvNuEsxaWy31zjdKcgaUVyyCM1XSY345 OzITDSB0rrRWs1ut3piRRmN+ijo/tuuo6WeGC8L9P5sVuYPn7XX//xfjlpH3iSNvO mnATa1dAMECOLtBZVHXF2ZT8+9KAqRB7gbLDVmM+tSdKsEfU3WxNU7qW6he8Krgm9 MGxWNX2EvCmxshMom4udnJDrUR9trCTFXwPZv5rNgSVCTXZA2ut6WqZkOvxxydrmV rE/codDIr04nNxr8rIUNWf4q4V9QisonigdcDUgmHN97D3VNUXln9XfA1DwK/I0Ko bJnqCJrIy0uXfLi5EQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from gandalf.gmx.de ([185.89.37.59]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1Mf07E-1tH6kC3UHS-00ZgEa; Tue, 11 Mar 2025 20:22:50 +0100 From: Michael Albinus In-Reply-To: <697c898fad1f3666a6b7263a79ab14913256e578.camel@yandex.ru> References: <697c898fad1f3666a6b7263a79ab14913256e578.camel@yandex.ru> Date: Tue, 11 Mar 2025 20:22:47 +0100 Message-ID: <874izzpe2g.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:ZvoLaXf3ep4QHtREBLMaPyzSK1ZerR2VgO2SAMrZ3JD6qqsLyQQ jB5EfjUEAfBKGj4Q0veJgyVT5FBZXBDzB0OKDemAYI4KTG4zXTbfyz885glHZCcffTBPSag 7VtLLy3NfnAefY7g1fAkXZkr2a1ob23w43IAU6XyC+PwwZhxwpaIjdOdrwdgHxV0j/ivZkk GV/54vOIvA30wWjPJk1vA== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:49jas5SbzZ8=;7sgI/7kc4kAMIXAwh6J0SwfztEX w4oarctgp4FlzUhibzJ3vVATmd4HO5QmwnqFX4BQkiWLgXcMUmqQWnud5yRDmILwd6VXorjCf /d6s/dZj270gqghiOZfbd/NzXpnPlFuIS3U0Mk+G+FxOSQ+UFzZzXbWum2HcYycbcehzLqTPm rV8nMm/h1hViVsMCk+6MsPvpDisuT5TChFN8W/iPNf4sCXbG5LjO0gHX65Yg32/YYr0kqNddY FYzJKuysqqfOFg4/i8GoBcANRxyFdM/7OGb2d+4B2r6/+03JiMffFO9pqfIaa7tyHXLbhl96B NzbTh3xOqMMBvmFVLyzUAGsx3JTxDiLMdPfeUmar0TZWMlBhwO5L47u/U1vJAiBncFU094qBw H8vcqBQahZnbtRRRIXWWPvCX/DDAaU8g8JQqeHDkD5IOyHSWBar4IsLR7BEihYa0ncyX3G31W HlDIXqUhzghvEMWhWJ9u0Vmxwq+Q2aaEiahdDn5MKDsJhEErX9xnsMSge39KB34NELjbiV3oQ mhinG8bcfJuSWagN8P+cKGsnJk3O4zqWRkoNmwxT8XluBwAfkQAa7m381V7xv3DTL8Vc/GqWV v8kqV7aDtnpdpOf+2vk3BhJTT/TaibzuclVbeiYeVnKE6QrEUIdUARNKNho2P6aVrGYZUIwp9 XXRDZTqUqabBYcHSH6BVFm6VRFNQ9VSMWe4vJduDe77+2X/X0brpTBMfaOAudMB+SwFC9lGcb 1FRSFrzVvwYfUkgYFG6F9GeKy50O/mCNQudJbraRDpPck4Yn0Gi801JiiQEsWMD9XCYa30gsi iAlghImJxLUl6nZsu9JVLbmXLiUmO1vl4QnqLMShFI2jZ3oSovNCpTuUjOfsylkoANmcFg6Qg NEVOvaFTM9Dp81fWKT1F5e+x7dbMbwiW3EF3tB2h8qita4A6GlhHDwvaePUgIEWRjndabzpVn smEjkoZJ6shLHoMVJdANafefputIvNx4wxjgPuRaOpvhM+Toui5keKNhuCOslXE/O42lLzyDk NQbfBs2muGsuy/b/cZq1jpG1xL3UJK5ZDapW68vsXRaTt48cHYnsBXJd+sxoynEFqiH6jseKU VTmNj/wJARKUuHmgrVMP0OdkQuZJKh3XmwnTZFtlsu0Ybm9XcimQdc/lG2aH8oEZajfctuqJG 0h5Nytai490098Pp97h+e6OIkuBxlqcKtxb+v/1WfNcvreTkmr9qOnQbZLmUHUVRD05n4b2u0 p2QxV7LOeqOCqDcwfzUP7hJ+8kj3bIxq59hffN/s4C8m+fiKWHU4Pq//wY/lBtlQPXX5wWxAD Hp17wkhfV+R+y3qof77kiAaLjgREsM0hvjNydHkIpwtkfJ0+YtJ6VGtmxCPHlExSy8mZ8h5uw Wn3KI2rhIRPL76E7yp427RAOa6PgkTE8yFbr2gityrrHHZH0N0VhpW5vHmm73Cl55Q4aOTvPu pmi4Tos2w1rqKC14XECG8iCAi3Hgk0iw671xMpiLsXY+cpAHA X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Konstantin Kharlamov writes: Hi Konstantin, > When tramp is used to connect to a container, it provides completion > based on what containers are currently running. However, after > containers exit, the completion annoyingly still enlists those dead > containers. > > # Steps to reproduce > > 1. Run any container, e.g.: `podman run --rm -it ubuntu:24.04` > 2. Start Emacs as `emacs -Q --eval "(require 'tramp)"` > 3. Press `C-x C-f /podman:`, then press TAB to complete the minibuffer > text to container name (it should get completed). > 4. Cancel with C-g > 5. Exit the container > 6. Repeat step 3 > > ## Expected > > You'd get no completion because no containers are running. > > ## Actual > > You'd get completion for the non-existing container. See the Tramp manual, (info "(tramp) File name completion") --8<---------------cut here---------------start------------->8--- Remote hosts previously visited or hosts whose connections are kept persistently (*note Connection caching::) will be included in the completion lists. If you want to suppress this completion because there are invalid entries in the persistency file, for example if the host configuration changes often, or if you plug your laptop to different networks frequently, you can set the user option =E2=80=98tramp-completion-use-cache=E2=80=99 to =E2=80=98nil=E2=80=99. --8<---------------cut here---------------end--------------->8--- Best regards, Michael. From unknown Sat Aug 16 18:45:33 2025 X-Loop: help-debbugs@gnu.org Subject: bug#76950: tramp caches non-existing podman containers Resent-From: Konstantin Kharlamov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 11 Mar 2025 19:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 76950 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Michael Albinus Cc: 76950@debbugs.gnu.org Received: via spool by 76950-submit@debbugs.gnu.org id=B76950.17417213433124 (code B ref 76950); Tue, 11 Mar 2025 19:30:02 +0000 Received: (at 76950) by debbugs.gnu.org; 11 Mar 2025 19:29:03 +0000 Received: from localhost ([127.0.0.1]:45803 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ts5Hi-0000oK-Ng for submit@debbugs.gnu.org; Tue, 11 Mar 2025 15:29:03 -0400 Received: from forward501d.mail.yandex.net ([178.154.239.209]:48520) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ts5He-0000nd-P5 for 76950@debbugs.gnu.org; Tue, 11 Mar 2025 15:29:00 -0400 Received: from mail-nwsmtp-smtp-production-main-78.klg.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-78.klg.yp-c.yandex.net [IPv6:2a02:6b8:c42:c54a:0:640:3e90:0]) by forward501d.mail.yandex.net (Yandex) with ESMTPS id F1F6561288; Tue, 11 Mar 2025 22:28:48 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-78.klg.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id lSwvlPHLma60-WNhgcYuh; Tue, 11 Mar 2025 22:28:48 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1741721328; bh=PjuaN5afb9IMeOdUeHA3n684/o9SXesXi5m2lhJHE/Y=; h=References:Date:In-Reply-To:Cc:To:From:Subject:Message-ID; b=pCQvOoCQPSPZnl7qyoZLXJiXtHbDL16840rONpur3JYnt+zQ4qjcRlKQS1uNzJfSG KT6a++EIjgjQta7fqDrfszmCVIpf2Nm7a3hBf1wxltc93r2CRCfJjXN8LZW0XCMFVu RTIfWcY3t6pSbKIOr2Gv/GsFA5v7+EXduqRG7AXY= Authentication-Results: mail-nwsmtp-smtp-production-main-78.klg.yp-c.yandex.net; dkim=pass header.i=@yandex.ru Message-ID: From: Konstantin Kharlamov Date: Tue, 11 Mar 2025 22:28:47 +0300 In-Reply-To: <874izzpe2g.fsf@gmx.de> References: <697c898fad1f3666a6b7263a79ab14913256e578.camel@yandex.ru> <874izzpe2g.fsf@gmx.de> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.54.3 MIME-Version: 1.0 X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Tue, 2025-03-11 at 20:22 +0100, Michael Albinus wrote: > Konstantin Kharlamov writes: >=20 > Hi Konstantin, >=20 > > When tramp is used to connect to a container, it provides > > completion > > based on what containers are currently running. However, after > > containers exit, the completion annoyingly still enlists those dead > > containers. > >=20 > > # Steps to reproduce > >=20 > > 1. Run any container, e.g.: `podman run --rm -it ubuntu:24.04` > > 2. Start Emacs as `emacs -Q --eval "(require 'tramp)"` > > 3. Press `C-x C-f /podman:`, then press TAB to complete the > > minibuffer > > text to container name (it should get completed). > > 4. Cancel with C-g > > 5. Exit the container > > 6. Repeat step 3 > >=20 > > ## Expected > >=20 > > You'd get no completion because no containers are running. > >=20 > > ## Actual > >=20 > > You'd get completion for the non-existing container. >=20 > See the Tramp manual, (info "(tramp) File name completion") >=20 > --8<---------------cut here---------------start------------->8--- > =C2=A0=C2=A0 Remote hosts previously visited or hosts whose connections a= re > kept > persistently (*note Connection caching::) will be included in the > completion lists.=C2=A0 If you want to suppress this completion because > there > are invalid entries in the persistency file, for example if the host > configuration changes often, or if you plug your laptop to different > networks frequently, you can set the user option > =E2=80=98tramp-completion-use-cache=E2=80=99 to =E2=80=98nil=E2=80=99. > --8<---------------cut here---------------end--------------->8--- Thanks! Note though that your workaround is about disabling cache for tramp globally, so isn't useful. But thanks anyway =F0=9F=98=8A From unknown Sat Aug 16 18:45:33 2025 X-Loop: help-debbugs@gnu.org Subject: bug#76950: tramp caches non-existing podman containers Resent-From: Konstantin Kharlamov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 11 Mar 2025 19:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 76950 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Michael Albinus Cc: 76950@debbugs.gnu.org Received: via spool by 76950-submit@debbugs.gnu.org id=B76950.17417223336503 (code B ref 76950); Tue, 11 Mar 2025 19:46:02 +0000 Received: (at 76950) by debbugs.gnu.org; 11 Mar 2025 19:45:33 +0000 Received: from localhost ([127.0.0.1]:45831 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ts5Xg-0001gp-W3 for submit@debbugs.gnu.org; Tue, 11 Mar 2025 15:45:33 -0400 Received: from forward500a.mail.yandex.net ([2a02:6b8:c0e:500:1:45:d181:d500]:39656) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ts5Xd-0001gR-6L for 76950@debbugs.gnu.org; Tue, 11 Mar 2025 15:45:30 -0400 Received: from mail-nwsmtp-smtp-production-main-81.vla.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-81.vla.yp-c.yandex.net [IPv6:2a02:6b8:c1d:4795:0:640:c576:0]) by forward500a.mail.yandex.net (Yandex) with ESMTPS id 3948060CFE; Tue, 11 Mar 2025 22:45:20 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-81.vla.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id IjwMM1JLk8c0-2vEyzYa6; Tue, 11 Mar 2025 22:45:19 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1741722319; bh=iPu+2tO4/tV0P3DHxOfRDWdtTSRGPKiYmtM8d7qRS1w=; h=References:Date:In-Reply-To:Cc:To:From:Subject:Message-ID; b=qrm4+COtkqwKUjlXqkzD14FMIFvRyT/M7rgYJ88owsmMIPJoWZS9e9LKFyRwyYFse V0RdH0d6hTGL+Ck4vyawxSYXIUmvaYzomSZDck3oxwZSMEzRI0qiyFEeq2BuqB0AnX Vtc6dp9iljqK4kJiupOzFRDHo6z+3x92Dc41HomU= Authentication-Results: mail-nwsmtp-smtp-production-main-81.vla.yp-c.yandex.net; dkim=pass header.i=@yandex.ru Message-ID: From: Konstantin Kharlamov Date: Tue, 11 Mar 2025 22:45:18 +0300 In-Reply-To: References: <697c898fad1f3666a6b7263a79ab14913256e578.camel@yandex.ru> <874izzpe2g.fsf@gmx.de> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.54.3 MIME-Version: 1.0 X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Figured, I'd clarify for people who don't work with containerization: the docker and podman completion is about auto-generated names like vibrant_hopper, frosty_northcutt, etc. Caching them has no use whatsoever, because: 1. The command that receives possible completions always fetches the current list, so even if cached containers still exist, the cache only wastes space. 2. When containers quit, the names become useless (the bug). So cache should not be working at all for both Podman and Docker. From unknown Sat Aug 16 18:45:33 2025 X-Loop: help-debbugs@gnu.org Subject: bug#76950: tramp caches non-existing podman containers Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 12 Mar 2025 12:37:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 76950 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Konstantin Kharlamov Cc: 76950@debbugs.gnu.org Received: via spool by 76950-submit@debbugs.gnu.org id=B76950.174178298318683 (code B ref 76950); Wed, 12 Mar 2025 12:37:01 +0000 Received: (at 76950) by debbugs.gnu.org; 12 Mar 2025 12:36:23 +0000 Received: from localhost ([127.0.0.1]:47766 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tsLJv-0004rF-3Z for submit@debbugs.gnu.org; Wed, 12 Mar 2025 08:36:23 -0400 Received: from mout.gmx.net ([212.227.17.22]:50581) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tsLJq-0004qx-RA for 76950@debbugs.gnu.org; Wed, 12 Mar 2025 08:36:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.de; s=s31663417; t=1741782972; x=1742387772; i=michael.albinus@gmx.de; bh=UKCmTNaDg6VIeEenRMSy2QOHKkdHoBEpdEepxfUl30E=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:cc: content-transfer-encoding:content-type:date:from:message-id: mime-version:reply-to:subject:to; b=DK9qWj7VQel/HQc4FGvMJZCjG62l45f+22u+x1vFrYHp7ItXpOzd6NE3Xv6v23XP V8dDlIji03cyRB2TIuAF5BjeNbd0uJZTQdnrLO6vIIeinv47QeSEMJn7DXnfmoV5n BNRcEDu1Nn1TOW+jSZwjl/spqw0wLMkJ74Ioa3u2M2GsK3qtP2y4cVIeuogidfbKK eyiSoKuey/tf8yq/vE9Z2SwvQpKI5LbHmsRBLWslvET+NeIAa8W1J6SCsunEv0ZiM eReRZKhkoDQ8zjMSuQvudUVFRy9fFVuzuTSj5fc3I6/61ZeD3kBfLL39ZP9PKDRD0 hZ1vTjy1HrBfPC8VHg== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from gandalf.gmx.de ([185.89.37.59]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MGQnF-1tzhYn1Bjp-004Ony; Wed, 12 Mar 2025 13:36:12 +0100 From: Michael Albinus In-Reply-To: References: <697c898fad1f3666a6b7263a79ab14913256e578.camel@yandex.ru> <874izzpe2g.fsf@gmx.de> Date: Wed, 12 Mar 2025 13:36:06 +0100 Message-ID: <87y0xamnnt.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:9kAz0mKXATOBzBQGHGZedFnYG8/VV6+bXgCIRZjn/UJz9wgp2Sl K8lq6xy2N2yS9GFwfVJYdEeoA5jgjKlldLQ3KwWssoCo7gpIXW7zOxVdviBLsbLvsWurilo /B6AOUko9r07Xd9x4yK0IDjnaYFIB8OD7kvTvTn2LzUp8G133d9l15LK2kZ/jNUFwm9vzrm l1d/gxHit/4tJjZ16iUCw== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:rJO0+qaINLY=;pjkroaXQWDkHgmLumHhyIiN0jUz IZm6KSfX2ckHQpm1q/xjsJX5N5jCyyQMYvzdvRR9RXdWopsYHMF7DDPl+EbJaZiQKt+Q3cig3 9V1YKjn3b+adPOyr3BgNHNuJfbl/i3FgZSWhui/O8Umno4+cDwylvJ3hIUXeh2ZJI+Sxis8uG rZ3lrtGLaJdR9SUXJjXe6TNjbCaGrY94WjxvQjA1w533+qrgTHdovqysAK0hnAtXqUhRwnQHd JQLBWX246aKcCGplm01XQwFHqg1dpsiQq+YofP6uSGG/KAJE0SapiPYW2rz7kyswPqCvsLMWv w4e9CwzP9Du2A0GuwDxtMbwiRgsHPUARYKvGGocpGDy8PQ/L4cOahkuOJgjQmjbG/kjIeFp9t KSNjdmfdDAmIhRYShwBAZgkpJ+YgPsoXutdyiZ9bDgCCNBCa/H82rJvQDzxiPsLDxqkLU4rcQ U0jxv2uWqImsZBGCS5eNv5SEHPsifCHzrX9f/xGzShPLnhSDyaz0Y2vZRwIbVOvSW3qlHUKbM C3yVEkHX1RGxlaT2PgtccTXzVRQcqhnmgqTIT7Lyhg7mcBy+OUyHwhRS0c/Rgflbss9Thajia gS/+L48Yg5FUKhQtXfJTF6U7z1XXNISD+A9gy7Tm7Vs+c5SI3Zg4R7iPIyesNo06XUroiK05y sMwoa0chvujpLrEDB0XdMBNBPFRTMoY+gwQrJhWEDvjqG8HQyQpWvbn9Ck035vWdW7J1PvimA DU7+1YPCFJWINMrjba/qUR1cmG8yDu5fIbNlzsJL2dXGjq6Wm9z0qZArnod98UBup623nbWya CrvYL6BFoECIX8OUJHQbRie2UbSueosr3JIW6L32GIhEiM7BtYXPslzjve0P/sMidOxv0wNMe uzREDaXsWNZZrJBx97fD0ePs71fKDZXgqjvgc6NeGUp8qthO00VAigxOTTpfxGyM8G0xcV0J5 mdusWE4YQ3GJw5l1R+GiT7jmueic64G3wsjFJGjLCJDd68aEN9LJJHJUfoVq8NN6CzA1gdz72 hk529PnnKs6i0DWt6dHzvWD1QqKkBGDXH9U/gMNZ9BM9om7pVNLpHXbuGlqKRR6tlDgjnE/u0 X2yihKkGpNaS1AhyP27uJmAbFwzD4c2sTfImP9ROoc8hFDnvvFg1Ua/srpwzWzw6a/VxoNaH+ a3Fh4gQVItnPFXjNEwyB8KgVBHp5KY14ePM0gSh2q8wN4HxLWtGctc1dizznbvOx+e8uLk/vb 8xJvQwBNg1pCWEvH5DO0LtTIbLggQ85lgsQtSJyA2IuplXHFLv9jJMEpROKJg7ClAz7bEwdlb Ezm2l91ESXQJP9oBu9t3miNcB8TVu2wTpNPhCxiZRZ8FtXtZElgDnyhzqhBdYlyr6gdHus9e7 2VAtGf6+wlPKkZ5PRExEZp+KOeOuLeLB9FZwhGMq7irYwOz67RXQvHJqKcGf7f/fw0L9D2Wxu jF22mr0u5nVpzRjvllkjUNaLVmRl4waGlMRHGT3srfvUzZTA+ X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Konstantin Kharlamov writes: Hi Konstantin, =20 >> --8<---------------cut here---------------start------------->8--- >> =C2=A0=C2=A0 Remote hosts previously visited or hosts whose connections = are >> kept >> persistently (*note Connection caching::) will be included in the >> completion lists.=C2=A0 If you want to suppress this completion because >> there >> are invalid entries in the persistency file, for example if the host >> configuration changes often, or if you plug your laptop to different >> networks frequently, you can set the user option >> =E2=80=98tramp-completion-use-cache=E2=80=99 to =E2=80=98nil=E2=80=99. >> --8<---------------cut here---------------end--------------->8--- > > Thanks! Note though that your workaround is about disabling cache for > tramp globally, so isn't useful. But thanks anyway =F0=9F=98=8A Well, using the global tramp-completion-use-cache is not intended as workaround, but as solution (so far). But I see your point. Best regards, Michael. From unknown Sat Aug 16 18:45:33 2025 X-Loop: help-debbugs@gnu.org Subject: bug#76950: tramp caches non-existing podman containers Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 12 Mar 2025 12:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 76950 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Konstantin Kharlamov Cc: 76950@debbugs.gnu.org Received: via spool by 76950-submit@debbugs.gnu.org id=B76950.174178338119668 (code B ref 76950); Wed, 12 Mar 2025 12:43:01 +0000 Received: (at 76950) by debbugs.gnu.org; 12 Mar 2025 12:43:01 +0000 Received: from localhost ([127.0.0.1]:47774 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tsLQK-000575-Qy for submit@debbugs.gnu.org; Wed, 12 Mar 2025 08:43:01 -0400 Received: from mout.gmx.net ([212.227.17.21]:60821) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tsLQH-00056n-KV for 76950@debbugs.gnu.org; Wed, 12 Mar 2025 08:42:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.de; s=s31663417; t=1741783371; x=1742388171; i=michael.albinus@gmx.de; bh=Pz7ACcnYi0qXQLXsDovkXocIK7cZ1hnPam86ueqykAQ=; 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=ZEnHQpzGWjsDGnUNsVua2o7VHASNPTvya1rGAnwLKeSH1UdwaDgNz07F648KgDgu KGMZhZBmG4EudpTVHB5T465Vb95wfTjWtefUDXYHb1Gp+ZaIth/vGJzEPVgCp3taE bfwJR38w3/J5IAA4t36tElBmii1igxKuB2GbbGz2pPofEOeRzdBAqeZ8PIxSyuCbh xKd7JIWglkiw/sv64/In5pwmhEUTP9eSJAkILxkav7kr57uHmXkXWdh72hD57upk1 X/cirBwFTbqrjAf5oNa7xFUI7Cv6xqbV0RqGX1qCM3RCujtUcWHRXGdtPFN0GLuM4 9Nr0xKF/fliJ5ZsNAg== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from gandalf.gmx.de ([185.89.37.59]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1M8ykg-1tpcOz0kxK-00Acqi; Wed, 12 Mar 2025 13:42:51 +0100 From: Michael Albinus In-Reply-To: References: <697c898fad1f3666a6b7263a79ab14913256e578.camel@yandex.ru> <874izzpe2g.fsf@gmx.de> Date: Wed, 12 Mar 2025 13:42:50 +0100 Message-ID: <87tt7ymncl.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Provags-ID: V03:K1:5s0MDgtsU/7UNXgS271X7kPBo1cqS/ycXXxR+oZeaO3AwLKTbYB gibtQk7CoxgAjasA3KFQCRE+E3JQkgDvCj+LkDDPtPXFZyfbz14yZqgWFNPcdY+FcpPmtIq kMFNbrfkE1WiuP3+wNnO12XxMwqWnWfbPQWjRPBIgtOsXBQEXbQNeLudC7v+PfYt6sE6f0R vnKbwf1B7DOO0i8P7ucIg== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:tIJ7LJJ0hw8=;RZLgisQT5rC4WeeMJmu5jGdAjEv gxdy9rgfHP03Ari17fuKqXa6c3AGZTqqxhkzNESzIlmyeUUxL+WUPBUBCqR1TJC43094G1u3g QDHO/TU4jmxmboAaufo00hRu4PrJcFAAsf4X5eYA2axXtWztgkSufyBWBgf2mB9W1ucN+JjVj lhY7CoywdJDi9Vdy9fCKEOgi3Lz7yzSRH47EBQEFkVoSRtEuB2qYhnS5bXd0lg2SEq/PmOG7o yIru/w3obD3pfEKSFjAoD6Vd2sxIU/vEqLdHNvxmX5OhZWPub5M3MqAVaC9k1IMRLEl+uRHAQ e8U5Y8aaI+PkdoNkVnIb7ixPe0N9any4IIameZzATxO4COYfhof5iIcP4sIs2Ym5EoEeKg7nt U02I1q0l+6FAuzasi7ZHymsMhTjFQ7gW0jnIEtjvcV9SxREOWpCXrZPWtspKcB2eOVqPim8dN 31x6funrYK3pbXyrxHYbeZASGqWa68JzYGOHliY0nY0OWWepLlXJiwSssv0x/Agpgsp4uBB7W VhPwoFSW+E/fbBIaKsPva/SJQrVBxVxfzXvnZaWVgwcPLTTFP3jNdqviPxt0H001SoCiFj6jq IDaH2MNBDN8muauSWy5EOckgJ7xCH8K6uJfE+v161PQBqZx8Mxb2sHao4JHQxO5hwtPJK/GuE l5fg0FJswBNPUDsBhRgZHBrgwgE1Q1xqq/TCuhELCDj5xOv6cjsmZ1eI+vgkloI6Tr61W7FYX d5oIz6BQLBZlpG1ZuO0X9mUphz8lm3vmBSrQdl+nVB/GVAnkPPQWbuJ1ypzOvcP1TRkbHRpoy UmS3wE5npvdb8zawCVFwCs1Pnvu5dIqOE3ysGTfaXZAitBhUzI6tReR2HORHInXX7VaWUq4bq IrNvr/+ADfYMveoBpHIF/eBtAx57mfefgff/1D6IaarBU04Ch+kJ4CP/6cMC68KdB8EjFNrV3 3xwfMrfiDvM4yRtUVr9sieNTz1aWNnSLxxoxFwfGdknGim0WrRVhCSPT6AC/wZo1JZ/bzlVG9 MWxySR+BA5Wle92Y7H3CydzN/bHnl6lpM+IM6UayFzt5jb3SemZm85vyXFNOKHYIPE2jngWeB IL3vMsUhiTzCSuhkUEmifwH4bKBc2Pav2dcvJvJ6QKgUVAhrBwewz+Dyj8TQ4FB3otWEAr/2J /Hs1Mcb4ZCfliSW/Ax4c612wnJEdTk0/nODRiz2NA/a2SBUdkbhc0IOPnb+cG4uZsHEYoqrJT 2t5e18+FdoJBDK3SCJkfCJJBsqlgsn95UPMaAdzLj9cdFbIH15kdafChb/2nSAgW3EY/ysdXX AV8N7NU5p2n6+53vE0GYO2FGR80hJ7hRBIcWlv6zgpcuD9axiEafeNaM2l5I2b0M4wvGj7pJc qYgdM2qPqQX2pE5BWQrR+XdJLiRWXPW68RJpWEYMDJrVbLeWxoY7grG8RAIH1x9V2qZopt0Ro OC3MGEg== X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-=-= Content-Type: text/plain Konstantin Kharlamov writes: Hi Konstantin, > Figured, I'd clarify for people who don't work with containerization: > the docker and podman completion is about auto-generated names like > vibrant_hopper, frosty_northcutt, etc. Caching them has no use > whatsoever, because: That's not always the case. You can run a container with the '--name="NAME"' argument. > 1. The command that receives possible completions always fetches the > current list, so even if cached containers still exist, the cache only > wastes space. Right. It doesn't make sense to offer container names which do not run, but are cached. > 2. When containers quit, the names become useless (the bug). Not always (see above). > So cache should not be working at all for both Podman and Docker. Well, I've assembled a patch with disables completion of cached container names for the docker, dockercp, podman and podmancp methods. See appended. Could you, pls test? It can be extended for other methods easily, which are offered by tramp-container.el. Best regards, Michael. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment Content-Transfer-Encoding: quoted-printable diff --git a/lisp/tramp-cache.el b/lisp/tramp-cache.el index 2694b8f4..06b47fa6 100644 =2D-- a/lisp/net/tramp-cache.el +++ b/lisp/net/tramp-cache.el @@ -86,6 +86,8 @@ (require 'tramp-compat) (require 'time-stamp) +(declare-function tramp-get-method-parameter "tramp") + ;;; -- Cache -- ;;;###tramp-autoload @@ -635,15 +637,16 @@ your laptop to different networks frequently." "Return a list of (user host) tuples allowed to access for METHOD. This function is added always in `tramp-get-completion-function' for all methods. Resulting data are derived from connection history." - (and tramp-completion-use-cache - (mapcar - (lambda (key) - (and (tramp-file-name-p key) - (string-equal method (tramp-file-name-method key)) - (not (tramp-file-name-localname key)) - (list (tramp-file-name-user key) - (tramp-file-name-host key)))) - (hash-table-keys tramp-cache-data)))) + (mapcar + (lambda (key) + (and (tramp-file-name-p key) + (string-equal method (tramp-file-name-method key)) + (not (tramp-file-name-localname key)) + (tramp-get-method-parameter + key 'tramp-completion-use-cache tramp-completion-use-cache) + (list (tramp-file-name-user key) + (tramp-file-name-host key)))) + (hash-table-keys tramp-cache-data))) ;; When "emacs -Q" has been called, both variables are nil. We do not ;; load the persistency file then, in order to have a clean test environm= ent. diff --git a/lisp/tramp-container.el b/lisp/tramp-container.el index 0f1ce71c..64965ae0 100644 =2D-- a/lisp/net/tramp-container.el +++ b/lisp/net/tramp-container.el @@ -556,7 +556,8 @@ see its function help for a description of the format.= " (tramp-direct-async (,tramp-default-remote-shell "-c")) (tramp-remote-shell ,tramp-default-remote-shell) (tramp-remote-shell-login ("-l")) - (tramp-remote-shell-args ("-i" "-c")))) + (tramp-remote-shell-args ("-i" "-c")) + (tramp-completion-use-cache nil))) (add-to-list 'tramp-methods `(,tramp-dockercp-method @@ -573,7 +574,8 @@ see its function help for a description of the format.= " (tramp-copy-program ,tramp-docker-program) (tramp-copy-args (("cp"))) (tramp-copy-file-name (("%h" ":") ("%f"))) - (tramp-copy-recursive t))) + (tramp-copy-recursive t) + (tramp-completion-use-cache nil))) (add-to-list 'tramp-methods `(,tramp-podman-method @@ -586,7 +588,8 @@ see its function help for a description of the format.= " (tramp-direct-async (,tramp-default-remote-shell "-c")) (tramp-remote-shell ,tramp-default-remote-shell) (tramp-remote-shell-login ("-l")) - (tramp-remote-shell-args ("-i" "-c")))) + (tramp-remote-shell-args ("-i" "-c")) + (tramp-completion-use-cache nil))) (add-to-list 'tramp-methods `(,tramp-podmancp-method @@ -603,7 +606,8 @@ see its function help for a description of the format.= " (tramp-copy-program ,tramp-podman-program) (tramp-copy-args (("cp"))) (tramp-copy-file-name (("%h" ":") ("%f"))) - (tramp-copy-recursive t))) + (tramp-copy-recursive t) + (tramp-completion-use-cache nil))) (add-to-list 'tramp-methods `(,tramp-kubernetes-method --=-=-=-- From unknown Sat Aug 16 18:45:33 2025 X-Loop: help-debbugs@gnu.org Subject: bug#76950: tramp caches non-existing podman containers Resent-From: Konstantin Kharlamov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 12 Mar 2025 14:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 76950 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Michael Albinus Cc: 76950@debbugs.gnu.org Received: via spool by 76950-submit@debbugs.gnu.org id=B76950.17417884846079 (code B ref 76950); Wed, 12 Mar 2025 14:09:01 +0000 Received: (at 76950) by debbugs.gnu.org; 12 Mar 2025 14:08:04 +0000 Received: from localhost ([127.0.0.1]:51110 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tsMkd-0001Zy-Uv for submit@debbugs.gnu.org; Wed, 12 Mar 2025 10:08:04 -0400 Received: from forward502d.mail.yandex.net ([2a02:6b8:c41:1300:1:45:d181:d502]:40994) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tsMkZ-0001ZP-Nf for 76950@debbugs.gnu.org; Wed, 12 Mar 2025 10:08:01 -0400 Received: from mail-nwsmtp-smtp-production-main-81.klg.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-81.klg.yp-c.yandex.net [IPv6:2a02:6b8:c43:f0e:0:640:9c82:0]) by forward502d.mail.yandex.net (Yandex) with ESMTPS id CB36261830; Wed, 12 Mar 2025 17:07:51 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-81.klg.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id o7s2SvOLfmI0-Uy1K8Oul; Wed, 12 Mar 2025 17:07:51 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1741788471; bh=2isGSZlV9fplLSmM0Lkeev0Es4/7NGOWb4eznBz5xII=; h=References:Date:In-Reply-To:Cc:To:From:Subject:Message-ID; b=YzCc5fEyHBaH+E3/hrJ5CE6w7B9qJPjRThAX6WoFYW+ZFNf78V9cpT2M90nDim6Q3 feBhkVch6JIUvQo5Ts7CZACXEEZeLxp7voljABC7JYHyBot7Fjl0XMfFzSzuFb1DN5 dg8bl/9DU7F+YDvY5pbvoXKThQHRX+tqh5prxIPI= Authentication-Results: mail-nwsmtp-smtp-production-main-81.klg.yp-c.yandex.net; dkim=pass header.i=@yandex.ru Message-ID: <6da1000cad428f8f742d8bca0039b3ab309d059d.camel@yandex.ru> From: Konstantin Kharlamov Date: Wed, 12 Mar 2025 17:07:50 +0300 In-Reply-To: <87tt7ymncl.fsf@gmx.de> References: <697c898fad1f3666a6b7263a79ab14913256e578.camel@yandex.ru> <874izzpe2g.fsf@gmx.de> <87tt7ymncl.fsf@gmx.de> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.54.3 MIME-Version: 1.0 X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On Wed, 2025-03-12 at 13:42 +0100, Michael Albinus wrote: > Konstantin Kharlamov writes: >=20 > Hi Konstantin, >=20 > > Figured, I'd clarify for people who don't work with > > containerization: > > the docker and podman completion is about auto-generated names like > > vibrant_hopper, frosty_northcutt, etc. Caching them has no use > > whatsoever, because: >=20 > That's not always the case. You can run a container with the > '--name=3D"NAME"' argument. >=20 > > 1. The command that receives possible completions always fetches > > the > > current list, so even if cached containers still exist, the cache > > only > > wastes space. >=20 > Right. It doesn't make sense to offer container names which do not > run, > but are cached. >=20 > > 2. When containers quit, the names become useless (the bug). >=20 > Not always (see above). >=20 > > So cache should not be working at all for both Podman and Docker. >=20 > Well, I've assembled a patch with disables completion of cached > container > names for the docker, dockercp, podman and podmancp methods. See > appended. Could you, pls test? >=20 > It can be extended for other methods easily, which are offered by > tramp-container.el. Thank you! The patch seems to work, but it behaves a bit oddly. If I go over steps-to-reproduce, I quit container, do C-x C-f and check containers name not there anymore=E2=80=A6 I still see it cached! However, = if I do that again in a few seconds, the container disappears. It's as if cache still there, but it gets removed after a delay. Other than that, the patch is definitely an improvement, so if it's not clear why this "cache removal with delay" happens, I think patch still may be worth installing. From unknown Sat Aug 16 18:45:33 2025 X-Loop: help-debbugs@gnu.org Subject: bug#76950: tramp caches non-existing podman containers Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 12 Mar 2025 14:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 76950 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Konstantin Kharlamov Cc: 76950@debbugs.gnu.org Received: via spool by 76950-submit@debbugs.gnu.org id=B76950.17417892408462 (code B ref 76950); Wed, 12 Mar 2025 14:21:02 +0000 Received: (at 76950) by debbugs.gnu.org; 12 Mar 2025 14:20:40 +0000 Received: from localhost ([127.0.0.1]:51141 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tsMwp-0002CO-L3 for submit@debbugs.gnu.org; Wed, 12 Mar 2025 10:20:40 -0400 Received: from mout.gmx.net ([212.227.17.20]:40405) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tsMwg-0002C1-CU for 76950@debbugs.gnu.org; Wed, 12 Mar 2025 10:20:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.de; s=s31663417; t=1741789222; x=1742394022; i=michael.albinus@gmx.de; bh=zNyzm80qIl7ytFWP+mo9YISG4aHZ3pIxqPa1fnllw/U=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:cc: content-transfer-encoding:content-type:date:from:message-id: mime-version:reply-to:subject:to; b=WY30KhsStV+AlDLViX1YMWdDqx+qNNkbtX7c9KOi8GiGskXWpYWsfUcAEd7kOumH x+6dvfnrHbrWwjDoLVfj6B2ZKi5NH4srJQKofwUlns97hgZFm16mJKO38axruai60 3rWmwU/olkEJo3QK5dxwGI4wqtLG17Iziovn35uMCqF2BYUzLiqTWVL1int5cjosD 3vYJUD6WJ+KoUqtUnDWOJWyNCg0hnOCOmCdLlvmoU0rnRnbrWbZeSQWFe3S/XwWZA ZtOcvodm+jVAxFTKORdXPU733V1RRaXyyDN8zVZ6rkdkFN+M8pcj45WlBfJEqVH9B AndFJG7T3iZAoaWDgg== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from gandalf.gmx.de ([185.89.37.59]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1M9Wyy-1tp3Yo1NBM-00A4gp; Wed, 12 Mar 2025 15:20:22 +0100 From: Michael Albinus In-Reply-To: <6da1000cad428f8f742d8bca0039b3ab309d059d.camel@yandex.ru> References: <697c898fad1f3666a6b7263a79ab14913256e578.camel@yandex.ru> <874izzpe2g.fsf@gmx.de> <87tt7ymncl.fsf@gmx.de> <6da1000cad428f8f742d8bca0039b3ab309d059d.camel@yandex.ru> Date: Wed, 12 Mar 2025 15:20:21 +0100 Message-ID: <87plimmiu2.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:5vCKx2EbIQm50ZuOqjl4Lc0+kAzoX279PHa6waLv3xDYG8hTHka zuzwfHneEqVOrflbsdPlTk7QEI5dSPZryZbRwIfzyG0wtRZD2ysQk78aeKfKCbkxaqdlyBN PETT/4kJjCznxIGUJva7x6/36T+rHChP5jUHMY+Q2axlo2CQ5rv9TydKeh+H33wbFjOclK4 yYVfJg6Sg2m947RFpG0Yw== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:SWZZeyamEyo=;Za3zsh0hbtXEvFG46I4qxhxvqB+ rbU4FBjwxqn8fl+0Un8osbgdW0p/cGChS4sMOSPQGicV65yvdqa/CJ/bsAQPEU4NuvAeq40qG UC/+oHqg3b5mzIvY9l4001nefKvNUXRmSBnt52kOB2gZmGB8A2jBClPPMUuvfR9PAE/rbPrJl E1AUmFNqtGjYn9wp0K9Kn+SdKcBhHa8bEgz8uxbKcptdmG+hRmLtJuAWj8KoMrZfhEekD+qGp EA59dSy189nOxlW74gouV9VezmvHOXGIG/SXwQQzfiSOfsPSMjuZMGXhwqHxmG8m5cISMPEkM bRHR81ANBpFQwQy+3lWV1ynLrO1hRXhf9G8icrxsr3fRBPtOem6C6stlHcn4rMXSV2Nv5Bx/r QSakrJEUPS5SQiqrPoYsZpghN4UB/7jesGQ+sS/I712Db7ruwdxEtNgpZvJ/ZA48IApfXt+Eq t+sjWDF7H4JuRU6GrRQ0dwsilDUw4Q+1qJiu/iSBNs6X32xrkpJ3YGtViLXCTEid447o7Yi5c uB3bvcXoSWuBIYmmwRDe5L9g3GTvkoMliaGWKDA1N93Gtsx5OoXBPRxmNTXDN8w7LIMxCshtj COYk7uiUecT+xFt3BGkx+Vvz7DrekzUkT6FIhZvZhuttdtLVOWTEa7NpQehDcOzQa/xMvWNjt Yw20l2XjVLFHcuFveBzM2zeczovT7DgSe3lBemDH/NynRj9R7ZH7rDCw3pDflWWyJwwOZSHwW KPQtcauz+VbFNGrh48aV5DqVc7GoK9jO49K63zDLElUeqn9sAPasG6QGbCt5CerFaMtvOYtMd Y1vPTvdbYzSN5OK+5khBXztcBy1XV3ij6s4s2X4IwP0q2v4vdzsB4s9ScsYnEP+7Af2UMUS4v adZJ7ND42oXVkkjEIu4gyz9nl7TrSaJHKO9L8J7EzEWR2uh7CEnPzLLnkWiRaLxoltY3oqxvL Zn/Dmsffx0iNuG23GAp/D3axEf/lF59hxGMT5sJ1PO2dNRTxFOhNPI+yhGN+S8ToXyi2yBoJr hZMS8ioKn6p3phGxvxjMrl4lIIUzcnG7BC51OIVEuqrIT5E98aP/l7uYhc4js3ib7xY+W39MR NQpmlpK0SxPDP5LjrZORWcSvzK6MrHhkUQsysXV/RnEN47iXY9T7W221Cq9Cpp4P9UJDIgvfO Px1mVZaIMMXPdvDLSJhjvg5e54NL+7SC0R385tXSjGig1v2z86QvCiIo6QJx3HF/9+HId3zUz RX8ar0+bN+JYLDGpCRc7mZ3nKtDLMx0tIkP6yBITSZioB8GEPXhWZB5ytT1VlNiVozXNRqHBK mQByyYjzxQ3YVMc3np3b1NnOb0V0CtD2eOhDMgyw8aB9jnIyhsSvQ508xXISriUoN90aq3zuN MJFUBU+f5sny1anBjChJSDeZsePcKkqrbu9QTdHPgXmBc+A2mpEfUiaAA2x1CC4LRF/5xd+Ju 3AglfeQY1skxQsRmKPRETUpBk3O5ZjQqRXgqeESUrk6A6a8aW X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Konstantin Kharlamov writes: Hi Konstantin, =20 > Thank you! The patch seems to work, but it behaves a bit oddly. If I go > over steps-to-reproduce, I quit container, do C-x C-f and check > containers name not there anymore=E2=80=A6 I still see it cached! However= , if I > do that again in a few seconds, the container disappears. > > It's as if cache still there, but it gets removed after a delay. My patch doesn't cleanup the cache. It just suppresses the use of the cache for host name completion. The (file) cache expires due to remote-file-name-inhibit-cache. Likely you use the default value, 10 seconds. This is independent of my patch. > Other than that, the patch is definitely an improvement, so if it's not > clear why this "cache removal with delay" happens, I think patch still > may be worth installing. I'll polish it a little bit, will push it later. Best regards, Michael. From unknown Sat Aug 16 18:45:33 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Konstantin Kharlamov Subject: bug#76950: closed (Re: bug#76950: tramp caches non-existing podman containers) Message-ID: References: <87ldtam35d.fsf@gmx.de> <697c898fad1f3666a6b7263a79ab14913256e578.camel@yandex.ru> X-Gnu-PR-Message: they-closed 76950 X-Gnu-PR-Package: emacs Reply-To: 76950@debbugs.gnu.org Date: Wed, 12 Mar 2025 20:00:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1741809603-16599-1" This is a multi-part message in MIME format... ------------=_1741809603-16599-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #76950: tramp caches non-existing podman containers which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 76950@debbugs.gnu.org. --=20 76950: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D76950 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1741809603-16599-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 76950-done) by debbugs.gnu.org; 12 Mar 2025 19:59:22 +0000 Received: from localhost ([127.0.0.1]:51821 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tsSEc-0004I2-5o for submit@debbugs.gnu.org; Wed, 12 Mar 2025 15:59:22 -0400 Received: from mout.gmx.net ([212.227.17.20]:35241) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tsSEa-0004Hl-Fe for 76950-done@debbugs.gnu.org; Wed, 12 Mar 2025 15:59:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.de; s=s31663417; t=1741809554; x=1742414354; i=michael.albinus@gmx.de; bh=mY9yKTt3X/zLruAy4P3YdQK8LTseKr1k5uU3N7l3CIA=; 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=AwG8AyBcO4pPatITZvI1QS7Vwn6HVdS0v3jgNOv1tVhYrbF2LBX/QizcmzRJvIdA PH6fkI9UOVXlxuxcV/pu+L07AzhLnZxuVlsVujaM7scOrGmo8cFisVUU/YC9w11En 5IJH1fncR3hCBsVuFDL0+6pXFtdj1H3FrptS6THEnNk8FrtIxHPicoNf650qx91Ne xliBpsnZ6S0YGf96OLZcPLmp5FJClpif+q/8n0qq7PprYXbNWMAZsDS0k7VDfulXm g7NXGedEYOLwGzW2WKC6oFvUSD+WXUvA1UnsNBozo3xaf+O+QmHmA8T4h5diOgG19 y96I9j6WaR3NC4sLiQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from gandalf.gmx.de ([185.89.37.59]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MxDkm-1szHFB3gwy-015cLE; Wed, 12 Mar 2025 20:59:13 +0100 From: Michael Albinus To: Konstantin Kharlamov Subject: Re: bug#76950: tramp caches non-existing podman containers In-Reply-To: <87plimmiu2.fsf@gmx.de> References: <697c898fad1f3666a6b7263a79ab14913256e578.camel@yandex.ru> <874izzpe2g.fsf@gmx.de> <87tt7ymncl.fsf@gmx.de> <6da1000cad428f8f742d8bca0039b3ab309d059d.camel@yandex.ru> <87plimmiu2.fsf@gmx.de> Date: Wed, 12 Mar 2025 20:59:10 +0100 Message-ID: <87ldtam35d.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:CmCuh/KYwKIHyazNvgdZjnPpjZZqS9Uew1pdMYiesICFxkmVOSs CMrHRGpSTiYpBKNYVTfQdcJWjdBsnjHLRxVfWueQh7N5PqSxaKpEE6iuwhx8G6txzShKUUp gh/Us7rkBtV1xwfdnrCcIca26PAllMnmkNfd4I/f4DZiNpE+y9Nns5zuMSYyLThzXBYIKgg wPQ2S3kgSVr2OKOZbO9cA== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:cdjrYYqF+1A=;5xT0oava3Nx5UtsklEZG+g+6sP/ K5kOyum/EqSmTSl6r7+vz+FUKLM3XijLlAbDY413he8P/a5wLpuz8dCc1l9H5PVxD8zuwnZV8 ZD/EFhsw1eT3VYTOKRMAwVKu2Slykf8uI0XUsOT3eAcsSsCMdLosREMuZbAODyTN/ZBmbpe8y pcD3s5Zra1JtMztPzfswTrFGB7dhuTJXpo4B8hcS+bsslAn8EQ+N48THPvswu2yuRWkBVJSfr dADIMMWLcQDh67YsI8s8/MOwuD/kqaupGhi58lzRbQwyo77NmYpSH4/3fRCY6ec50BokML6Kf 0pG8iLml/TrLbF115Bb4rIM97yZVWLAUcGvOUGTo0zN1vJY6amC0bT42V2SihgWYowrkF4C28 i1LR0n1OkjKJNPi1Kg5IjXu2bt1uE57v139XOAIEwhRkagl0Yf0aBcSxEDgzKzomBCehAP5fj I+S362XQk4riWxFPfcd2Ivk/ZhYbIkJdK56j2G3a/wcAvXSA/jEsSmH1TwiKvM7YgsCoSxYDu 2gC7RHuXpi4kMPqng6VLcm8FboWvTCoXgcQBhtPZvIfX4chX6hYy2wfgwqy9RH84yRYAhtBVY 5vjnVnxQuzlIbZ4OlgepwskXQSPDKreYXXMNZGCectAwbyI9jjIRRwWuOHCRCLg8u74n7O18E k3vY+UFXdPjGhiuZ70aaGcIgyuhX1J5xQuelecIspaZUYP28ym/CzTxLz0JIgUNGBuhHx5Zww bqRXS1AQjTPPgDFj4g0XHzSTmQSUYEqbTz7imiS3BdcNEOFahoVPlbs4kpvj233iN2z8fRSq0 v4bms8IU85VMxdPWrrTQEyRNHRYyQ3UdcwIIlbF/gBMYdtQt7rftc7sm3+PWxlaWjveY2MvZG z2N+e1D4p706zUwE6o6J1fBDSDAqh0n+Bp8ChGX5Gd9q/HtDzfoXtoyOhnoATvk7lkMxmCM1G 9aA+VmRqo7wqr3bZLNmyd5VPiRiOoLVzpHP6IzksPpU+7LWh23PwrkDWrf3MTgfBOHddJQZlO RIgsInZdKKU0PdctlY9xugR7ZJ9bxL1zz/Pq3UyR/lMV71cNYqMScCTV3Eh6BpgFM9fXZAo8b VSuyBkR+qjvxWNJQcy6dz/3Hth/7oEsDUdY79c6Bx17OEPa2ASzSkL1mqy1uHJtYZ3hYB3eR4 jw2VlX0tSMRs9g9c/jl8U/7daBzoygXLoR/luV0NJFpeQQu2yCt4k677RW2JdO2LbVWHwG//D Wmc7za57+3v4IKeH+KZOIC3s6fJHQsMXYunKMiOvwYCCgwH4sVxPQ0cOy7vSn/vb5Tw4hKz79 X1R06Bc0WvFfg4ZX39cqThBdDUr3ghcyFc/lKX24P40mRtJccc+xq6CFNMiO8Rhwu0a+qYpME BHERqpCDGEIh2zoYHBJxCwT8cZK50ziraESada/o61hn/aI9DaGJqEhutTJ7g4JXujhtcyOx7 ph/RBcUJOTpFzOTCQvzwU/1IGfPu77bStAul7p9CMqgEY65KE X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 76950-done Cc: 76950-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Version: 31.1 Michael Albinus writes: Hi Konstantin, >> Other than that, the patch is definitely an improvement, so if it's not >> clear why this "cache removal with delay" happens, I think patch still >> may be worth installing. > > I'll polish it a little bit, will push it later. I've pushed it to master, closing the bug. Best regards, Michael. ------------=_1741809603-16599-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 11 Mar 2025 17:36:23 +0000 Received: from localhost ([127.0.0.1]:45416 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ts3Wh-0000uy-De for submit@debbugs.gnu.org; Tue, 11 Mar 2025 13:36:23 -0400 Received: from lists.gnu.org ([2001:470:142::17]:49686) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ts3Wc-0000ue-LW for submit@debbugs.gnu.org; Tue, 11 Mar 2025 13:36:19 -0400 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 1ts3WQ-0007C4-Eq for bug-gnu-emacs@gnu.org; Tue, 11 Mar 2025 13:36:11 -0400 Received: from forward103a.mail.yandex.net ([178.154.239.86]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ts3WL-0006c5-3k for bug-gnu-emacs@gnu.org; Tue, 11 Mar 2025 13:36:06 -0400 Received: from mail-nwsmtp-smtp-production-main-95.vla.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-95.vla.yp-c.yandex.net [IPv6:2a02:6b8:c1f:644d:0:640:2ef6:0]) by forward103a.mail.yandex.net (Yandex) with ESMTPS id 7F40B60AC6 for ; Tue, 11 Mar 2025 20:35:52 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-95.vla.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id pZuMInHLcW20-73QdvmbO; Tue, 11 Mar 2025 20:35:52 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1741714552; bh=UfrmXHnWRg0DCBuS1rwL7UmTlGB4Lj912gh4i1wNE+I=; h=Date:To:From:Subject:Message-ID; b=NAKH0f1xy11CBCm3g8v66WMK07EDgkHD8oQNeJdDoWyFTTHYp43Js9ubi+SLUNED9 uZKGWNhMAtfh5Jiu2XBVB8umqPL4jWFVwbBg8fI4GxT/qA1meaty6hNljt65J1bzTO HOVT1BVNoR/ntiTcd8vGI2z5aFjMCtdpNJDnZ8lY= Authentication-Results: mail-nwsmtp-smtp-production-main-95.vla.yp-c.yandex.net; dkim=pass header.i=@yandex.ru Message-ID: <697c898fad1f3666a6b7263a79ab14913256e578.camel@yandex.ru> Subject: tramp caches non-existing podman containers From: Konstantin Kharlamov To: bug-gnu-emacs@gnu.org Date: Tue, 11 Mar 2025 20:35:51 +0300 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.54.3 MIME-Version: 1.0 Received-SPF: pass client-ip=178.154.239.86; envelope-from=Hi-Angel@yandex.ru; helo=forward103a.mail.yandex.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) When tramp is used to connect to a container, it provides completion based on what containers are currently running. However, after containers exit, the completion annoyingly still enlists those dead containers. # Steps to reproduce 1. Run any container, e.g.: `podman run --rm -it ubuntu:24.04` 2. Start Emacs as `emacs -Q --eval "(require 'tramp)"` 3. Press `C-x C-f /podman:`, then press TAB to complete the minibuffer text to container name (it should get completed). 4. Cancel with C-g 5. Exit the container 6. Repeat step 3 ## Expected You'd get no completion because no containers are running. ## Actual You'd get completion for the non-existing container. # Version Emacs built yesterday from master, commit 94ba1b097ed12b9b77ecef4899c18b46b7e2dd36 ------------=_1741809603-16599-1--