You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
First Check
Commit to Help
Example Code
Description
Tab completion does not work correctly with PowerShell (pwsh).
Operating System
Linux and Windows 11
Operating System Details
Ubuntu 24.04.3 WSL in Windows 11
Windows 11
PowerShell version 7.6.1
Typer Version
0.25.0
Python Version
3.14.4
Additional Context
Minimal Reproducible Example
uv init --package tabtyper cd tabtypernano -w src/tabtyper/__init__.pyUse the Path parameter example from the Typer docs:
https://typer.tiangolo.com/tutorial/parameter-types/path/#__tabbed_1_1
(unchanged, only pasted as-is)
[project.scripts]tabtyper = "tabtyper.__init__:app"uv add typerpwsh& ./.venv/bin/activate.ps1uv pip listBehavior Before Manual Completion Install (✅ works)
tabtyper --config ./pyproject.tomlSteps:
Press Arrow Up
Delete "l" in pyproject.toml
Press TAB TAB
pyproject.toml is suggested correctly
Press Enter
✅ Works as expected
Install completion manually
tabtyper --show-completion pwsh > tabtypercompletion.ps1. ./tabtypercompletion.ps1Steps:
Press Arrow Up
Delete "l" in pyproject.toml
Press TAB TAB
Press Enter
Actual result
❌ No command output
❌ tabtyper --help → no output
Shell prompt returns silently
Workaround
If cursor position is changed before tabbing, completion works again.
Steps:
Press Arrow Up
Press Arrow Left several times
Stop cursor over --config
Press TAB TAB
Press Enter
✅ Output appears correctly
Additional Observations
✅ Works correctly in Fish shell
On Windows PowerShell:
tabtyper -- TAB TAB shows no options
tabtyper --c TAB TAB correctly completes to --config
Expected Behavior
Path autocompletion should continue working normally after manual installation via --show-completion
tabtyper --help should never return no output
Beta Was this translation helpful? Give feedback.
All reactions