I would open an issue with kak-lsp or the language server but I’m having trouble figuring out what the issue even is.
I’m trying to switch from palantir’s python language server to microsoft’s after multiple issues with it crashing after updates and issues configuring 3rd party plugins (mypy and black) even with it working.
I changed the python section in kak-lsp
to command="Microsoft.Python.LanguageServer"
(which is currently symlinked to my local bin) instead of 'command=pyls`. I can launch it from the command line so at the very least I know it’s not crashing.
after realizing there was an issue when testing a few python files and not getting any notifications from the language server and enabled debug logging.
9468 | Aug 26 14:30:30.352 DEBG Searching for vars starting with KAK_LSP_PROJECT_ROOT_PYTHON, module: kak_lsp::project_root:46
9469 │ Aug 26 14:30:30.352 DEBG Routing editor request to Route { session: "55079", language: "python", root: "/home/daedalus/Workspace/Writing/journaling_tools" }, module: kak_lsp::session:
│ 95
9470 │ Aug 26 14:30:30.352 DEBG Spawning a new controller for Route { session: "55079", language: "python", root: "/home/daedalus/Workspace/Writing/journaling_tools" }, module: kak_lsp::sess
│ ion:117
9471 │ Aug 26 14:30:30.353 INFO Starting Language server `pyls `, module: kak_lsp::language_server_transport:21
9472 │ Aug 26 14:30:30.353 ERRO panic: panicked at 'Failed to start language server: Os { code: 2, kind: NotFound, message: "No such file or directory" }', src/language_server_transport.rs:2
│ 2:21, module: kak_lsp:252
9473 │ Aug 26 14:30:32.199 DEBG From editor:
9474 │ session = "55079"
9475 │ client = ""
9476 │ buffile = ""
9477 │ filetype = ""
9478 │ version = 0
9479 │ method = "stop"
the issue seems to be it’s trying to default to pyls
despite the toml being updated, and I used ripgrep to search for mentions of pyls
starting in the kakrc directory through the plugins, and the only mention left in the lsp was in a comment inside position.rs
so I’m not sure why it is trying to run that as the command.