Open artofhuman opened 7 months ago
What output are you getting when running poetry env info -p
in the terminal, in that workspace?
poetry env info -p
Warning: Found deprecated key 'default' or 'secondary' in pyproject.toml configuration for source kontur. Please provide the key 'priority' instead. Accepted values are: 'default', 'primary', 'secondary', 'supplemental', 'explicit'.
Warning: Found deprecated priority 'secondary' for source 'kontur' in pyproject.toml. Consider changing the priority to one of the non-deprecated values: 'default', 'primary', 'supplemental', 'explicit'.
/Users/semyonpupkov/Library/Caches/pypoetry/virtualenvs/reco-py-gv35q0vK-py3.11
I've fixed the warning, but ther error still appears.
That output looks good to me. All in ASCII. 🤔
I added explicit path to python and that fixed this error. (because autodetection doesn't run :))
That doesn't sound like something we can improve? But weirdly it worked when executed in terminal.
If package can't detect python path, maybe better to use default python, or handle exception and suggest how to setup path explicitly
The package just runs poetry env info -p
in a subprocess. It doesn't use any python specifically and relies on shell PATH being set correctly.
I guess in your case it just can't find poetry
and the error that your shell gives in this case has some weird characters.
That said, it might still be possible to handle this error case better.
I guess in your case it just can't find
poetry
and the error that your shell gives in this case has some weird characters.
I think that would be caught by https://github.com/sublimelsp/LSP-pyright/blob/4e7b80edd8034e5750119fbc943921d25df65287/plugin.py#L250-L251
No, when you start subprocess with shell=True
(which is the case here) it can't know what the error is in such details since it's all handled by the shell.
@artofhuman you seem to be using macOS. Sublime uses a specific file of your default shell to determine the right $PATH for that OS. See: https://lsp.sublimetext.io/troubleshooting/#updating-the-path-used-by-lsp-servers
Hi. I have the error after start LSP.