unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: "João Távora" <joaotavora@gmail.com>
Cc: 62694@debbugs.gnu.org
Subject: bug#62694: 30.0.50; eglot-tests fails with recent pylsp
Date: Thu, 06 Apr 2023 19:39:36 +0200	[thread overview]
Message-ID: <87ttxssyef.fsf@gmx.de> (raw)
In-Reply-To: <CALDnm5146hCo3Mbzxxhr2xq5e0B5N9y1Dfa1055r-wu4JTknhQ@mail.gmail.com> ("João Távora"'s message of "Thu, 6 Apr 2023 17:59:21 +0100")

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

Hi João,

>> I don't doubt. But you cannot expect that everybody uses "the number one
>> recommended pylsp installation method".
>
> I expect that. The same way I expect people to install Eglot from ELPA, and
> use a normal installation of Emacs, not some "Doom" or "Spacemacs". Or the
> same way I expect people not to have advice in their configurations.
> Many times my expectation fails, and yet I expect these things, because
> that's what I programmed against.
>
> So if they don't use that method, then maybe they should.  More
> importantly, here we're  talking about the much smaller universe of Emacs
> developers, not regular users.

I don't speak about eglot (pylsp) users. They will know what to do.

I speak about ordinary Emacs users, not interested in eglot, who could
see Emacs errors when they run "make check". Just because eglot-tests.el
doesn't check its prerequisites sufficiently. As we have seen,
(skip-unless (executable-find "pylsp")) is not sufficient. 

>> Again, I'm not speaking about eglot users. They shall know what to
>> do. But eglot-tests could fail for everybody who has installed a pylsp
>> package, for example from Debian, w/o even being interested in eglot.
>
> That package is faulty to some degree in that it does not work exactly
> like the recommended installation of pylsp.

Likely yes. But people might have it installed, because they use
Debian. Why don't you check this wrong installation of pylsp in your
skip checks? This would solve it sufficiently, I believe.

> Even if that's a problem for some hypothetical hardcore Debian
> user who happens to also be an Emacs developer and who uses pylsp
> but not in Eglot, and for some reason won't install anything from anywhere
> else in his development machine, we have yet to hear from the hordes of
> users at the intersection of all those conditions.

The don't need to be pylsp users. A package could be installed for
several reasons.

And we haven't heart from them, because there doesn't exist an Emacs
release with built-in eglot and eglot-tests yet. People, who install
eglot from ELPA I don't care about, they know what they do.

> In your case in particular, I'd say you have control over what you
> install in your machine and what you install in EMBA.  And I've
> given you the recommended way to fix this, if you really must have
> pylsp there.  Again, can you answer what is preventing you from using
> `pip install` in your machine or in EMBA scripts?

The point is not Emba. It is just a mean to demonstrate what could
happen. And yes, I try to make the environment according to what people
use in general. And not to install special 3PP, not included in Debian,
just to "let the tests succeed". That's not the idea of regression tests.

> Also, what is moving you so resolutely to install pylsp at all in EMBA?
> Are you programming Python with some other LSP client on EMBA.  Is
> anyone?

No, I'm neither interested in python nor in eglot myself. I'm interested
in a stable Emacs. And I know, that people providing tests should ensure
that their tests do not harm. Yes, any failed test in the wild is a harm.

> Are you just trying to get the best possible coverage from eglot-tests.el?
> Thanks, but then I'd focus on rust-analyzer first, or the Java jdtls server.
> The latter would be really useful as the GitHub CI isn't currently
> installing it and the test is being skipped there.

If you could show me the Debian way to install rust-analyzer or jdtls in
Debian, I'm your man. I didn't find a corresponding package (but
honestly, I haven't tried for days). In case such packages don't exist
yet for Debian, I would be willing to install them differently, for a while.

>> > I don't have Debian.  We can overhaul the sanity checks, but I don't
>> > immediately see how.  Or why.  So it's hardly a priority.
>>
>> See above. With the instructions I have added to admin/notes/emba, it
>> should be simple.
>
> Thanks, I'll have a look one of these days.

Thanks.

> João

Best regards, Michael.





  reply	other threads:[~2023-04-06 17:39 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 [this message]
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
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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87ttxssyef.fsf@gmx.de \
    --to=michael.albinus@gmx.de \
    --cc=62694@debbugs.gnu.org \
    --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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).