dagger icon indicating copy to clipboard operation
dagger copied to clipboard

🐞 Bash completion failing in v0.11.0

Open Dudesons opened this issue 1 year ago • 2 comments

What is the issue?

Bash completion is failing since version v0.11.0 with the following error: Completion ended with directive ShellCompDirectiveNofileComp More details in this discord thread https://discordapp.com/channels/707636530424053791/1227602359547592745

Dagger version

dagger v0.11.0 (registry.dagger.io/engine) linux/amd64

Steps to reproduce

Install version v0.11.0 try to complete in a bash shell a dagger command.

Log output

No response

Dudesons avatar Apr 10 '24 13:04 Dudesons

cc @helderco

marcosnils avatar Apr 10 '24 13:04 marcosnils

looks like zsh doesn't seem seem to be working also: https://discord.com/channels/707636530424053791/1228287061061271614

marcosnils avatar Apr 12 '24 13:04 marcosnils

Going through some issues cleaning, I tried to repro this one on a vanilla bash 5.2 with bash-completion and dagger v0.12.4 freshly installed.

$ bash
bash-5.2$ . /opt/homebrew/etc/bash_completion
bash-5.2$ . /opt/homebrew/etc/bash_completion.d/dagger
bash-5.2$ dagger
call        (Call one or more functions, interconnected into a pipeline)  install     (Install a dependency)
completion  (Generate the autocompletion script for the specified shell)  login       (Log in to Dagger Cloud)
config      (Get or set module configuration)                             logout      (Log out from Dagger Cloud)
develop     (Prepare a local module for development)                      query       (Send API queries to a dagger engine)
functions   (List available functions)                                    run         (Run a command in a Dagger session)
help        (Help about any command)                                      version     (Print dagger version)
init        (Initialize a new module)
bash-5.2$

It works.

I can confirm it's also fine on zsh. I'll close this one. Please re-open if you think it still happens.

samalba avatar Aug 16 '24 19:08 samalba