sublimelsp / lsp_utils

Module with LSP-related utilities for Sublime Text
https://sublimelsp.github.io/lsp_utils/
MIT License
13 stars 6 forks source link

using py launcher instead of python for windows #121

Open pingu6 opened 3 months ago

pingu6 commented 3 months ago

https://github.com/sublimelsp/lsp_utils/blob/main/st3/lsp_utils/pip_client_handler.py#L54 Hi, i think it would be better to use py launcher instead of python, i don't know about other people but it's recommended to add only py launcher to windows path and not python because it cause problem when having multiple version of python (https://gist.github.com/sgtlaggy/72aec5354607efbf75e4780aab7c9c54#common-issues)

predragnikolic commented 3 months ago

Hello, Can you explain what issue you've encountered? What are the steps to reproduce the issue?

jfcherng commented 3 months ago

He reported on Discord. He's on Windows and has no python in PATH. Instead, he has py in PATH. Fwiw, ST's built-in build system use py on Windows: https://github.com/sublimehq/Packages/blob/23c715e21cf1ab17675e8ef6cf3451c349a16acd/Python/Python.sublime-build#L9

py comes along with the official Windows Python installer.