From b92a5733579fd552b22cfc1d371ee82ae769f4bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edgar=20Andr=C3=A9s=20Margffoy=20Tuay?= Date: Wed, 14 Apr 2021 16:33:22 -0500 Subject: [PATCH] Use python-lsp-jsonrpc instead of python-jsonrpc-server --- pylsp/python_lsp.py | 6 +++--- setup.py | 2 +- test/test_language_server.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pylsp/python_lsp.py b/pylsp/python_lsp.py index 62350971..d4c98306 100644 --- a/pylsp/python_lsp.py +++ b/pylsp/python_lsp.py @@ -7,9 +7,9 @@ import socketserver import threading -from pyls_jsonrpc.dispatchers import MethodDispatcher -from pyls_jsonrpc.endpoint import Endpoint -from pyls_jsonrpc.streams import JsonRpcStreamReader, JsonRpcStreamWriter +from pylsp_jsonrpc.dispatchers import MethodDispatcher +from pylsp_jsonrpc.endpoint import Endpoint +from pylsp_jsonrpc.streams import JsonRpcStreamReader, JsonRpcStreamWriter from . import lsp, _utils, uris from .config import config diff --git a/setup.py b/setup.py index 0751e362..b5037a11 100755 --- a/setup.py +++ b/setup.py @@ -27,7 +27,7 @@ def get_version(module='pylsp'): install_requires = [ 'jedi>=0.17.2,<0.19.0', - 'python-jsonrpc-server>=0.4.0', + 'python-lsp-jsonrpc>=1.0.0', 'pluggy', 'ujson>=3.0.0' ] diff --git a/test/test_language_server.py b/test/test_language_server.py index dc1cffca..e39bf0a6 100644 --- a/test/test_language_server.py +++ b/test/test_language_server.py @@ -7,7 +7,7 @@ import sys from threading import Thread -from pyls_jsonrpc.exceptions import JsonRpcMethodNotFound +from pylsp_jsonrpc.exceptions import JsonRpcMethodNotFound import pytest from pylsp.python_lsp import start_io_lang_server, PythonLSPServer