Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uv generate-shell-completion powershell script error in uv 0.4.11. #7482

Closed
FishAlchemist opened this issue Sep 18, 2024 · 2 comments · Fixed by #7511
Closed

uv generate-shell-completion powershell script error in uv 0.4.11. #7482

FishAlchemist opened this issue Sep 18, 2024 · 2 comments · Fixed by #7511

Comments

@FishAlchemist
Copy link
Contributor

UV Version: uv 0.4.11 (e5dd67f 2024-09-17)
Error: A 'using' statement must appear before any other statements in a script.
(Error message. Since my computer's language is not English, I'm just translating it.)
I think it's because the new version added uvx completion (#7388), but it didn't consistently place "using" statements at the beginning.

@charliermarsh
Copy link
Member

\cc @bluss

@bluss
Copy link
Contributor

bluss commented Sep 18, 2024

Ok, not good, that means not all shells can handle having this output in one stream. I think uv and uvx completions then need to be in separate commands, like uvx --generate-shell-completion

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants