From 5158600fcbc1b63e831dc331668794a39a90edd5 Mon Sep 17 00:00:00 2001 From: Tomasz Prus Date: Wed, 7 Feb 2024 23:20:03 +0100 Subject: [PATCH 1/2] Fix error message in python_lsp.py A tiny fix to help copy&paste a pip command to install websockets. Thanks --- pylsp/python_lsp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pylsp/python_lsp.py b/pylsp/python_lsp.py index a3f737ac..1c6485de 100644 --- a/pylsp/python_lsp.py +++ b/pylsp/python_lsp.py @@ -109,7 +109,7 @@ def start_ws_lang_server(port, check_parent_process, handler_class): import websockets except ImportError as e: raise ImportError( - "websocket modules missing. Please run pip install 'python-lsp-server[websockets]" + "websocket modules missing. Please run 'pip install python-lsp-server[websockets]'" ) from e with ThreadPoolExecutor(max_workers=10) as tpool: From f03c0b08f0e97e016b3eb446b7e066ac67bcaa46 Mon Sep 17 00:00:00 2001 From: Tomasz Prus Date: Thu, 8 Feb 2024 08:38:19 +0100 Subject: [PATCH 2/2] update after review --- pylsp/python_lsp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pylsp/python_lsp.py b/pylsp/python_lsp.py index 1c6485de..c606a7c6 100644 --- a/pylsp/python_lsp.py +++ b/pylsp/python_lsp.py @@ -109,7 +109,7 @@ def start_ws_lang_server(port, check_parent_process, handler_class): import websockets except ImportError as e: raise ImportError( - "websocket modules missing. Please run 'pip install python-lsp-server[websockets]'" + "websocket modules missing. Please run: pip install 'python-lsp-server[websockets]'" ) from e with ThreadPoolExecutor(max_workers=10) as tpool: