lsp server

90 views
Skip to first unread message

Catonano

unread,
Jul 31, 2020, 2:47:00 PM7/31/20
to Racket Users

I'm playing with a toy project in #Racket

I'd like to use the lsp server

https://docs.racket-lang.org/racket-language-server/index.html

How do I do that ?

Should I require it from my project code ?

Or is it meant to be installed "globally" ?

And after that, how do I connect to it from my Emacs based client ?

Through a network socket ?

Through a Unix socket ?


Thanks in advance

Stephen De Gabrielle

unread,
Jul 31, 2020, 3:33:35 PM7/31/20
to Catonano, Racket Users
I don’t know anything about this but I believe 
Might be worth a look at the code to see how it works. 

Sorry I can’t be of more help

Best wishes
Stephen 

--
You received this message because you are subscribed to the Google Groups "Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to racket-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/CAJ98PDw7q54Kj9VyzrwRW3Ds0qHoN_7yn%2Bg7PdhJEtR84u1OEQ%40mail.gmail.com.
--
----

Catonano

unread,
Aug 16, 2020, 1:44:10 AM8/16/20
to Stephen De Gabrielle, Racket Users
Il giorno ven 31 lug 2020 alle ore 21:33 Stephen De Gabrielle <spdega...@gmail.com> ha scritto:
I don’t know anything about this but I believe

I just found how

I need to load the main.rtk file from the lsp server project.

That will start a lsp server answering through the pipe to the process that started it

I just didn't get the assumptions about the lsp server project and racket in General

Thanks anyway

Philip McGrath

unread,
Aug 16, 2020, 9:48:15 AM8/16/20
to Catonano, Racket Users
On Fri, Jul 31, 2020 at 2:46 PM Catonano <cato...@gmail.com> wrote:
I'm playing with a toy project in #Racket
I'd like to use the lsp server…
how do I connect to it from my Emacs based client ?

Just in case by "use the lsp server" you meant "set up Emacs to work on a Racket project" (rather than working on the lsp server or client), the generally preferred way to edit Racket in Emacs is with Greg Hendershott's Racket Mode (actually a package with a few major and minor modes): https://www.racket-mode.com

-Philip

Catonano

unread,
Aug 17, 2020, 5:28:57 AM8/17/20
to Philip McGrath, Racket Users
Thank you Phillip, I know that the preferred way is the Racket Mode

The reason why I was interested in an lsp server is not that I wanted to use it to work on some racket based project

The reason is that I am considering implementing an lsp server myself and I wanted to get my feet wet with the protocol and with some code dealing with that

I wanted to use a Racket based lsp server as a training ship

Admittedly, after having seen it work, I somewhat lost interest in it

In fact, the part of the protocol is not that difficult

what is harder is the part of dealing with the language implementation to fetch the information that needs to be sent to the client through the lsp protocol

So there is not so much value in exploring a racked based lsp server, well, there's less value than I have hoped

But I still am reassured that I managed to make it work, so I don't feel like an idiot

Thanks for your help ☺
 

-Philip

--
You received this message because you are subscribed to the Google Groups "Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to racket-users...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages