GNU bug report logs - #63127
29.0.90; Tramp all-completions errors with internal error

Previous Next

Package: emacs;

Reported by: Daniel Mendler <mail <at> daniel-mendler.de>

Date: Thu, 27 Apr 2023 18:42:01 UTC

Severity: normal

Found in version 29.0.90

Done: Michael Albinus <michael.albinus <at> gmx.de>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 63127 in the body.
You can then email your comments to 63127 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#63127; Package emacs. (Thu, 27 Apr 2023 18:42:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Daniel Mendler <mail <at> daniel-mendler.de>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 27 Apr 2023 18:42:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Daniel Mendler <mail <at> daniel-mendler.de>
To: Michael Albinus <michael.albinus <at> gmx.de>, bug-gnu-emacs <at> gnu.org
Subject: 29.0.90; Tramp all-completions errors with internal error
Date: Thu, 27 Apr 2023 20:40:56 +0200
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'




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#63127; Package emacs. (Fri, 28 Apr 2023 05:40:01 GMT) Full text and rfc822 format available.

Message #8 received at 63127 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Daniel Mendler <mail <at> daniel-mendler.de>
Cc: 63127 <at> debbugs.gnu.org
Subject: Re: bug#63127: 29.0.90; Tramp all-completions errors with internal
 error
Date: Fri, 28 Apr 2023 07:38:33 +0200
Daniel Mendler <mail <at> daniel-mendler.de> 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 ‘/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'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-autoloads.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.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#63127; Package emacs. (Fri, 28 Apr 2023 06:12:01 GMT) Full text and rfc822 format available.

Message #11 received at 63127 <at> debbugs.gnu.org (full text, mbox):

From: Daniel Mendler <mail <at> daniel-mendler.de>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: Manuel Uberti <manuel.uberti <at> inventati.org>, 63127 <at> debbugs.gnu.org
Subject: Re: bug#63127: 29.0.90; Tramp all-completions errors with internal
 error
Date: Fri, 28 Apr 2023 08:11:47 +0200
On 4/28/23 07:38, Michael Albinus wrote:
> 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---

Yes, I am aware of the new Tramp version and the fixes regarding host
names and user names. I just tried to install it on Emacs 29 but I get
`tramp--with-startup' errors during initialization in emacs -Q - some
autoload issue. IOW I seem to be unable to test this.

> 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).

Could you please be more specific about "complete at all"? Do you mean
no candidates are shown at all? I cc'ed Manuel Uberti. Afaik he tested
Tramp 2.6.0.3 (or the Tramp version on the Emacs master branch) with
Vertico and it works as expected. Maybe he can confirm that everything
is still functional?

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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#63127; Package emacs. (Fri, 28 Apr 2023 06:26:02 GMT) Full text and rfc822 format available.

Message #14 received at 63127 <at> debbugs.gnu.org (full text, mbox):

From: Daniel Mendler <mail <at> daniel-mendler.de>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: Manuel Uberti <manuel.uberti <at> inventati.org>, 63127 <at> debbugs.gnu.org
Subject: Re: bug#63127: 29.0.90; Tramp all-completions errors with internal
 error
Date: Fri, 28 Apr 2023 08:25:32 +0200
On 4/28/23 08:11, Daniel Mendler wrote:
> On 4/28/23 07:38, Michael Albinus wrote:
>> 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---
> 
> Yes, I am aware of the new Tramp version and the fixes regarding host
> names and user names. I just tried to install it on Emacs 29 but I get
> `tramp--with-startup' errors during initialization in emacs -Q - some
> autoload issue. IOW I seem to be unable to test this.

I tried again and this time I didn't install Tramp via package-install
but unpacked the tar manually. Then I could successfully load Vertico
and Tramp. Completing Tramp paths works fine with Vertico. I checked
that `tramp-version' is 2.6.0.3. Furthermore the /sudo:::/ issue is
gone. Feel free to close this bug!

However there seems to be an issue with Tramp and package installation
due to the `tramp--with-startup` macro. Not sure if I am the only one
affected by this.

Daniel




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#63127; Package emacs. (Fri, 28 Apr 2023 08:10:01 GMT) Full text and rfc822 format available.

Message #17 received at 63127 <at> debbugs.gnu.org (full text, mbox):

From: Manuel Uberti <manuel.uberti <at> inventati.org>
To: Daniel Mendler <mail <at> daniel-mendler.de>,
 Michael Albinus <michael.albinus <at> gmx.de>
Cc: 63127 <at> debbugs.gnu.org
Subject: Re: bug#63127: 29.0.90; Tramp all-completions errors with internal
 error
Date: Fri, 28 Apr 2023 10:09:30 +0200
On 28/04/23 08:11, Daniel Mendler wrote:
> Could you please be more specific about "complete at all"? Do you mean
> no candidates are shown at all? I cc'ed Manuel Uberti. Afaik he tested
> Tramp 2.6.0.3 (or the Tramp version on the Emacs master branch) with
> Vertico and it works as expected. Maybe he can confirm that everything
> is still functional?

Yes, I can confirm everything still works as expected on the master branch.

-- 
Manuel Uberti
https://manueluberti.eu





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#63127; Package emacs. (Fri, 28 Apr 2023 10:59:02 GMT) Full text and rfc822 format available.

Message #20 received at 63127 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Manuel Uberti <manuel.uberti <at> inventati.org>
Cc: Daniel Mendler <mail <at> daniel-mendler.de>, 63127 <at> debbugs.gnu.org
Subject: Re: bug#63127: 29.0.90; Tramp all-completions errors with internal
 error
Date: Fri, 28 Apr 2023 12:57:58 +0200
Manuel Uberti <manuel.uberti <at> inventati.org> writes:

Hi Manuel,

>> Could you please be more specific about "complete at all"? Do you mean
>> no candidates are shown at all? I cc'ed Manuel Uberti. Afaik he tested
>> Tramp 2.6.0.3 (or the Tramp version on the Emacs master branch) with
>> Vertico and it works as expected. Maybe he can confirm that everything
>> is still functional?
>
> Yes, I can confirm everything still works as expected on the master branch.

This simply proves that I'm not able to use Vertico properly :-)

Thanks, and best regards, Michael.




Reply sent to Michael Albinus <michael.albinus <at> gmx.de>:
You have taken responsibility. (Fri, 28 Apr 2023 11:03:02 GMT) Full text and rfc822 format available.

Notification sent to Daniel Mendler <mail <at> daniel-mendler.de>:
bug acknowledged by developer. (Fri, 28 Apr 2023 11:03:02 GMT) Full text and rfc822 format available.

Message #25 received at 63127-done <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Daniel Mendler <mail <at> daniel-mendler.de>
Cc: Manuel Uberti <manuel.uberti <at> inventati.org>, 63127-done <at> debbugs.gnu.org
Subject: Re: bug#63127: 29.0.90; Tramp all-completions errors with internal
 error
Date: Fri, 28 Apr 2023 13:01:45 +0200
Daniel Mendler <mail <at> daniel-mendler.de> writes:

Hi Daniel,

> I tried again and this time I didn't install Tramp via package-install
> but unpacked the tar manually. Then I could successfully load Vertico
> and Tramp. Completing Tramp paths works fine with Vertico. I checked
> that `tramp-version' is 2.6.0.3. Furthermore the /sudo:::/ issue is
> gone. Feel free to close this bug!

Done.

> However there seems to be an issue with Tramp and package installation
> due to the `tramp--with-startup` macro. Not sure if I am the only one
> affected by this.

Well, there is bug#59194, waiting for action from me. I guess it is
related, so there's nothing left to do in *this* bug.

> Daniel

Best regards, Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#63127; Package emacs. (Fri, 28 Apr 2023 12:23:01 GMT) Full text and rfc822 format available.

Message #28 received at 63127 <at> debbugs.gnu.org (full text, mbox):

From: Daniel Mendler <mail <at> daniel-mendler.de>
To: Michael Albinus <michael.albinus <at> gmx.de>,
 Manuel Uberti <manuel.uberti <at> inventati.org>
Cc: 63127 <at> debbugs.gnu.org
Subject: Re: bug#63127: 29.0.90; Tramp all-completions errors with internal
 error
Date: Fri, 28 Apr 2023 14:22:35 +0200
On 4/28/23 12:57, Michael Albinus wrote:
>>> Could you please be more specific about "complete at all"? Do you mean
>>> no candidates are shown at all? I cc'ed Manuel Uberti. Afaik he tested
>>> Tramp 2.6.0.3 (or the Tramp version on the Emacs master branch) with
>>> Vertico and it works as expected. Maybe he can confirm that everything
>>> is still functional?
>>
>> Yes, I can confirm everything still works as expected on the master branch.
> 
> This simply proves that I'm not able to use Vertico properly :-)

Vertico behaves like familiar menus in web browsers for example. In web
browsers, when you enter something in the address line, the recent URLs
are offered for selection. You can either submit your input or select
move up or down and then submit with RET. In Vertico with Tramp do you
see files offered for completion?

Daniel




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#63127; Package emacs. (Fri, 28 Apr 2023 12:32:02 GMT) Full text and rfc822 format available.

Message #31 received at 63127-done <at> debbugs.gnu.org (full text, mbox):

From: Daniel Mendler <mail <at> daniel-mendler.de>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: Manuel Uberti <manuel.uberti <at> inventati.org>, 63127-done <at> debbugs.gnu.org
Subject: Re: bug#63127: 29.0.90; Tramp all-completions errors with internal
 error
Date: Fri, 28 Apr 2023 14:30:59 +0200
On 4/28/23 13:01, Michael Albinus wrote:
>> However there seems to be an issue with Tramp and package installation
>> due to the `tramp--with-startup` macro. Not sure if I am the only one
>> affected by this.
> 
> Well, there is bug#59194, waiting for action from me. I guess it is
> related, so there's nothing left to do in *this* bug.

Yes, thanks!

Daniel




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#63127; Package emacs. (Fri, 28 Apr 2023 12:38:02 GMT) Full text and rfc822 format available.

Message #34 received at 63127 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Daniel Mendler <mail <at> daniel-mendler.de>
Cc: Manuel Uberti <manuel.uberti <at> inventati.org>, 63127 <at> debbugs.gnu.org
Subject: Re: bug#63127: 29.0.90; Tramp all-completions errors with internal
 error
Date: Fri, 28 Apr 2023 14:36:36 +0200
Daniel Mendler <mail <at> daniel-mendler.de> writes:

Hi Daniel,

>> This simply proves that I'm not able to use Vertico properly :-)
>
> Vertico behaves like familiar menus in web browsers for example. In web
> browsers, when you enter something in the address line, the recent URLs
> are offered for selection. You can either submit your input or select
> move up or down and then submit with RET. In Vertico with Tramp do you
> see files offered for completion?

I haven't seen anything for completion. But honestly, I'm busy with
other bug fixing, so I trust your tests that there are no problems with
Tramp+Vertico interaction.

> Daniel

Best regards, Michael.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 27 May 2023 11:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 27 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.