all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: "João Távora" <joaotavora@gmail.com>
Cc: Basil Contovounesios <contovob@tcd.ie>, 62694@debbugs.gnu.org
Subject: bug#62694: 30.0.50; eglot-tests fails with recent pylsp
Date: Sun, 09 Apr 2023 18:08:27 +0200	[thread overview]
Message-ID: <87lej1ca2s.fsf@gmx.de> (raw)
In-Reply-To: <87o7nxf44b.fsf@gmail.com> ("João Távora"'s message of "Sun, 09 Apr 2023 16:48:52 +0100")

João Távora <joaotavora@gmail.com> writes:

Hi João,

>>>> That earlier proposals were not complete, optimal, or up to yours or
>>>> anyone's standards does not warrant degrading them, IMO.  
>>>
>>> - vague: there are no details, just the idea of "checking if the server
>>>   is up to the job".
>>
>> I've shown you the Eglot traces for one test case on both Debian pylsp
>> (failed) and Fedora pylsp (succeeded). I still have no idea whether the
>> Debian flavour is inside the LSP specs or not. But if it returns
>> out-of-spec replies, I guess eglot should raise an Emacs error
>> indicating this fact.
>
> It's _not_ an out-of-spec reply.  It's just a insuficient in-spec reply
> from a poorly installed or configured server.

If it is an on-spec reply, eglot shall handle this. If there isn't
sufficient information in the reply, eglot shall err out with this
information.

> The point of these tests, as I've explained multiple times, is not to
> test the servers, rather eglot.el's particularly its interactions with
> other emacs facilities, such as xref, completion, flymake etc.  Any
> server will do, as long as it is reasonably well-behaved and
> predictable.  That's why I switched to clangd and all this discussion
> is moot now.

It isn't only the tests. You cannot prevent that a curious user, with
the brand new Emacs 29 installed, reads the NEWS and knows there's
eglot. She installs the Debian pylsp server (because that's what Debian
offers), tries it, and fails. And you'll ghet a bug report.

>> Based on this fact, you could always catch this specific error in the
>> tests, and say that the server is not suited. Whether you shall skip
>> or err out the test then is something else; until now it isn't obvious
>> that a failed eglot test is due to the (possible) server misbehavior,
>> or due to an eglot error. At least this information should be shown.
>
> It's impossible to know that.  You can design perfectly in-spec naughty
> servers breaking all of eglot tests.

Eglot shall fail the gracefully. The error messages I have seen so far
don't tell me anything.

> Or you can follow Eglot's maintainer advice to install versions of
> servers known to be working correctly.  Heroically complexifying Eglot
> to detect misbehaving servers is a completely futile exercise.

That's an illusion. People don't follow advices, people don't read
manuals. Believe me with 20+ years of Tramp experience, 40+ years
experience in developing and maintaining large projects.

> João

Best regards, Michael.





  reply	other threads:[~2023-04-09 16:08 UTC|newest]

Thread overview: 61+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-06  9:55 bug#62694: 30.0.50; eglot-tests fails with recent pylsp Michael Albinus
2023-04-06 10:54 ` João Távora
2023-04-06 11:22   ` Michael Albinus
2023-04-06 12:49     ` João Távora
2023-04-06 14:58       ` Michael Albinus
2023-04-06 16:59         ` João Távora
2023-04-06 17:39           ` Michael Albinus
2023-04-06 19:50             ` João Távora
2023-04-07  7:44               ` Michael Albinus
2023-04-07 10:20                 ` João Távora
2023-04-07 10:29                   ` Michael Albinus
2023-04-07 10:47                     ` João Távora
2023-04-07 10:50                       ` Michael Albinus
2023-04-07 10:57                         ` João Távora
2023-04-07 11:04                           ` Gregory Heytings
2023-04-07 11:10                             ` João Távora
2023-04-07 11:11                           ` Eli Zaretskii
2023-04-07 11:20                             ` João Távora
2023-04-07 12:20                               ` Michael Albinus
2023-04-07 10:43                   ` Eli Zaretskii
2023-04-07 10:51                     ` João Távora
2023-04-07 10:53                       ` Michael Albinus
2023-04-07 10:59                       ` Eli Zaretskii
2023-04-07 11:06                         ` João Távora
2023-04-07 11:17                           ` Eli Zaretskii
2023-04-07 11:23                             ` João Távora
2023-04-07 11:37                               ` João Távora
2023-04-07 11:41                                 ` Michael Albinus
2023-04-07 11:47                                   ` João Távora
2023-04-07 11:53                                     ` João Távora
2023-04-07 12:07                                 ` Eli Zaretskii
2023-04-07 12:13                                   ` Michael Albinus
2023-04-07 12:22                                     ` Eli Zaretskii
2023-04-07 12:40                                       ` João Távora
2023-04-07 12:58                                         ` Gregory Heytings
2023-04-07 13:02                                           ` João Távora
2023-04-07 13:57                                         ` Eli Zaretskii
2023-04-07 12:59                                       ` Michael Albinus
2023-04-07 13:48                                         ` Eli Zaretskii
2023-04-07 13:57                                           ` Michael Albinus
2023-04-07 14:00                                             ` Eli Zaretskii
2023-04-07 14:04                                               ` João Távora
2023-04-07 14:33                                                 ` Eli Zaretskii
2023-04-07 15:06                                                   ` Michael Albinus
2023-04-07 19:05                                                     ` João Távora
2023-04-09 13:49                                                   ` Michael Albinus
2023-04-07 12:04                             ` Michael Albinus
2023-04-07 12:24                               ` João Távora
2023-04-07 12:47                                 ` Michael Albinus
2023-04-07 13:01                                   ` João Távora
2023-04-07 13:04                                     ` Michael Albinus
2023-04-09 11:24               ` Basil Contovounesios via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-04-09 11:22       ` Basil Contovounesios via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-04-09 12:41         ` João Távora
2023-04-09 13:21           ` Basil Contovounesios via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-04-09 14:45             ` João Távora
2023-04-09 15:32               ` Michael Albinus
2023-04-09 15:48                 ` João Távora
2023-04-09 16:08                   ` Michael Albinus [this message]
2023-04-09 18:17                     ` João Távora
2023-04-09 19:04                       ` Eli Zaretskii

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=87lej1ca2s.fsf@gmx.de \
    --to=michael.albinus@gmx.de \
    --cc=62694@debbugs.gnu.org \
    --cc=contovob@tcd.ie \
    --cc=joaotavora@gmail.com \
    /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.