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

asdf support? #3

Open
boldandbusted opened this issue Sep 13, 2022 · 2 comments
Open

asdf support? #3

boldandbusted opened this issue Sep 13, 2022 · 2 comments

Comments

@boldandbusted
Copy link

Howdy. Thanks for this Vim plugin. I use asdf-python and would love to use this vim plugin with a Python installed by asdf. It seems that I'd have to explicitly set the path to the Python binary, though, which makes integration a bit more onerous. Any chance of support for 'discovering' which Python is in the PATH rather than having to tell the plugin where it is? Cheers!

@sansyrox
Copy link
Owner

sansyrox commented Sep 13, 2022

@boldandbusted , I will be happy to have a look.

But can you tell me the output of which python or a shell command that I can use to get the path of python being used by asdf-python?

@boldandbusted
Copy link
Author

@boldandbusted , I will be happy to have a look.

But can you tell me the output of which python or a shell command that I can use to get the path of python being used by asdf-python?

Sure! This is polluted by yet another indirection layer from Poetry:

$ ls -la `which -a python`
lrwxrwxrwx 1 jesse jesse  10 Sep 13 11:30 /home/jesse/.asdf/installs/python/3.10.7/bin/python -> python3.10
-rwxr-xr-x 1 jesse jesse 129 Sep 13 11:30 /home/jesse/.asdf/shims/python
lrwxrwxrwx 1 jesse jesse  52 Sep 13 14:16 /home/jesse/.cache/pypoetry/virtualenvs/example-python-repo-d_Oju2Az-py3.10/bin/python -> /home/jesse/.asdf/installs/python/3.10.7/bin/python3

The first two are created by asdf. But, my hope is that this plugin won't care about that - it just uses the environment's PATH, no matter how silly. :D

Thanks!

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

No branches or pull requests

2 participants