LSP support: how to troubleshoot

45 views
Skip to first unread message

Sam Birch

unread,
Aug 13, 2021, 1:13:00 PM8/13/21
to BBEdit Talk
Hi all,

I’m wondering if anyone has any tips on how to troubleshoot an LSP server. It’d be nice to be able to see the capabilities that BBEdit and the server have negotiated, maybe the path to the server, maybe the PID of the server process, etc.

A transcript of the communication between BBEdit and the server would be fun too.

Maybe there are external tools that can “get in between” BBEdit and the server? Or maybe BBEdit can do some of this?

If there’s nothing I’ll submit feature requests through the proper channels.

Cheers,
-sam

Watts Martin

unread,
Aug 18, 2021, 1:00:35 PM8/18/21
to bbe...@googlegroups.com
On Aug 13, 2021 at 10:12:56 , Sam Birch <list....@munkynet.org> wrote:
Hi all,

I’m wondering if anyone has any tips on how to troubleshoot an LSP server. It’d be nice to be able to see the capabilities that BBEdit and the server have negotiated, maybe the path to the server, maybe the PID of the server process, etc.

If you go to BBEdit's Languages Preferences settings, you can add a "Language-specific setting" for your language that enables a lot of this. In the language-specific settings, go to the server tab and check "Request verbose tracing".

A transcript of the communication between BBEdit and the server would be fun too.

That setting gives you that and a little more. The files will be saved in BBEdit's Logs folder (you can open that by using the "Folders > Logs" command in the BBEdit menu) with a name like "LanguageServerProtocol-Ruby.txt".

- Watts
Reply all
Reply to author
Forward
0 new messages