mamba-org / mamba

The Fast Cross-Platform Package Manager
https://mamba.readthedocs.io
BSD 3-Clause "New" or "Revised" License
6.93k stars 358 forks source link

Shell completion instructions do not work but shell completion works anyways. #3047

Open TheSkyentist opened 11 months ago

TheSkyentist commented 11 months ago

Troubleshooting docs

Anaconda default channels

How did you install Mamba?

Other (please describe)

Search tried in issue tracker

Searched but none found.

Latest version of Mamba

Tried in Conda?

I didn't try

Describe your issue

Fresh install of micromamba with a bash shell. mamba shell completion returns an error saying the prefix does not exist. Despite this, micromamba activate <TAB> fills in the environment (before and after running the reccomended setup for shell completion). Also tested on macOS with micromamba 1.5.4 and zsh.

Perhaps related to a separate issue where conda env remove -n <TAB> completes but conda env remove --name <TAB> does not.

mamba info / micromamba info

libmamba version : 1.5.3
     micromamba version : 1.5.3
           curl version : libcurl/8.4.0 OpenSSL/3.1.4 zlib/1.2.13 zstd/1.5.5 libssh2/1.11.0 nghttp2/1.58.0
     libarchive version : libarchive 3.7.2 zlib/1.2.13 bz2lib/1.0.8 libzstd/1.5.5
       envs directories : /home/ec2-user/micromamba/envs
          package cache : /home/ec2-user/micromamba/pkgs
                          /home/ec2-user/.mamba/pkgs
            environment : None (not found)
           env location : -
      user config files : /home/ec2-user/.mambarc
 populated config files : /home/ec2-user/.mambarc
       virtual packages : __unix=0=0
                          __linux=6.1.61=0
                          __glibc=2.34=0
                          __archspec=1=x86_64-v4
               channels : https://conda.anaconda.org/conda-forge/linux-64
                          https://conda.anaconda.org/conda-forge/noarch
       base environment : /home/ec2-user/micromamba
               platform : linux-64

Logs

critical libmamba The given prefix does not exist: "/home/ec2-user/micromamba/envs/completion"

environment.yml

No response

~/.condarc

channels:
  - conda-forge
changeps1: false
channel_priority: strict
fabcor-maxiv commented 3 weeks ago

Indeed:

$ micromamba shell completion
critical libmamba The given prefix does not exist: "/home/user/.local/share/mamba/envs/completion"