question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Tab complete fails with zsh

See original GitHub issue

I’m using gsutil with zsh.

When I type:

gsutil cp path/to/local-fil<tab>

I see a “…” for tab completion for a fairly long time (maybe 3-5 seconds) and then no completion, even if there’s a valid completion available.

I have the following in my .zshrc:

# The next line updates PATH for the Google Cloud SDK.
source '/Users/danvk/google-cloud-sdk/path.zsh.inc'

# The next line enables shell command completion for gcloud.
source '/Users/danvk/google-cloud-sdk/completion.zsh.inc'

I’m on gcloud 131.0.0 and:

$ gsutil --version
gsutil version: 4.21

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:14 (3 by maintainers)

github_iconTop GitHub Comments

6reactions
MirkoArnold1commented, Aug 11, 2020

I have the same issue on MacOs (zsh is now default) with Google Cloud SDK 304.0.0. Tab completion seems to do something for a few seconds but does not complete.

1reaction
B0yc3ycommented, Jul 16, 2018

I’ve have had this issue pop up again too, although mine isn’t showing the "…"s its just not finding any autocomplete options. Any pointers for where to start looking?

gsutil version: 4.33 OSX: 10.13.5 (17F77) zsh 5.5.1 (x86_64-apple-darwin17.5.0)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Zsh tab-completion not working
1 Answer 1 · 5. Hello, after switching from Bash to Zsh on macOS Catalina, Tab completion stopped working for me. · 12....
Read more >
tab completion not working · Issue #5651 · ohmyzsh ...
I just started having this issue after my Mac login was moved to a network login. When I tried to uninstall/re-install zsh, I...
Read more >
Problem with tab completion : r/zsh
Hi, i have a problem with auto-completion since few days.. I will try to explain the problem: i want to type "example" command, ......
Read more >
Is there a way to get zsh to "forget" the casing of a filepath ...
Now whenever I tab complete, it always uses the invalid case. I'm on OSX so the filesystem is case-insensitive. While it ends up...
Read more >
zsh autocomplete broken - new Kali 2022.1 install ...
... that I go to autocomplete anything using the TAB key I get the errors shown below. ... _setup:8: failed to load module...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found