News for hackers. Stuff that matters.

Show HN: Integrating the Ruff Language Server

https://satyrn.app/blog/ruff-integration/

I wanted to learn how to create a code editor with linting support so I made one and added the code here on github: https://github.com/jackhodkinson/lsp-editor

In the process I learned quite a lot about how the Language Server Protocol works and wrote a blog post about it (see the post link). I hope other people find this interesting.

Although I don't go into it in the blog post, I found it quite challenging to synchronize the state of the code editor between the frontend, backend, and language server. I would be interested to know if anyone has suggestions for a more robust approach to synchonization the state of a code/text editor.

( 2 comments | on HN )
Re:Show HN: Integrating the Ruff Language Server by pvg on Sunday July 14, 2024 @02:25PM (#40962438)
You can potentially post this as a regular blog post since most reading material can't be Show HNs, take a look at https://news.ycombinator.com/showhn.html

But you probably want to space such posts out somewhat, see the bit about reposts in the FAQ https://news.ycombinator.com/newsfaq.html

Re:Show HN: Integrating the Ruff Language Server by jackhodkinson on Sunday July 14, 2024 @08:01PM (#40964197)
Thank you for the advice. I get how this might be better suited for a regular blog post rather than Show HN. I will repost it in a month or so. Hopefully some people might find it interesting.