From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#63127: 29.0.90; Tramp all-completions errors with internal error Date: Fri, 28 Apr 2023 07:38:33 +0200 Message-ID: <878recy3ae.fsf@gmx.de> References: <401f6607-29cf-9ed8-e89e-bc67b37daf81@daniel-mendler.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8716"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 63127@debbugs.gnu.org To: Daniel Mendler Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Apr 28 07:40:39 2023 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 1psGqU-00028C-Va for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 28 Apr 2023 07:40:38 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1psGqE-0003h6-V2; Fri, 28 Apr 2023 01:40:22 -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 1psGpu-0003Xw-Bw for bug-gnu-emacs@gnu.org; Fri, 28 Apr 2023 01:40:06 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1psGpu-0000zL-1G for bug-gnu-emacs@gnu.org; Fri, 28 Apr 2023 01:40:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1psGpt-00068q-IC for bug-gnu-emacs@gnu.org; Fri, 28 Apr 2023 01:40: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: Fri, 28 Apr 2023 05:40:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63127 X-GNU-PR-Package: emacs Original-Received: via spool by 63127-submit@debbugs.gnu.org id=B63127.168266034223529 (code B ref 63127); Fri, 28 Apr 2023 05:40:01 +0000 Original-Received: (at 63127) by debbugs.gnu.org; 28 Apr 2023 05:39:02 +0000 Original-Received: from localhost ([127.0.0.1]:60236 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1psGov-00067Q-Tc for submit@debbugs.gnu.org; Fri, 28 Apr 2023 01:39:02 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:46771) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1psGor-00066r-Ew for 63127@debbugs.gnu.org; Fri, 28 Apr 2023 01:39:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1682660314; i=michael.albinus@gmx.de; bh=EiQFnCZmYtfRxTDvL1VC/31OXu0Lo4SJ+pNb2oYIkwg=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=Ft1TDH0j6E4Jguk80Ut+hSUIDCHuSZtIE2oi6yrDCmkthj89KfoznMGM2Khffi+rh 7xfK6t9kHFgkHR08Mr16AIGJr6UTon7ycYuzLi/ZWoGnDnITBzWayiXFgo0AYh1vWP 0BXPwt7u/K8rHGbPMl4DJfeHd4b7N+0uYFh0uEEBJ6MYnBYoMCNDLVWmc2uShJavL4 IH1io95vNE6fL5eOTThv5GSQ98hNRCi8z52qrAInQch1UlAaIH1qtvfn8sIFZc7cfi criZw0LLKxFZ9QdHRs4m2GDLd3II0Rj+MBkD7n2BMLI36jQekimgCAvuvmKKLENblS khj4w1ojTIjMw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from gandalf.gmx.de ([185.89.39.0]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1McH9i-1qQV6L3zqO-00clrY; Fri, 28 Apr 2023 07:38:34 +0200 In-Reply-To: <401f6607-29cf-9ed8-e89e-bc67b37daf81@daniel-mendler.de> (Daniel Mendler's message of "Thu, 27 Apr 2023 20:40:56 +0200") X-Provags-ID: V03:K1:3FlIOWTJMtO8FbONOBkZNfm6QyorS8S9Y0jRm7eRyIO1AizUoQp dS9T8+4V/skMZ+WvbpMt/mhPzSi6sda1s/h6R4AU2qccYfHm/+DvZQ0rOhW5PvOkzHpEzTq WKH89rzXXgV4RrvsFI6TJQZgZ9GcW8d+kjTdIvqKjDZqwjzJ27WRZMJxMAd3LjrmBus9OOx Sy2SJlUYtOoXyMnEZWRQw== UI-OutboundReport: notjunk:1;M01:P0:JWrfpu2ObjQ=;5KRPjJoDEnVF2N44FDx75yaE9ST lC2b5Wto5IPSCDGPBcSTZOgWXozp1tThQktg24w2d9TmdztYXf8U0oNGhT3qi1XtgdgvQ039F vufuaD9xsAotnLIqThvtVEqUlJO9vAzImLItJqIUze8tLBiO6+MLfIzwep8AZD8n9LpUCQVaI 83YRXSrwk8OEAKY6YL5jdbW1TGbASPO/KxyThimAuDPPDWhVOGWEKOp9ovxf0PDrYTcDiG6q0 ksdiV2YJkaXH7DA7c3IEYV+PL/A9FNNBbhQspsVA4YqTzYLnMdb7IuqkHrRV1wCmnaM0OQxky iKZvozKrTLiCaynovINsI5hnZ80by75g70M05OnrERW1wEgml48WQyQ+aqVylk6tRNlm2YDvw DoVKMIvuf2RfToy4P7qP6XdRlzjlzz4drbWuvsHLZi0bHpTDHFBI8Sm3eK1mn0Hn/Yp0kNLZM Wqq4w4f9wf+q+xYZIwK784P8Ew+WFxlIsTEtf7kRXxMYzkHib9aFL/BYbgVgJ4KFlMNfxl0v9 5tMp1ywYIHX5/xs6y68SHX4mh6ITC53gz/KiG+ngY1fvGSLneS4eGIjSv2YoQy22VKfyfoGsO YgF9M0c6/v+rsW3JFi+xKYE3daSHidPG3vRjyJbie3DyA0uw2prhMbHMd5d/GxXRy55xbcv8g 2WHFWmU8pRTC0Bpvf3OlKkuVuq51NS1T4pL2fh2hfZCSbTOnqO3XeZoxFVfSfLprQeYL3sQmy ZtIgvljy8NkbcOyEElzfxdcfN6ko2uHBw+Sy1usLfga5g1/uofiAPYH+6vjnkqqiGJsWsY7y 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:260748 Archived-At: Daniel Mendler writes: Hi Daniel, > I accidentally typed /sudo:::/ instead of /sudo::/ in the file > completion prompt of my Vertico completion UI. Vertico immediately > recomputes candidates and in this case shows an internal Tramp error. > > File error: tramp-sh-handle-file-name-all-completions: internal error > accessing =E2=80=98/root/\:/=E2=80=99: =E2=80=98=E2=80=99 > > For reproduction, this internal error can be triggered by executing the > following expressions: > > (all-completions "/sudo:::/" #'completion-file-name-table) > (try-completion "/sudo:::/" #'completion-file-name-table) I'm not a vertico user, so I have tried to prepare Emacs for this. With the following invocation, I could reproduce the bug: --8<---------------cut here---------------start------------->8--- # ~/src/emacs-29/src/emacs -Q -l ~/.emacs.d/elpa/compat-29.1.4.1/compat-aut= oloads.el \ -l ~/.emacs.d/elpa/vertico-1.2/vertico-autoloads.el -f vertico-mode --8<---------------cut here---------------end--------------->8--- However, there exist a newer Tramp version in GNU ELPA. When I call --8<---------------cut here---------------start------------->8--- # ~/src/emacs-29/src/emacs -Q -L ~/.emacs.d/elpa/tramp-2.6.0.3/ \ -l ~/.emacs.d/elpa/compat-29.1.4.1/compat-autoloads.el \ -l ~/.emacs.d/elpa/vertico-1.2/vertico-autoloads.el -f vertico-mode --8<---------------cut here---------------end--------------->8--- the error doesn't happen. However, Vertico doesn't seem to complete at all under this configuration. Could you pls check, whether using Tramp 2.6.0.3 from GNU ELPA is still compatible with Vertico? Note that we have changed Tramp's file name completion per bug#37954, bug#51386, bug#52758, bug#53513, bug#54042 and bug#60505 (all of them merged to one bug). > I am not sure if this can be considered a bug, certainly not a serious > one. Usually completion tables are supposed to not show such > internal errors. Instead they ideally just return nil signaling the > absence of matches. Maybe this indicates some problem in the Tramp file > handler parser, which could bail out earlier on such an invalid path? This sanity check has already been removed in Tramp 2.6.0.3 per bug#61890. > Thanks! > > Daniel Best regards, Michael.