r-lib / rig

The R Installation Manager
MIT License
663 stars 22 forks source link

panic with `rig library default <foo>` #240

Open t-kalinowski opened 4 months ago

t-kalinowski commented 4 months ago
❯ rig library
Manage package libraries [alias: lib] (experimental)

Usage: rig library [OPTIONS] [COMMAND]

Commands:
  list     List libraries [alias: ls]
  add      Add a new library
  rm       Remove a library
  default  Set the default library
  help     Print this message or the help of the given subcommand(s)

Options:
      --json  JSON output
  -h, --help  Print help (see more with '--help')

~/github/rstudio/reticulate main *23 ?2 ······································································ 08:08:48 AM
❯ rig library list
main (default)

~/github/rstudio/reticulate main *23 ?2 ······································································ 08:08:56 AM
❯ rig library add 4.3

~/github/rstudio/reticulate main *23 ?2 ······································································ 08:09:08 AM
❯ rig library default 4.3
thread 'main' panicked at /Users/gaborcsardi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/clap_builder-4.5.2/src/parser/error.rs:32:9:
Mismatch between definition and access of `lib-name`. Could not downcast to TypeId { t: 324675245860759320943513204350442872190 }, need to downcast to TypeId { t: 9468522667427391105921880143968470858 }

note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

~/github/rstudio/reticulate main *23 ?2 ············································································ 08:09:47 AM
❯ ls /Users
Shared  tomasz