-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Tab completion and --file
option results in "y"
#9941
Comments
--file
option results in "y"
Can't reproduce |
Interesting, possibly distribution or terminal specific. I'm experiencing this on Ubuntu 22.04 LTS via SSH. Will try another distribution/terminal as comparison. |
Same here,
I use windows 11 to access (ssh) that ubuntu machine via windows terminal && cmder both terminal has same symptoms |
Same here. However, creating an alias (
|
Verified also reproduceable on Fedora 37 Server Edition; so in addition to Ubuntu and Debian, Fedora demonstrates the issue. Example: Fedora 37: https://asciinema.org/a/AA9sc6zRlfzFJd9b77fuXhgNE @ndeloof, please describe your environment that you cannot reproduce? Can you spin up an Ubuntu VM and try for us? |
Hi! Same here on Debian 11, bash 5.1.4, Docker Compose version v2.14.1 |
I can reproduce this error using a multipass Ubuntu VM, investigating |
completion for
Seems this is misunderstood by the bash-completion package which offers first common character
|
ok, I eventually understood what's wrong here:
the root cause is that docker CLI with cobra completion support hasn't been released yet. See docker/cli#3429 for details in the meantime, one option is for you to build the docker CLI from sources, and generate completion script. |
Same problem here on Ubuntu 20.04.5 LTS @ WSL2 on Windows 11. Is there a temporal workaround not involving building the cli from source? |
for your convenience I created a gist with completion script as generated by docker CLI: https://gist.github.com/ndeloof/c70c7a917503a19f4086e5e7b6370567 |
I'm closing this issue as "fixed in compose" (waiting for docker/cli release) |
Can you help me understand this comment (with me maybe being a bit of a noob)? It seems like the docker compose v2 code is in place, but for this functionality to work with regular docker installation we are waiting on a later release from the larger docker project? Is that right? If so, when will this later release be? Also, I didn't follow if there was a short/medium term workaround to get auto-completion working for docker compose v2 now. |
completion relies on docker/cli#3429 |
I'm not sure exactly how to upgrade to Docker CLI 23.01, but if I type |
It seems like the specific problem in this issue (tab completion for |
This issue is now fixed for me with Docker CLI 23.0.4 |
Description
When performing tab completion on --file , the result is the character "y". Regardless of how many leading characters are input before tab; the end result is "y" replaces all prior input.
Steps To Reproduce
Ubuntu 22.04.1, fully updated
Docker-CE repository
RUN: docker compose --file /mnt/start-of-path [tab]
RESULT: docker compose --file y
The expected result is the completion of the line relative to the objects in the path that match the preceding characters.
Compose Version
Docker Environment
Anything else?
Started with compose
Live Restore Enabled: true
The text was updated successfully, but these errors were encountered: