manateelazycat / lsp-bridge

A blazingly fast LSP client for Emacs
GNU General Public License v3.0
1.35k stars 197 forks source link

Add pyenv instructions to README #965

Closed tjtrabue closed 3 weeks ago

tjtrabue commented 3 weeks ago

Python distributions installed via pyenv require special treatment to work with lsp-bridge. pyenv is primarily a shell utility, and does not always integrate well with other processes since it assumes that the user has sourced extra definitions into their shell process before using it, and places a number of shim files (which are just shell scripts that adjust the actual command to run based on the selected pyenv Python SDK version) before their executable counterparts in the PATH hierarchy. This messes with lsp-bridge, which requires an actual python3 executable to launch the LSP server process, not a shim.

To fix this issue, users must set their lsp-bridge-python-command variable to the actual path to the python3 executable for their selected Python version. This patch provides instructions on how to do that.

manateelazycat commented 3 weeks ago

Thank you