all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "João Távora" <joaotavora@gmail.com>
To: Dmitry Gutov <dmitry@gutov.dev>
Cc: 72705@debbugs.gnu.org
Subject: bug#72705: 31.0.50; eglot--dumb-tryc Filters out too much
Date: Tue, 20 Aug 2024 10:40:01 +0100	[thread overview]
Message-ID: <CALDnm51dQmn1HEM5PVW_oGyN=SfNS7pW4om_P+b+P2RA53JCGw@mail.gmail.com> (raw)
In-Reply-To: <0ff5f767-be87-4d64-964c-0a20fa776acf@gutov.dev>

On Tue, Aug 20, 2024 at 3:08 AM Dmitry Gutov <dmitry@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





  reply	other threads:[~2024-08-20  9:40 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-19  1:51 bug#72705: 31.0.50; eglot--dumb-tryc Filters out too much Dmitry Gutov
2024-08-19  9:22 ` João Távora
2024-08-19 11:39   ` Dmitry Gutov
2024-08-19 12:59     ` João Távora
2024-08-20  2:08       ` Dmitry Gutov
2024-08-20  9:40         ` João Távora [this message]
2024-08-21  0:30           ` Dmitry Gutov
2024-08-21 16:52             ` João Távora
2024-08-22  0:41               ` Dmitry Gutov
2024-08-22 16:59                 ` João Távora
2024-08-22 23:16                   ` Dmitry Gutov
2024-08-23 10:23                     ` João Távora
2024-08-25  2:49                       ` Dmitry Gutov
2024-08-25  9:53                         ` João Távora
2024-08-25 15:56                           ` Dmitry Gutov
2024-08-25 23:40                           ` Dmitry Gutov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CALDnm51dQmn1HEM5PVW_oGyN=SfNS7pW4om_P+b+P2RA53JCGw@mail.gmail.com' \
    --to=joaotavora@gmail.com \
    --cc=72705@debbugs.gnu.org \
    --cc=dmitry@gutov.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.