From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Paul Michael Reilly Newsgroups: gmane.emacs.devel Subject: Re: Setting up language servers for Eglot Date: Fri, 7 Aug 2020 11:05:35 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000008c4d6705ac4af0a4" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14452"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel To: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Aug 07 17:06:37 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k43x7-0003eF-2b for ged-emacs-devel@m.gmane-mx.org; Fri, 07 Aug 2020 17:06:37 +0200 Original-Received: from localhost ([::1]:54954 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k43x6-0002fl-58 for ged-emacs-devel@m.gmane-mx.org; Fri, 07 Aug 2020 11:06:36 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46282) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k43wM-0002Bi-A2 for emacs-devel@gnu.org; Fri, 07 Aug 2020 11:05:50 -0400 Original-Received: from mail-io1-xd33.google.com ([2607:f8b0:4864:20::d33]:44457) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k43wK-0000tA-Ef for emacs-devel@gnu.org; Fri, 07 Aug 2020 11:05:50 -0400 Original-Received: by mail-io1-xd33.google.com with SMTP id v6so2178992iow.11 for ; Fri, 07 Aug 2020 08:05:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pajato-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=wgaGxPUL/qt5L9OliIb3MjaUBiqK0T5va58ILf+dZZA=; b=wyEijCxT8TBgMLLMHMol3bqtmGmA15cL9Y3yxRmhubFqCHbJdqpJkErCM3A76WqDC4 gIoJABArBkPsqBYvsum97sRCzyZQmwM6S4NxLCuiQVuK65gNAPy9WYSLVjZ0w3j4bpEY bUAMjMFIcdAbVDo0MtsDHZakUmOgoQ6fnjGMf14KGiOIoLNurXnekZsrb6q9pHzFAt3S cvavyLNyM/Z4KkHnadNPK543fgFQM3oDBLtwshL7QUiDExgyWuNCn5TBJV4m/6mk2u3B SpUf7YwcXZFaehfSnmFd7W4d3dA9zDRK2kFFJDxN1WCb9QsCEXeznXmMR/SYvXlTt+Mx Wx7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=wgaGxPUL/qt5L9OliIb3MjaUBiqK0T5va58ILf+dZZA=; b=kilbGUVQ9tfTA1J7PAVyvTY1l2UhmyxC1cJBvThmWs/UyZbps8L+MO8fWGR3McQ47D Aon3FjTbraQ8R9kCQhf/46jILOs/xUwpuWnLjEPgaPLftHbaYvPRlCSpLCRL0L3asDUv 0B3OM8KVM9+XvfjdEnqQODMwpsVl3JT1eWGN+aBdJJXD8OH+SRkVNTSundMkN7OdQ3xb 3BYeqHuO/CUz5EE0DW+w9jF5H0XCwt5wQZNdICxDZf5PxHe7wD+JnlOALWuL9wfSU6HR CE0SLYKvZF8NxoPjuXB2gqq1ib96ZMenZjVlVFwQEHGa8j7dFcx251+YE84S5fn5eRW5 olng== X-Gm-Message-State: AOAM533sovOiYwNW3Xfk4JAZnFYeLzN+hAvyNCQPHPoUb9qWb57+mCWq 8HydMoszCqIz/8E6UhlCBkHSoJ0G/1E8X43d7exr7LXCAoE= X-Google-Smtp-Source: ABdhPJzJ0cMxYlvwlEViWmRQfaauUSMYcxaRFQLzB52dJ2sFyzTLeNe/XnKJBNAT11YjDgWu4kkLp8ratkoUAILQMzw= X-Received: by 2002:a05:6638:594:: with SMTP id a20mr5258379jar.127.1596812746830; Fri, 07 Aug 2020 08:05:46 -0700 (PDT) In-Reply-To: Received-SPF: none client-ip=2607:f8b0:4864:20::d33; envelope-from=pmr@pajato.com; helo=mail-io1-xd33.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, URIBL_BLOCKED=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:253496 Archived-At: --0000000000008c4d6705ac4af0a4 Content-Type: text/plain; charset="UTF-8" > > As I told you offline I am quite busy at the moment to help you with this > directly. > No problem, I posted to emacs-devel so someone who might not be as busy might comment. Chilling out doesn't work so well for me. :-) But if you look at Eglot's homepage you'll see that you need an entry in > `eglot-server-programs` variable. > That entry should associate a major mode with a program (the executable). > So you need a `kotlin-mode` > major mode. Emacs doesn't come with one but you can probably get one > somewhere. Also, earlier I > linked to an issue describing how someone got Eglot working with Kotlin > using this simple technique. > Maybe searching Eglot's bug tracker for "Kotlin" will bring you to that > issue. > I do use a Kotlin mode from ELPA/MELPA so Eglot did try to execute the Kotlin language server. Of course it did not find it because I had not installed it. I now understand an issue to be a documentation issue in that Eglot needs text via the README.md file to address missing modes and server setup. I'll check the Eglot bug tracker and then post an appropriate PR incorporating any feedback I see in this thread. fwiw, once installed, the server dies after being started by Eglot. I'll flail at this problem and gladly accept suggestions to expedite a solution. -pmr --0000000000008c4d6705ac4af0a4 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
As I told you offline I am quite b= usy at the moment to help you with this directly.

No problem, I posted to emacs-devel so someone who m= ight not be as busy might comment. Chilling out doesn't work so well fo= r me. :-)

But if you look at Eglot's homepa= ge you'll see that you need an entry in `eglot-server-programs` variabl= e.=C2=A0
That entry should associate a major mode with a pro= gram (the executable).=C2=A0 So you need a `kotlin-mode`
major mo= de.=C2=A0 Emacs doesn't come with one but you can probably get one some= where.=C2=A0 Also, earlier I
linked to an issue describing h= ow someone got Eglot working with Kotlin using this simple technique.=C2=A0=
Maybe searching Eglot's bug tracker for "Kotlin&qu= ot; will bring you to that issue.

I do use a Kotlin mode from ELPA/MELPA so Eglot did try to execute t= he Kotlin language server. Of course it did not find it because I had not i= nstalled it. I now understand an issue to be a documentation issue in that = Eglot needs text=C2=A0via the README.md file to=C2=A0 address missing modes= and server setup.=C2=A0 I'll check the Eglot bug tracker and then post= an appropriate PR incorporating any feedback I see in this thread.

fwiw, once installed, the server dies after being started= by Eglot. I'll flail at this problem and gladly accept suggestions to = expedite a solution.

-pmr

--0000000000008c4d6705ac4af0a4--