Git Product home page Git Product logo

Comments (15)

esc avatar esc commented on August 23, 2024

@FredWe thank you for submitting this. Would you be able to add an example explaining this issue? Thank you.

from conda-zsh-completion.

FredWe avatar FredWe commented on August 23, 2024

@FredWe thank you for submitting this. Would you be able to add an example explaining this issue? Thank you.

OK, let me explain more clearly, I want to use tab completion after a command conda activate.

➜  ~ conda env list
# conda environments:
#
base                  *  /data1/user/src/anaconda3
fc_3.6                   /data1/user/src/anaconda3/envs/fc_3.6
fc_3.8_cuda_10.2         /data1/user/src/anaconda3/envs/fc_3.8_cuda_10.2
fc_3.8_cuda_11.0         /data1/user/src/anaconda3/envs/fc_3.8_cuda_11.0
# what I expected is:
➜  ~ conda activate <TAB>
base              fc_3.6            [fc_3.8_cuda_10.2]   fc_3.8_cuda_11.0
# However the shell returns:
➜  ~ conda activate <TAB>
# an unexpected list started...
'*'=(-M 'm:{a-zA-Z}={A-Za-z}' -J -default-)
@=(-M 'm:{a-zA-Z}={A-Za-z}' -J -default-)lias for source activate
ZSH_HIGHLIGHT_DIRS_BLACKLIST=()g conda packages
ZSH_HIGHLIGHT_HIGHLIGHTERS=(main)a "bundle package" (EXPERIMENTAL)
# <and a long long variables' list ...>
watch=()
words=(activate '')
zsh_eval_context=(shfunc shfunc shfunc shfunc shfunc shfunc shfunc shfunc shfunc eval shfunc shfunc shfunc)
# this list finished here
base conda activate fc_3.8_cuda_10.2
base              fc_3.6            [fc_3.8_cuda_10.2]  fc_3.8_cuda_11.0

Between conda activate <TAB> and the conda's envs which i can choose, there always prints a two or three screen long list. Just like what env command returns, but in an alphabetical order.
Actually I can TAB to switch env, but every time an environment variables' list is inserted.

Thanks for your response & i could give more info if necessary.

from conda-zsh-completion.

sfweller avatar sfweller commented on August 23, 2024

If I understand the issue correctly, you can try running 'conda activate' in the background in your terminal window:

conda activate &

The command history still works for me after doing this.

from conda-zsh-completion.

esc avatar esc commented on August 23, 2024

@sfweller, can you explain why you think this will help? I am confused as to how this should help?

from conda-zsh-completion.

esc avatar esc commented on August 23, 2024

@FredWe I am unable to reproduce this, unfortunately. Can you:

a) list which version of zsh you are using
b) how you installed the plugin and if you use any custom configuration
c) which version of conda are you using
d) what operating system is this on

Also, is there anyone out there that can reproduce this?

from conda-zsh-completion.

FredWe avatar FredWe commented on August 23, 2024

@FredWe I am unable to reproduce this, unfortunately. Can you:

a) list which version of zsh you are using b) how you installed the plugin and if you use any custom configuration c) which version of conda are you using d) what operating system is this on

Also, is there anyone out there that can reproduce this?

a) my zsh version is zsh 5.0.2 (x86_64-redhat-linux-gnu)
b) I use oh-my-zsh and follow the installation steps as doc described:

  1. git clone https://github.com/esc/conda-zsh-completion ${ZSH_CUSTOM:=~/.oh-my-zsh/custom}/plugins/conda-zsh-completion
  2. add plugins=(conda-zsh-completion) and autoload -U compinit && compinit to ~/.zshrc. ( I have disabled all other plugins, but it doesn't make a change)
  3. All other plugins of oh-my-zsh are disabled, and any other custom configuration in .zshrc are commented except oh-my-zsh related.

c) my conda version is conda 4.12.0
d) my OS is CentOS 7.9.2009

And my colleagues use bash so maybe I cannot find other guys near me to reproduce this, sorry.

from conda-zsh-completion.

esc avatar esc commented on August 23, 2024

I will not be able to debug this without being able to reproduce. Let's leave this ticket open however, perhaps others will be affected soon too!

from conda-zsh-completion.

chen-bowen avatar chen-bowen commented on August 23, 2024

Same issue here.
conda activate then hit enter

@=(-M 'm:{a-zA-Z}={A-Za-z}' -J -default-)
__conda_boolean_config_keys=(add_binstar_token always_yes allow_softlinks changeps1 use_pip offline binstar_upload binstar_personal show_channel_urls allow_other_channels ssl_verify)
__conda_config_keys=(add_binstar_token always_yes allow_softlinks changeps1 use_pip offline binstar_upload binstar_personal show_channel_urls allow_other_channels ssl_verify channels disallow create_default_packages track_features envs_dirs)
__conda_list_config_keys=(channels disallow create_default_packages track_features envs_dirs)
__conda_package_specs=('=')
_comp_assocs=('')
_comp_colors=('rs=0' 'di=38;5;27' 'ln=38;5;51' 'mh=44;38;5;15' 'pi=40;38;5;11' 'so=38;5;13' 'do=38;5;5' 'bd=48;5;232;38;5;11' 'cd=48;5;232;38;5;3' 'or=48;5;232;38;5;9' 'mi=05;48;5;232;38;5;15' 'su=48;5;196;38;5;15' 'sg=48;5;11;38;5;16' 'ca=48;5;196;38;5;226' 'tw=48;5;10;38;5;16' 'ow=48;5;10;38;5;21' 'st=48;5;21;38;5;15' 'ex=38;5;34' '*.tar=38;5;9' '*.tgz=38;5;9' '*.arc=38;5;9' '*.arj=38;5;9' '*.taz=38;5;9' '*.lha=38;5;9' '*.lz4=38;5;9' '*.lzh=38;5;9' '*.lzma=38;5;9' '*.tlz=38;5;9' '*.txz=38;5;9' '*.tzo=38;5;9' '*.t7z=38;5;9' '*.zip=38;5;9' '*.z=38;5;9' '*.Z=38;5;9' '*.dz=38;5;9' '*.gz=38;5;9' '*.lrz=38;5;9' '*.lz=38;5;9' '*.lzo=38;5;9' '*.xz=38;5;9' '*.bz2=38;5;9' '*.bz=38;5;9' '*.tbz=38;5;9' '*.tbz2=38;5;9' '*.tz=38;5;9' '*.deb=38;5;9' '*.rpm=38;5;9' '*.jar=38;5;9' '*.war=38;5;9' '*.ear=38;5;9' '*.sar=38;5;9' '*.rar=38;5;9' '*.alz=38;5;9' '*.ace=38;5;9' '*.zoo=38;5;9' '*.cpio=38;5;9' '*.7z=38;5;9' '*.rz=38;5;9' '*.cab=38;5;9' '*.jpg=38;5;13' '*.jpeg=38;5;13' '*.gif=38;5;13' '*.bmp=38;5;13' '*.pbm=38;5;13' '*.pgm=38;5;13' '*.ppm=38;5;13' '*.tga=38;5;13' '*.xbm=38;5;13' '*.xpm=38;5;13' '*.tif=38;5;13' '*.tiff=38;5;13' '*.png=38;5;13' '*.svg=38;5;13' '*.svgz=38;5;13' '*.mng=38;5;13' '*.pcx=38;5;13' '*.mov=38;5;13' '*.mpg=38;5;13' '*.mpeg=38;5;13' '*.m2v=38;5;13' '*.mkv=38;5;13' '*.webm=38;5;13' '*.ogm=38;5;13' '*.mp4=38;5;13' '*.m4v=38;5;13' '*.mp4v=38;5;13' '*.vob=38;5;13' '*.qt=38;5;13' '*.nuv=38;5;13' '*.wmv=38;5;13' '*.asf=38;5;13' '*.rm=38;5;13' '*.rmvb=38;5;13' '*.flc=38;5;13' '*.avi=38;5;13' '*.fli=38;5;13' '*.flv=38;5;13' '*.gl=38;5;13' '*.dl=38;5;13' '*.xcf=38;5;13' '*.xwd=38;5;13' '*.yuv=38;5;13' '*.cgm=38;5;13' '*.emf=38;5;13' '*.axv=38;5;13' '*.anx=38;5;13' '*.ogv=38;5;13' '*.ogx=38;5;13' '*.aac=38;5;45' '*.au=38;5;45' '*.flac=38;5;45' '*.mid=38;5;45' '*.midi=38;5;45' '*.mka=38;5;45' '*.mp3=38;5;45' '*.mpc=38;5;45' '*.ogg=38;5;45' '*.ra=38;5;45' '*.wav=38;5;45' '*.axa=38;5;45' '*.oga=38;5;45' '*.spx=38;5;45' '*.xspf=38;5;45' '' '(-default-)rs=0' '(-default-)di=38;5;27' '(-default-)ln=38;5;51' '(-default-)mh=44;38;5;15' '(-default-)pi=40;38;5;11' '(-default-)so=38;5;13' '(-default-)do=38;5;5' '(-default-)bd=48;5;232;38;5;11' '(-default-)cd=48;5;232;38;5;3' '(-default-)or=48;5;232;38;5;9' '(-default-)mi=05;48;5;232;38;5;15' '(-default-)su=48;5;196;38;5;15' '(-default-)sg=48;5;11;38;5;16' '(-default-)ca=48;5;196;38;5;226' '(-default-)tw=48;5;10;38;5;16' '(-default-)ow=48;5;10;38;5;21' '(-default-)st=48;5;21;38;5;15' '(-default-)ex=38;5;34' '(-default-)*.tar=38;5;9' '(-default-)*.tgz=38;5;9' '(-default-)*.arc=38;5;9' '(-default-)*.arj=38;5;9' '(-default-)*.taz=38;5;9' '(-default-)*.lha=38;5;9' '(-default-)*.lz4=38;5;9' '(-default-)*.lzh=38;5;9' '(-default-)*.lzma=38;5;9' '(-default-)*.tlz=38;5;9' '(-default-)*.txz=38;5;9' '(-default-)*.tzo=38;5;9' '(-default-)*.t7z=38;5;9' '(-default-)*.zip=38;5;9' '(-default-)*.z=38;5;9' '(-default-)*.Z=38;5;9' '(-default-)*.dz=38;5;9' '(-default-)*.gz=38;5;9' '(-default-)*.lrz=38;5;9' '(-default-)*.lz=38;5;9' '(-default-)*.lzo=38;5;9' '(-default-)*.xz=38;5;9' '(-default-)*.bz2=38;5;9' '(-default-)*.bz=38;5;9' '(-default-)*.tbz=38;5;9' '(-default-)*.tbz2=38;5;9' '(-default-)*.tz=38;5;9' '(-default-)*.deb=38;5;9' '(-default-)*.rpm=38;5;9' '(-default-)*.jar=38;5;9' '(-default-)*.war=38;5;9' '(-default-)*.ear=38;5;9' '(-default-)*.sar=38;5;9' '(-default-)*.rar=38;5;9' '(-default-)*.alz=38;5;9' '(-default-)*.ace=38;5;9' '(-default-)*.zoo=38;5;9' '(-default-)*.cpio=38;5;9' '(-default-)*.7z=38;5;9' '(-default-)*.rz=38;5;9' '(-default-)*.cab=38;5;9' '(-default-)*.jpg=38;5;13' '(-default-)*.jpeg=38;5;13' '(-default-)*.gif=38;5;13' '(-default-)*.bmp=38;5;13' '(-default-)*.pbm=38;5;13' '(-default-)*.pgm=38;5;13' '(-default-)*.ppm=38;5;13' '(-default-)*.tga=38;5;13' '(-default-)*.xbm=38;5;13' '(-default-)*.xpm=38;5;13' '(-default-)*.tif=38;5;13' '(-default-)*.tiff=38;5;13' '(-default-)*.png=38;5;13' '(-default-)*.svg=38;5;13' '(-default-)*.svgz=38;5;13' '(-default-)*.mng=38;5;13' '(-default-)*.pcx=38;5;13' '(-default-)*.mov=38;5;13' '(-default-)*.mpg=38;5;13' '(-default-)*.mpeg=38;5;13' '(-default-)*.m2v=38;5;13' '(-default-)*.mkv=38;5;13' '(-default-)*.webm=38;5;13' '(-default-)*.ogm=38;5;13' '(-default-)*.mp4=38;5;13' '(-default-)*.m4v=38;5;13' '(-default-)*.mp4v=38;5;13' '(-default-)*.vob=38;5;13' '(-default-)*.qt=38;5;13' '(-default-)*.nuv=38;5;13' '(-default-)*.wmv=38;5;13' '(-default-)*.asf=38;5;13' '(-default-)*.rm=38;5;13' '(-default-)*.rmvb=38;5;13' '(-default-)*.flc=38;5;13' '(-default-)*.avi=38;5;13' '(-default-)*.fli=38;5;13' '(-default-)*.flv=38;5;13' '(-default-)*.gl=38;5;13' '(-default-)*.dl=38;5;13' '(-default-)*.xcf=38;5;13' '(-default-)*.xwd=38;5;13' '(-default-)*.yuv=38;5;13' '(-default-)*.cgm=38;5;13' '(-default-)*.emf=38;5;13' '(-default-)*.axv=38;5;13' '(-default-)*.anx=38;5;13' '(-default-)*.ogv=38;5;13' '(-default-)*.ogx=38;5;13' '(-default-)*.aac=38;5;45' '(-default-)*.au=38;5;45' '(-default-)*.flac=38;5;45' '(-default-)*.mid=38;5;45' '(-default-)*.midi=38;5;45' '(-default-)*.mka=38;5;45' '(-default-)*.mp3=38;5;45' '(-default-)*.mpc=38;5;45' '(-default-)*.ogg=38;5;45' '(-default-)*.ra=38;5;45' '(-default-)*.wav=38;5;45' '(-default-)*.axa=38;5;45' '(-default-)*.oga=38;5;45' '(-default-)*.spx=38;5;45' '(-default-)*.xspf=38;5;45')
_comp_ignore=()
_comp_options=(bareglobqual extendedglob glob multibyte nullglob rcexpandparam unset NO_allexport NO_aliases NO_cshnullglob NO_cshjunkiequotes NO_errexit NO_globsubst NO_histsubstpattern NO_ignorebraces NO_ignoreclosebraces NO_kshglob NO_ksharrays NO_kshtypeset NO_markdirs NO_octalzeroes NO_shwordsplit NO_shglob NO_warncreateglobal)
_completers=(_complete _ignored)
_def_menu_style=(select)
_last_menu_style=(select)
_lastdescr=('' environment)
_matchers=('m:{a-zA-Z}={A-Za-z}' 'r:|=*' 'l:|=* r:|=*')
action=(__conda_envs)
actions=(__conda_envs)
argv=(-M 'm:{a-zA-Z}={A-Za-z}' -J -default-)
ccarray=('' complete '' '')
cdpath=()
channel_opts=('(-c --channel)-c[additional channel to search for packages]:channel:__conda_channels' '(-c --channel)--channel[additional channel to search for packages]:channel:__conda_channels' '--override-channels [do not search default or .condarc channels]' '--use-index-cache[use cache of channel index files]' '--use-local[use locally built packages]')
comppostfuncs=()
compprefuncs=()
context=()
descrs=(environment)
direct=()
env_opts=('(-n --name -p --prefix)-n[name of environment]:environment:__conda_envs' '(-n --name -p --prefix)--name[name of environment]:environment:__conda_envs' '(-n --name -p --prefix)-p[full path to environment prefix]:path:_path_files' '(-n --name -p --prefix)--prefix[full path to environment prefix]:path:_path_files')
envs=()
epochtime
equal=()
expl=(-M 'm:{a-zA-Z}={A-Za-z}' -J -default-)
external=('env:Manage environments.' 'build:tool for building conda packages')
fignore=()
fpath=(/home/centos/.oh-my-zsh/plugins/git /home/centos/.oh-my-zsh/functions /home/centos/.oh-my-zsh/completions /home/centos/.oh-my-zsh/cache/completions /usr/share/zsh/site-functions /usr/share/zsh/5.0.2/functions /home/centos/conda-zsh-completion)
funcs=()
funcstack
globalenvs=()
globalfirst=()
help_opts=('(-h --help)-h[show this help message and exit]' '(-h --help)--help[show this help message and exit]')
install_opts=('(-y --yes)-y[do not ask for confirmation]' '(-y --yes)--yes[do not ask for confirmation]' '--dry-run[only display what would have been done]' '(-f --force)-f[force install]' '(-f --force)--force[force install]' '--file[read package versions from file]:file:_path_files' '--no-deps[do not install dependencies]' '(-m --mkdir)-m[create prefix directory if necessary]' '(-m --mkdir)--mkdir[create prefix directory if necessary]' '--offline[offline mode, dont connect to internet]' '--no-pin[ignore pinned file]' '(-q --quiet)-q[do not display progress bar]' '(-q --quiet)--quiet[do not display progress bar]' '--copy[Install all packages using copies instead of hard- or soft-linking]' '--alt-hint[Use an alternate algorithm to generate an unsatisfiable hint]')
json_opts=('--json[report all output as json.]')
killring=('' '' '' '' '' '' '' '')
line=('')
localenvs=()
mailpath=()
manpath=()
match=()
mbegin=()
mend=()
module_path=(/usr/lib64/zsh/5.0.2)
next=('-h:show this help message and exit' '--help:show this help message and exit' '--stack:activate this environment on top of the previous environment')
odirect=()
path=(/home/centos/.vscode-server-insiders/bin/9cf2fabdd600c7d8e3230803acb246405321e8dd/bin/remote-cli /usr/condabin /usr/local/bin /usr/bin /home/centos/bin /usr/local/sbin /usr/sbin)
pipestatus=(0)
plugins=(git)
precmd_functions=(omz_termsupport_precmd __vsc_precmd)
precommands=()
preexec_functions=(omz_termsupport_preexec __vsc_preexec)
psvar=()
redirections=()
region_highlight=()
reply=()
signals=(EXIT HUP INT QUIT ILL TRAP ABRT BUS FPE KILL USR1 SEGV USR2 PIPE ALRM TERM STKFLT CHLD CONT STOP TSTP TTIN TTOU URG XCPU XFSZ VTALRM PROF WINCH POLL PWR SYS ZERR DEBUG)
singopt=(:)
skip=(-s)
sort=()
state=()
state_descr=()
subcs=(argument-rest)
subopts=()
unnamed=()
watch=()
words=(activate '')
zsh_eval_context=(shfunc shfunc shfunc shfunc eval shfunc shfunc shfunc)
                      conda activate
base     hcm_env

I'm using the same system as @FredWe
The issue is this autocompletion on zsh is way too verbose on this system. Could you help us fix it?

from conda-zsh-completion.

esc avatar esc commented on August 23, 2024

I'm using the same system as @FredWe The issue is this autocompletion on zsh is way too verbose on this system. Could you help us fix it?

Realistically, probably not. But, maybe I can try, if you can perhaps create a reproducer in something like a docker container? Without something to "poke" at there is little chance of me being able to do anything.

from conda-zsh-completion.

chen-bowen avatar chen-bowen commented on August 23, 2024

My issue is on an EC2 machine, could you try potentially setting up one and look into the issue?

from conda-zsh-completion.

esc avatar esc commented on August 23, 2024

My issue is on an EC2 machine, could you try potentially setting up one and look into the issue?

Potentially yes, I haven't worked with AWS for years at this point so it will take some time to get setup again. I expect this task to take 4-8 hours. I can add it to my queue, but due to time constraints it may be 6-12 months or longer until I can get to it. I think it will make more sense to simply keep the issue open and hope that someone else comes along with both time and expertise. 🤞

from conda-zsh-completion.

esc avatar esc commented on August 23, 2024

My issue is on an EC2 machine, could you try potentially setting up one and look into the issue?

Potentially yes, I haven't worked with AWS for years at this point so it will take some time to get setup again. I expect this task to take 4-8 hours. I can add it to my queue, but due to time constraints it may be 6-12 months or longer until I can get to it. I think it will make more sense to simply keep the issue open and hope that someone else comes along with both time and expertise. 🤞

I should also note, that I wrote this completion many years ago and have barely touched it since. So I am probably as knowledgeable on this topic as any other random person 🤣

from conda-zsh-completion.

FredWe avatar FredWe commented on August 23, 2024

I have confirmed that a zsh version upgrade could fix this issue.

Instead of CentOS7 yum version zsh 5.0.2, zsh 5.8 & zsh 5.9 doesn't display annoying environment variables.

from conda-zsh-completion.

esc avatar esc commented on August 23, 2024

I have confirmed that a zsh version upgrade could fix this issue.

Instead of CentOS7 yum version zsh 5.0.2, zsh 5.8 & zsh 5.9 doesn't display annoying environment variables.

🎉

from conda-zsh-completion.

esc avatar esc commented on August 23, 2024

I have confirmed that a zsh version upgrade could fix this issue.
Instead of CentOS7 yum version zsh 5.0.2, zsh 5.8 & zsh 5.9 doesn't display annoying environment variables.

🎉

@chen-bowen can you try the zsh upgrade as suggested above by @FredWe ?

from conda-zsh-completion.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.