Inaccurate Language Server error messages

I’m making an effort of integrating Pyright into Nova with an extension. Since there is a Pyright language server, my extension starts it with Nova’s API.

I’ve run into an issue that I haven’t been able to fix. Here’s a demonstration:
Screen Recording 2022-03-27 at 12.12.18 PM
Apologies for the GIF. It won’t let me upload a video.

I’d be very thankful for any help :slight_smile:.

This looks like the Language Server either isn’t receiving line breaks, or isn’t processing them correctly. Just a stab in the dark, mind you, but that is where I would start looking for a cause …

Thanks; that does seem like what’s happening. I can’t imagine how though. My code does little more than start the server through Nova’s APIs.

I know I haven’t provided much information, and I don’t expect anyone to browse through the code. If there’s any useful detail I can provide, I will be happy to provide it. I much appreciate any effort of helping me fix this problem :slight_smile:

(If your suggestion is that the problem is the Language Server’s, although I’m not certain of the contrary, I would find it a little anomalous. It’s made and frequently updated by giant company Microsoft and powers VSCode’s Python language features.)