Skip to content

ridk use tool doesn't work. #314

@Vucius

Description

@Vucius

ridk use tool doesn't work.

I installed ruby2.7.6 with DEVKIT via rubyinstaller-devkit-2.7.6-1-x64.exe.
And then installed ruby3.0.2 via rubyinstaller-3.0.2-1-x64.exe.
But, I found I couldn't switch back to ruby2.7.6 via ridk ues
cmd information:

$ ridk version
---
ruby:
  path: X:/Ruby/Ruby30-x64
  version: 3.0.2
  platform: x64-mingw32
  cc: gcc.exe (Rev5, Built by MSYS2 project) 10.3.0
ruby_installer:
  package_version: 3.0.2-1
  git_commit: 80c9ca9
msys2:
  path: X:\Ruby\msys64
cc: gcc (Rev5, Built by MSYS2 project) 12.2.0
sh: GNU bash,版本 5.1.16(2)-release (x86_64-pc-msys)
os: Microsoft Windows [�汾 10.0.19044.2006]

$ ridk disable

$ ridk use
1 - X:/Ruby/Ruby27-x64  ruby 2.7.6p219 (2022-04-12 revision c9c2245c0a) [x64-mingw32]
2 - X:/Ruby/Ruby30-x64  ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [x64-mingw32]
Select ruby version to enable: 1
Disable X:/Ruby/Ruby27-x64
Disable X:/Ruby/Ruby30-x64
Enable X:/Ruby/Ruby27-x64

$ idk enable

$ ruby -v
ruby 2.7.6p219 (2022-04-12 revision c9c2245c0a) [x64-mingw32]

And then, I closed cmd.exe, and open a new one
cmd information:

$ ruby -v
ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [x64-mingw32]

I did those thing on another computer, it performed same.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions