1

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.

Federico Bonelli
  • 761
  • 1
  • 7
  • 23
  • A client library is only useful for an editor application, so unless there is a popular code editor written in Python you can expect a well maintained library for you to reuse. However, that doesn't seem to be the case. – Lex Li Jul 24 '23 at 17:29

1 Answers1

0

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.

Federico Bonelli
  • 761
  • 1
  • 7
  • 23