Subject: Re: Eglot completion has stopped working in some cases

From: João Távora <[email-masked]>
Date: Thu, 25 Jan 2024 00:43:38 +0000

On Wed, Jan 24, 2024 at 8:37 PM Brennan Vincent <[email-masked]> wrote:

> For example, in a Rust crate with the following main file:
>
> fn foo_len() {
> }
>
> fn main() {
>     len
> }

I've reproduced this with latest master:

~/Source/Emacs/emacs/src/emacs -Q ~/MoreSource/Rust/hello/src/main.rs
-f rust-ts-mode -f eglot

where main.rs is the provided snippet.

Pressing C-M-i with point after 'len' yields the error.

The error only happens in partial-completion is in the completion-styles
variable, so a workaround is to remove partial-completion from
completion-styles, at least in Eglot enabled buffers.

I will look now for the underlying cause.