I need to interact with a language server (Eclipse JDT LS) implementing the Language Server Protocol (LSP), and I need it for a Python project that will be used to analyze different programming languages, starting from Java.
I've been looking around for a client library in Python that would fit my purpose, any suggestions?
If it was very easy I wouldn't mind writing one, but I feel the world doesn't need yet another library if a good one exists already.
I've discovered that, as of July 2023, there is a library named pygls (https://github.com/openlawlibrary/pygls) that is currently developing a usable client for the Language Server Protocol (LSP).
While we wait for the first official release, I've included it in my setup.py file under "install_requires". This ensures it will be automatically installed during the setup of my project. Here's how I modified the file:
install_requires=[
'pygls @ git+https://github.com/openlawlibrary/pygls.git'
]
With this line of code, pygls will be directly fetched from the GitHub repository and installed into your environment.