Comments (3)
@huyizheng thanks for reporting this and thanks for using this completion. I am not sure how you ended up in this situation and I don't see an easy way to debug this. I will however leave this issue open however in case anyone else experiences this too or maybe even has a fix.
I fixed this bug, it seems cause by the line : :->command
. (But I don't know why)
I just changed it into this, directly passes the function into the arguments:
_arguments -C $opts \
': :__conda_commands' \
'*:: :->subcmd'
then this bugs is fixed.
Also, in the completion of conda env
there's a similar bug, to fix it I create another function like this:
_env_command() {
local -a env
env=(
create:'Create an environment based on an environment file'
export:'Export a given environment'
list:'List the Conda environments'
remove:'Remove an environment'
update:'Update the current environment based on environment file'
)
_describe -t env_commands "help commands" env
}
And then directly passes it into the arguments:
(env)
_arguments -C $help_opts \
': :_env_command' \
'*:: :->subcmd'
from conda-zsh-completion.
@huyizheng thanks for reporting this and thanks for using this completion. I am not sure how you ended up in this situation and I don't see an easy way to debug this. I will however leave this issue open however in case anyone else experiences this too or maybe even has a fix.
from conda-zsh-completion.
@huyz-git thank you for looking into this. Could you submit this as a pull-request, it will make testing and integration much easier, thank you!
from conda-zsh-completion.
Related Issues (20)
- Conda activate and deactivate no longer appearing HOT 8
- Error when mistype subcommand HOT 4
- How about a LICENSE file? HOT 2
- Documentation / HowTo? HOT 1
- Completions do not work at all for certain combinations of OS/conda/zsh/OMZ HOT 4
- `autoload -U compinit && compinit` has no effect unless put in the end of the file HOT 9
- Inefficient env list calculation HOT 1
- Installation is not working, any debugging tips? HOT 5
- Not working with Prezto HOT 1
- conda activate completion HOT 5
- Doesn't work like "similar" completion systems HOT 8
- Multi-user environments cannot completion HOT 2
- conda create fails on macOS HOT 1
- 'Conda activate' always completes with all environment variables HOT 15
- parse error near `^M' HOT 1
- Clarity for implementing for oh-my-zsh users HOT 4
- Create a tag for v0.10 HOT 4
- Adding custom env directory HOT 1
- Crashes when trying to complete `conda create --clone` HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from conda-zsh-completion.