can't get --install-completion to work
See original GitHub issuegiven 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:
- Created 4 years ago
- Comments:8 (1 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

well , i think i solved this problem by adding the following lines to my .zshrc hope this helps
From here I got the workaround to add
compinit -Dto the end of my.zshrcfile. I have no idea what it means, but it worked.