Unable to start robotframework-lsp because: python could not be found on the PATH.
See original GitHub issueI’m using the latest version of VS Code plugin (v0.38.1) and with this version appears the following error when try to start the language server:
Unable to start robotframework-lsp because: python could not be found on the PATH
I was looking for some difference in the latest version and I found this commit: https://github.com/robocorp/robotframework-lsp/commit/fb2d9bc0611a288270bdd47a9863965e37ba1ad6#diff-0fefade1994682e75a371a5e87217db562299ade61d20c91b09e427110ceb17e
For some reason the integration between this extension and vscode-python extension doesn’t work well for me, I don’t know if this issue happens because I’m using asdf-vm to manage my python versions.
The following line set executable with the full path of the python executable. (e.g. /Users/MyUser/.asdf/shims/python3.10)
executable = await (0, pythonExtIntegration_1.getPythonExtensionExecutable)()
The function findExecutableInPath(executable) wait for an executable and doesn’t for the full path.
WORKAROUND: just remove the code from the mentioned commit.
Issue Analytics
- State:
- Created 2 years ago
- Comments:9

Top Related StackOverflow Question
@fabioz I confirm: the fix works fine.
thanks I’ll try the fix and let you know