Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add information that vim.g.python3_host_prog is used #1598

Closed
wants to merge 1 commit into from
Closed

docs: add information that vim.g.python3_host_prog is used #1598

wants to merge 1 commit into from

Conversation

chrisgrieser
Copy link

I recently had some headaches wondering mason was using an outdated python version. The recent version of some packages available via mason require a more recent python, but as mason was using an older python version, they would not be able to be installed.

I figured out that it was using my system's python, and with some research figured out that it is in fact vim.g.python3_host_prog that determines which python is used by mason. I think it is worth mentioning in the README that this variable determines what python mason uses.

(Maybe it could also make sense to have a setting in the mason config to explicitly tell mason which python it should use?)

Copy link
Owner

@williamboman williamboman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, thanks! I'm actually not sure why it's checking that variable for python. I think I figured it'd improve the chances of finding a python executable should a user not have it in PATH. It's however inconsistent with how other system dependencies are resolved - I think we should remove usage of vim.g.python3_host_prog entirely. I'll open a separate PR for this!

@williamboman
Copy link
Owner

Superseded by #1606

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants