From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?ISO-8859-1?Q?J=E9r=E9my_Korwin-Zmijowski?= Newsgroups: gmane.lisp.guile.user Subject: Re: LSP Server for Scheme (and more ...) Date: Sat, 11 Jun 2022 07:58:18 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22347"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: K-9 Mail for Android Cc: r.herdt@posteo.de, guile-user To: guile-user@gnu.org, alex sassmannshausen , =?ISO-8859-1?Q?Aleix_Conchillo_Flaqu=E9?= Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Sat Jun 11 07:59:41 2022 Return-path: Envelope-to: guile-user@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 1nzu9t-0005b9-1B for guile-user@m.gmane-mx.org; Sat, 11 Jun 2022 07:59:41 +0200 Original-Received: from localhost ([::1]:37900 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nzu9r-0006MS-HM for guile-user@m.gmane-mx.org; Sat, 11 Jun 2022 01:59:39 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42092) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nzu8z-0006Kq-5q for guile-user@gnu.org; Sat, 11 Jun 2022 01:58:45 -0400 Original-Received: from relay11.mail.gandi.net ([217.70.178.231]:39299) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nzu8w-0001iX-5L for guile-user@gnu.org; Sat, 11 Jun 2022 01:58:44 -0400 Original-Received: (Authenticated sender: jeremy@korwin-zmijowski.fr) by relay.mail.gandi.net (Postfix) with ESMTPSA id 5C873100006; Sat, 11 Jun 2022 05:58:29 +0000 (UTC) In-Reply-To: Received-SPF: none client-ip=217.70.178.231; envelope-from=jeremy@korwin-zmijowski.fr; helo=relay11.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.io gmane.lisp.guile.user:18301 Archived-At: +1 haha Le 11 juin 2022 07:21:11 GMT+02:00, alex sassmannshausen a =C3=A9crit=C2=A0: >+1 > >On Sat, 11 Jun 2022, 04:07 Aleix Conchillo Flaqu=C3=A9, >wrote: > >> Yes!!! This is amazing and things like this can expose Guile to many mo= re >> people=2E Even though I've been using Emacs for many years, I believe i= t's >> not great for newcomers to hear "if you want a good Guile environment y= ou >> can only use Emacs"=2E >> >> Congratulations again, this was such an important missing piece! >> >> Best, >> >> Aleix >> >> On Fri, Jun 10, 2022 at 3:05 PM wrote: >> >> > Hi Guilers! >> > >> > I want to share a couple of things I have being working on that you m= ay >> > find useful=2E >> > >> > 1) I developed an LSP Server for Scheme=2E For those that don't know = the >> > Language Server Protocol (LSP), it is meant for adding programming >> > language support for IDEs and editors that implement the protocol >> > (nowadays most of them support it)=2E >> > >> > For now I am focusing on Guile 3 and CHICKEN 5=2E The idea is to writ= e as >> > much R7RS for common code as possible (like representing documents, >> > fetching word under cursor etc=2E) and leave implementation specific = code >> > to dedicated files=2E So far I managed to implement auto-completion, = fetch >> > signature, fetch documentation and jump to definition=2E >> > >> > Repo: https://codeberg=2Eorg/rgherdt/scheme-lsp-server >> > >> > 2) An LSP server without a client is quite useless, so I'm also shari= ng >> > an emacs-lsp client: >> > >> > Repo: https://codeberg=2Eorg/rgherdt/emacs-lsp-scheme >> > >> > I will create a PR to melpa for this=2E Until it is merged, you can c= lone >> > the repo somewhere, 'load' it and follow the instructions in the READ= ME >> > to activate it=2E >> > >> > Usage is based on interaction with the REPL, which is based on Emacs'= s >> > built-in scheme inferior-mode=2E So you have to load the file (say by >> > typing C-c C-l on a buffer) in order to get access to symbols importe= d >> > from other modules=2E >> > >> > Note: for daily use you probably should stick to Geiser, since its Gu= ile >> > support is obviously much more mature=2E It can still become useful f= or >> > other Schemes though, and is a good way to develop the LSP server >> > without leaving Emacs ;) >> > >> > 3) The whole idea behind LSP is to improve language support across >> > multiple IDEs/editors=2E So I started a proof of concept in VS Code: >> > >> > https://codeberg=2Eorg/rgherdt/vscode-scheme-lsp >> > >> > Since I don't use VS Code, I don't expect spending much time on it=2E= I >> > also don't know how a lispy LSP client should/could look like in VS >> > Code=2E If you have ideas, or want to contribute/take over this, feel= free >> > to contact me=2E It is not documented nor published yet, but already = works >> > for the functionality mentioned (there are a couple of command to lau= nch >> > a REPL and load files on it)=2E I will investigate how to automate >> > installation of the LSP server before publishing it and let you know= =2E >> > >> > Everything is on an early stage of development, and APIs may change= =2E I >> > tested it using following software: >> > - Guile 3=2E0=2E8 >> > - Emacs 27=2E1 and 28=2E1 >> > - Debian Bullseye and Ubuntu 18=2E04 >> > >> > Any questions, suggestions, critics and contributions are more than >> > welcome=2E We can also reach me on @libera's #guile, #chicken, #schem= e >> > channels by the name rgherdt=2E >> > >> > Have a nice weekend you all! >> > >> > Ricardo >> > >> > >> > >>