Title: Running tests gives an error and never exits · Issue #679 · python-lsp/python-lsp-server · GitHub
Open Graph Title: Running tests gives an error and never exits · Issue #679 · python-lsp/python-lsp-server
X Title: Running tests gives an error and never exits · Issue #679 · python-lsp/python-lsp-server
Description: After commit 3b1c895, running the test suite with pytest -v gives an error in test_missing_message, and the pytests process never exits after printing the errors, it needs to be interrupted ERROR test/test_language_server.py::test_missin...
Open Graph Description: After commit 3b1c895, running the test suite with pytest -v gives an error in test_missing_message, and the pytests process never exits after printing the errors, it needs to be interrupted ERROR t...
X Description: After commit 3b1c895, running the test suite with pytest -v gives an error in test_missing_message, and the pytests process never exits after printing the errors, it needs to be interrupted ERROR t...
Opengraph URL: https://github.com/python-lsp/python-lsp-server/issues/679
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Running tests gives an error and never exits","articleBody":"After commit 3b1c8959f3b03fb77f9f9c6d11178df3791ed433, running the test suite with `pytest -v` gives an error in `test_missing_message`, and the pytests process never exits after printing the errors, it needs to be interrupted\n```\nERROR test/test_language_server.py::test_missing_message - pylsp_jsonrpc.exceptions.JsonRpcInvalidParams: AttributeError: 'NoneType' object has no attribute 'plugin_manager'\n``` \nFull error log:\n```\n_______________________________________________________ ERROR at teardown of test_missing_message ________________________________________________________\n\n\u003e lambda: ihook(item=item, **kwds), when=when, reraise=reraise\n ^^^^^^^^^^^^^^^^^^^^^^^^\n )\n\n/usr/lib/python3.13/site-packages/flaky/flaky_pytest_plugin.py:146: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \ntest/fixtures.py:177: in client_server_pair\n ).result(timeout=CALL_TIMEOUT_IN_SECONDS)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n/usr/lib/python3.13/concurrent/futures/_base.py:456: in result\n return self.__get_result()\n ^^^^^^^^^^^^^^^^^^^\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = None\n\n def __get_result(self):\n if self._exception is not None:\n try:\n\u003e raise self._exception\nE pylsp_jsonrpc.exceptions.JsonRpcInvalidParams: AttributeError: 'NoneType' object has no attribute 'plugin_manager'\n\n/usr/lib/python3.13/concurrent/futures/_base.py:401: JsonRpcInvalidParams\n------------------------------------------------------------------ Captured stderr call ------------------------------------------------------------------\n2025-10-13 12:29:35,614 CEST - ERROR - pylsp_jsonrpc.endpoint - Failed to handle request 26ef3d3d-1984-43ad-9e92-fd96bca36be0\nTraceback (most recent call last):\n File \"/usr/lib/python3.13/site-packages/pylsp_jsonrpc/endpoint.py\", line 193, in _handle_request\n handler = self._dispatcher[method]\n ~~~~~~~~~~~~~~~~^^^^^^^^\n File \"/home/antonio/Software/test/python-lsp-server/pylsp/python_lsp.py\", line 235, in __getitem__\n raise KeyError()\nKeyError\n\nThe above exception was the direct cause of the following exception:\n\nTraceback (most recent call last):\n File \"/usr/lib/python3.13/site-packages/pylsp_jsonrpc/endpoint.py\", line 117, in consume\n self._handle_request(message['id'], message['method'], message.get('params'))\n ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/usr/lib/python3.13/site-packages/pylsp_jsonrpc/endpoint.py\", line 195, in _handle_request\n raise JsonRpcMethodNotFound.of(method) from e\npylsp_jsonrpc.exceptions.JsonRpcMethodNotFound: Method Not Found: unknown_method\n------------------------------------------------------------------- Captured log call --------------------------------------------------------------------\nERROR pylsp_jsonrpc.endpoint:endpoint.py:119 Failed to handle request 26ef3d3d-1984-43ad-9e92-fd96bca36be0\nTraceback (most recent call last):\n File \"/usr/lib/python3.13/site-packages/pylsp_jsonrpc/endpoint.py\", line 193, in _handle_request\n handler = self._dispatcher[method]\n ~~~~~~~~~~~~~~~~^^^^^^^^\n File \"/home/antonio/Software/test/python-lsp-server/pylsp/python_lsp.py\", line 235, in __getitem__\n raise KeyError()\nKeyError\n\nThe above exception was the direct cause of the following exception:\n\nTraceback (most recent call last):\n File \"/usr/lib/python3.13/site-packages/pylsp_jsonrpc/endpoint.py\", line 117, in consume\n self._handle_request(message['id'], message['method'], message.get('params'))\n ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/usr/lib/python3.13/site-packages/pylsp_jsonrpc/endpoint.py\", line 195, in _handle_request\n raise JsonRpcMethodNotFound.of(method) from e\npylsp_jsonrpc.exceptions.JsonRpcMethodNotFound: Method Not Found: unknown_method\n---------------------------------------------------------------- Captured stderr teardown ----------------------------------------------------------------\n2025-10-13 12:29:35,617 CEST - ERROR - pylsp_jsonrpc.endpoint - Failed to handle request ceb5ba62-8bb1-4f7d-bf7e-523becfa94e9\nTraceback (most recent call last):\n File \"/usr/lib/python3.13/site-packages/pylsp_jsonrpc/endpoint.py\", line 117, in consume\n self._handle_request(message['id'], message['method'], message.get('params'))\n ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/usr/lib/python3.13/site-packages/pylsp_jsonrpc/endpoint.py\", line 197, in _handle_request\n handler_result = handler(params)\n File \"/usr/lib/python3.13/site-packages/pylsp_jsonrpc/dispatchers.py\", line 25, in handler\n return method(**(params or {}))\n File \"/home/antonio/Software/test/python-lsp-server/pylsp/python_lsp.py\", line 240, in m_shutdown\n self._hook(\"pylsp_shutdown\")\n ~~~~~~~~~~^^^^^^^^^^^^^^^^^^\n File \"/home/antonio/Software/test/python-lsp-server/pylsp/python_lsp.py\", line 266, in _hook\n hook_handlers = self.config.plugin_manager.subset_hook_caller(\n ^^^^^^^^^^^^^^^^^^^^^^^^^^\nAttributeError: 'NoneType' object has no attribute 'plugin_manager'\n----------------------------------------------------------------- Captured log teardown ------------------------------------------------------------------\nERROR pylsp_jsonrpc.endpoint:endpoint.py:126 Failed to handle request ceb5ba62-8bb1-4f7d-bf7e-523becfa94e9\nTraceback (most recent call last):\n File \"/usr/lib/python3.13/site-packages/pylsp_jsonrpc/endpoint.py\", line 117, in consume\n self._handle_request(message['id'], message['method'], message.get('params'))\n ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/usr/lib/python3.13/site-packages/pylsp_jsonrpc/endpoint.py\", line 197, in _handle_request\n handler_result = handler(params)\n File \"/usr/lib/python3.13/site-packages/pylsp_jsonrpc/dispatchers.py\", line 25, in handler\n return method(**(params or {}))\n File \"/home/antonio/Software/test/python-lsp-server/pylsp/python_lsp.py\", line 240, in m_shutdown\n self._hook(\"pylsp_shutdown\")\n ~~~~~~~~~~^^^^^^^^^^^^^^^^^^\n File \"/home/antonio/Software/test/python-lsp-server/pylsp/python_lsp.py\", line 266, in _hook\n hook_handlers = self.config.plugin_manager.subset_hook_caller(\n ^^^^^^^^^^^^^^^^^^^^^^^^^^\nAttributeError: 'NoneType' object has no attribute 'plugin_manager'\n```","author":{"url":"https://github.com/antonio-rojas","@type":"Person","name":"antonio-rojas"},"datePublished":"2025-10-13T10:37:08.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/679/python-lsp-server/issues/679"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:bd987449-e82c-3e31-1024-f2aceec2caf2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 82D8:E86F7:30C83CC:3173ADA:69702F33 |
| html-safe-nonce | 732c4ad53fd95aba26dec6095e0a3da70a324741b1b81dd1918a22472468f46e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MkQ4OkU4NkY3OjMwQzgzQ0M6MzE3M0FEQTo2OTcwMkYzMyIsInZpc2l0b3JfaWQiOiIzNTM0NzY0MzE0MDc5NTM4OTk1IiwicmVnaW9uX2VkZ2UiOiJzZWEiLCJyZWdpb25fcmVuZGVyIjoic2VhIn0= |
| visitor-hmac | e6be1acd70f4931fd635c10daf18ff4542bae1b5bab9cc74d7128a3fb2c22658 |
| hovercard-subject-tag | issue:3509463199 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-lsp/python-lsp-server/679/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c919e7ded429a938b94337aa4b08302716240149feb5512b36b8387a28487ffe/python-lsp/python-lsp-server/issues/679 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c919e7ded429a938b94337aa4b08302716240149feb5512b36b8387a28487ffe/python-lsp/python-lsp-server/issues/679 |
| og:image:alt | After commit 3b1c895, running the test suite with pytest -v gives an error in test_missing_message, and the pytests process never exits after printing the errors, it needs to be interrupted ERROR t... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | antonio-rojas |
| hostname | github.com |
| expected-hostname | github.com |
| None | 01fa379f5de85ef8e791d09724e69709ce9eb9595278316e0a921312dc88e0bc |
| turbo-cache-control | no-preview |
| go-import | github.com/python-lsp/python-lsp-server git https://github.com/python-lsp/python-lsp-server.git |
| octolytics-dimension-user_id | 51609341 |
| octolytics-dimension-user_login | python-lsp |
| octolytics-dimension-repository_id | 341006790 |
| octolytics-dimension-repository_nwo | python-lsp/python-lsp-server |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 341006790 |
| octolytics-dimension-repository_network_root_nwo | python-lsp/python-lsp-server |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | dda91974c069382b0dfa47b2da7e28bd061c8331 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width