GNU bug report logs -
#72705
31.0.50; eglot--dumb-tryc Filters out too much
Previous Next
Reported by: Dmitry Gutov <dmitry <at> gutov.dev>
Date: Mon, 19 Aug 2024 01:53:02 UTC
Severity: normal
Found in version 31.0.50
Done: Dmitry Gutov <dmitry <at> gutov.dev>
Bug is archived. No further changes may be made.
Full log
Message #20 received at 72705 <at> debbugs.gnu.org (full text, mbox):
On Tue, Aug 20, 2024 at 3:08 AM Dmitry Gutov <dmitry <at> gutov.dev> wrote:
> So far I've tested with gopls and clangd (when writing the new tests),
> typescript-language-server and rust-analyzer.
That's pretty good. If you could add pylsp or pyright (basedpyright),
I'd feel even more confident.
> All right.
>
> The proposed change doesn't alter the kinds of strings that are
> inserted, only the cases when that happens. When the added predicate
> returns nil, we fall back to the next clause; and the check at the end
> also allows us to return nil, which is useful in certain rare contexts.
I don't have time to spend examining these details, just the final
outcome is relevant: partial completions cannot be inserted, but
fragments of a completion can be completed to a fully formed
completion (eventually running exit-function then).
> The report that's referenced in the 3 commits your mentioned does seem
> to have regressed is https://github.com/joaotavora/eglot/issues/1339
> not to the original behavior (exit-function still works), but C-M-i
> changes buffer text to
>
> v.call1234.1234567890
I don't have time to investigate right now, but indeed that issue there were
two consecutive fixes: the first one (which you say "still works") and a second
one which I eventually reverted because it fixes some things and broke
others.
So is the regression you mention in relation to the current Eglot state or
to that intermediate state?
Regardless, if possible, make an automated test and mark it "expected
failing" to record this fact.
> I suppose that could be fixed by moving some matching logic from the
> style into the completion table. Not sure how important/realistic the
> example is, although somebody did report it...
I'd have to have a clearer view on what exactly has regressed and what
has advanced. Then a better decision can be made. Thank you for
this work.
João
This bug report was last modified 267 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.