Asdf: Is it possible to enable multi version together?

Created on 16 May 2018  路  5Comments  路  Source: asdf-vm/asdf

Steps to reproduce

I use python at work, I am not just switch between python2 and python3. indeed, I need both active.
for example, neovim need install neovim package both on python2 and python3,
I not not willing to use system python package, cause it hard to manage after problem.
so is there any way to both to enable multi version active at once.

Tell us what actions you performed before the issue occurred

Expected behavior

I can have both python2 and python3 active global.

Actual behavior

it seems not possible now, and the local version not works well with virtualenv.

Environment

OS: ubuntu 16.04

asdf version: 3.4.0

bug

Most helpful comment

Simply pass multiple versions to local or global commands

asdf global python 3.6.2 2.7.11

All 5 comments

Simply pass multiple versions to local or global commands

asdf global python 3.6.2 2.7.11

Wow. I didn't even know this was possible. Nice! Now I can run rebar and rebar3 at the same time too.

Also, apparently other asdf commands do not know this is possible either. For example, if I run asdf current I see a line that says:

version 3.6.2 2.7.13 is not installed for python

But both of those versions are installed for Python. And If remember correctly this feature isn't covered in any of our unit tests. We should probably go through tests and add cases for multiple versions when it's relevant. My guess is most asdf commands don't actually handle this correctly.

I added this a long time ago to be able to use Python, and it has been working pretty well so far, but I admit I have been too lazy to test the feature properly.
We should definitely add more tests and documentation about it.

wow, this is so much wondful. I will #close this issue. @tuvistavie thanks for the message.

this also seems to work in .tool-versions files for the record. :+1:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rhiroyuki picture rhiroyuki  路  3Comments

Antiarchitect picture Antiarchitect  路  3Comments

johnjelinek picture johnjelinek  路  3Comments

robsonpeixoto picture robsonpeixoto  路  4Comments

tomsquest picture tomsquest  路  4Comments