unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#63127: 29.0.90; Tramp all-completions errors with internal error
@ 2023-04-27 18:40 Daniel Mendler
  2023-04-28  5:38 ` Michael Albinus
  0 siblings, 1 reply; 10+ messages in thread
From: Daniel Mendler @ 2023-04-27 18:40 UTC (permalink / raw)
  To: michael.albinus, 63127

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 ‘/root/\:/’: ‘’

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 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?

Thanks!

Daniel

----

In GNU Emacs 29.0.90 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo
 version 1.16.0, Xaw scroll bars) of 2023-04-27 built on projects
Repository revision: a40b1cba5ea53a780e9d3bb6b36e050dfa5e7c12
Repository branch: debundlemacs-29
Windowing system distributor 'The X.Org Foundation', version 11.0.12011000
System Description: Debian GNU/Linux 11 (bullseye)

Configured using:
 'configure --prefix=/home/user/emacs/install --with-json
 --with-native-compilation --with-x-toolkit=athena --without-dbus
 --without-selinux --without-threads --without-gsettings --with-cairo'





^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2023-04-28 12:36 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-27 18:40 bug#63127: 29.0.90; Tramp all-completions errors with internal error Daniel Mendler
2023-04-28  5:38 ` Michael Albinus
2023-04-28  6:11   ` Daniel Mendler
2023-04-28  6:25     ` Daniel Mendler
2023-04-28 11:01       ` Michael Albinus
2023-04-28 12:30         ` Daniel Mendler
2023-04-28  8:09     ` Manuel Uberti via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-04-28 10:57       ` Michael Albinus
2023-04-28 12:22         ` Daniel Mendler
2023-04-28 12:36           ` Michael Albinus

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).