Live data from Hacker News

Show HN: Create a full language server in Go with 3.17 spec support

github.com

1–10 of 24 posts

Re: Show HN: Create a full language server in Go with 3.17 spec support

#2
Started in case I ever build a language server, thanks! The interface looks very understandable, and the debug server looks really nice.

Now that I think about it, it might be really cool to add LSP to my CLI framework[0] (I already have tab completion for shells, why not make an editor plugin if it's this easy ..)

0: https://github.com/bbkane/warg

Re: Show HN: Create a full language server in Go with 3.17 spec support

#6

Very nice. Now I want to build a language server. If only I had anything to build it for.

To give you some idea how versatile a language server is, I wrote one once to provide go-to-definition between two related blocks in a large proprietary YAML configuration file. If the definition was missing, it would also render the red squiggly line to indicate that something was misspelled.

Another time I used one to make the hosts in my SSH configuration file clickable to either open a terminal with a session or just to display cpu/memory statistics.

Lots of neat editor-independent interactions can be enabled using language servers.

Re: Show HN: Create a full language server in Go with 3.17 spec support

#8

// DiagnosticSeverity indicates the severity of a diagnostic. type DiagnosticSeverity int Hmmm :robot:

The godoc format enforces that the comment start with the name of the identifier and be a complete sentence(s) describing what that identifier does. Predates LLMs
Post reply on HN