<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Lsp on WhyNotHugo</title><link>https://whynothugo.nl/tags/lsp/</link><description>Recent content in Lsp on WhyNotHugo</description><generator>Hugo -- gohugo.io</generator><language>en</language><lastBuildDate>Fri, 22 Sep 2023 17:43:51 +0200</lastBuildDate><atom:link href="https://whynothugo.nl/tags/lsp/posts.xml" rel="self" type="application/rss+xml"/><item><title>Debugging a non-functional pylsp</title><link>https://whynothugo.nl/journal/2023/09/05/debugging-a-non-functional-pylsp/</link><pubDate>Tue, 05 Sep 2023 00:00:00 +0000</pubDate><guid>https://whynothugo.nl/journal/2023/09/05/debugging-a-non-functional-pylsp/</guid><description>pylsp wasn&amp;rsquo;t working today for some reason. It wasn&amp;rsquo;t jumping to definitions, offering any auto-completions, nor formatting code. I had to figure out why.
Usually, LSPs are executed directly by the IDE with stdin/stdout piped directly into an LSP client, which means that logging to stdout/stderr is not as simple as usual.
Running the LSP manually on a TCP port makes following logs nice and simple. The following command should be executed in the root of a python project:</description></item></channel></rss>