unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Paul Michael Reilly <pmr@pajato.com>
To: "João Távora" <joaotavora@gmail.com>
Cc: Yuan Fu <casouri@gmail.com>, emacs-devel <emacs-devel@gnu.org>
Subject: Re: Setting up language servers for Eglot
Date: Sat, 8 Aug 2020 01:59:48 -0400	[thread overview]
Message-ID: <CAGwjgEgOCJbe_7F9FMZTy98dN1-hpsYkdgPzYJTdueB3LgXryw@mail.gmail.com> (raw)
In-Reply-To: <CALDnm51nhYh=H-CD7_CyqwJ00TuWEKY0WstchTtepHn7+0t5jw@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1457 bytes --]

>
> Also, try switching to the *EGLOT events for ... * buffer.  That usually
> holds
> useful information about what went on when trying to start or communicate
> with the server.
>

This did not help clean up my issue with understanding how Eglot should
deal with an "unregistered" language server/language mode combination but
boyo is it incredibly useful and helpful to know about once I did get the
Kotlin language server working correctly (which was stupidity on my part
and easily fixed).

So my question for anyone building and/or supporting Emacs
libraries/packages that require a language server is: how would/should a
User deal with an advertised as supported language that is not in fact
supported? Seems to me this is a clear bug and the User should file a bug
report on the library/package.  In the case of Eglot, it's a bit sticky
because, apparently, there is no default Kotlin mode available as part of
Emacs but one can use an ELPA/MELPA provided mode. So this case seems
detectable to me: if there is no kotlin mode that can be associated with a
language server, then Eglot errors out in the case it thinks it is dealing
with Kotlin. If there is a kotlin mode and an associated language server
exists, then Eglot should continue and just work. But this scenario implies
that Eglot should set up all supported language servers ahead of time. Is
that realistic? Can someone point me at an Eglot example I might base a
Kotlin support fix on?

[-- Attachment #2: Type: text/html, Size: 1911 bytes --]

      reply	other threads:[~2020-08-08  5:59 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-07 14:27 Setting up language servers for Eglot Paul Michael Reilly
2020-08-07 14:32 ` João Távora
2020-08-07 15:05   ` Paul Michael Reilly
2020-08-07 15:58     ` Yuan Fu
2020-08-07 15:59       ` João Távora
2020-08-08  5:59         ` Paul Michael Reilly [this message]

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=CAGwjgEgOCJbe_7F9FMZTy98dN1-hpsYkdgPzYJTdueB3LgXryw@mail.gmail.com \
    --to=pmr@pajato.com \
    --cc=casouri@gmail.com \
    --cc=emacs-devel@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).