Replies: 1 comment
-
|
I'm having this same issue. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
Reproduction steps
Open Windows Terminal PowerShell:
In
pyproject.tomladd (from Building a Package doc):In
foo/__init__.pyadd the example code.Then run:
See the error:
This is caused by
poetry installwill install afoo.cmdinsideScripts, so Typer/click recognise this as cmd instead of PowerShell. Is there a workaround for this?Additional info
This works if it's not a package. Create
main.py):Using the same terminal as the reproduction steps above, run:
It works:
powershell completion installed in C:\Users\...\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1 Completion will take effect once you restart the terminalOperating System
Windows
Operating System Details
Edition Windows 11 Enterprise
Version 23H2
Installed on 2/26/2024
OS build 22631.4890
Experience Windows Feature Experience Pack 1000.22700.1067.0
PSVersion 5.1.22621.4391
Typer Version
0.15.2
Python Version
3.9.13
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions