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.

can't get --install-completion to work

See original GitHub issue

given this program:

#!/usr/bin/env python
  port typer

app = typer.Typer()

@app.command()
def foo():
    print('foo')

@app.command()
def bar():
    print('bar')

if __name__ == "__main__":
    app()

I run: ./foo.py --install-completion

I see:

zsh completion installed in /Users/tchan/.zshrc.
Completion will take effect once you restart the terminal.

I source my .zshrc and then type ./foo.py and hit tab

I see this:

./foo.py env: foo.py: No such file or directory

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
shelpercommented, Aug 18, 2021

well , i think i solved this problem by adding the following lines to my .zshrc hope this helps

autoload -Uz compinit
zstyle ':completion:*' menu select
fpath+=~/.zfunc
compinit
0reactions
wpmcommented, Aug 14, 2022

From here I got the workaround to add compinit -D to the end of my .zshrc file. I have no idea what it means, but it worked.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Installation of Office hangs at 90% - Microsoft Support
You're trying to install Microsoft 365, Office 2016, or Office 2013 and the installation becomes unresponsive (hangs or freezes) at approximately the 90% ......
Read more >
auto-completion does not work for "sudo apt-get install"
I use my university pc where I can't use the autocomplete because am not a super user. The ppa of the package that...
Read more >
Tab auto completion doesn't work with apt-get install (kubuntu)
Auto completion doesn't work well when I try to install new software. It works only for default commands (when I type "apt-get inst"...
Read more >
python console tab completion not working in windows
The builtin completion relies on the GNU readline library. You may be able to get completion working by installing the python version ...
Read more >
[Solved] Tab Completion Not Working in Ubuntu & Debian
Normally, this should fix the problem but if bash-completion is already installed and you still have the problem, you may try reinstalling it....
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