-
Notifications
You must be signed in to change notification settings - Fork 334
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
quarto-cli returns 0 error code on error/failure #11296
Comments
I can't reproduce on powershell ❯ quarto --version
1.6.32
❯ $LASTEXITCODE
0
❯ quarto blah
ERROR: Unknown command "blah". Did you mean command "use"?
❯ $LASTEXITCODE
1 I can't reproduce on CMD either using quarto.exe (nor quarto.cmd) > quarto.exe --version
1.6.32
>echo %ERRORLEVEL%
0
>quarto.exe blah
ERROR: Unknown command "blah". Did you mean command "use"?
> echo %ERRORLEVEL%
1 I'll try installing using Pip to see, but I believe this would be similar return. Can you try in powershell on your side too ? |
I can reproduce in the context of the virtual environment. 🤔 I can't see why right now this would be different than when using outside. |
It seems to be something with the python packaging in https://github.com/quarto-dev/quarto-cli-pypi I can reproduce by just using the >C:\Users\chris\.virtualenvs\error-hQkzJkn5\Scripts\quarto.exe blah
ERROR: Unknown command "blah". Did you mean command "use"?
>echo %ERRORLEVEL%
0
> C:\Users\chris\.virtualenvs\error-hQkzJkn5\Scripts\quarto.exe --version
1.5.57
>echo %ERRORLEVEL%
0 |
Thanks for helping to reproduce this. |
Bug description
Looks like the same problem as #10307 but seems to still be an issue (at least on windows)
OS:
quarto_cli version: 1.5.57 (also reproduced on 1.6.32)
Steps to reproduce
install latest stable quarto-cli from pypi
Error does not get reflected in a non-zero error code.
Same behaviour also observed on latest pre-release 1.6.32
Expected behavior
exit code should be non-zero
Actual behavior
exit code is zero when quarto command fails (due to invalid arguments, or when something else fails)
Your environment
OS: Windows 11 (10.0.22631 Build 22631)
IDE: n/a
Quarto check output
The text was updated successfully, but these errors were encountered: