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

Confusing error with quarto render when swapping input and args #2146

Open
4 tasks done
rundel opened this issue Aug 26, 2022 · 0 comments
Open
4 tasks done

Confusing error with quarto render when swapping input and args #2146

rundel opened this issue Aug 26, 2022 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@rundel
Copy link
Contributor

rundel commented Aug 26, 2022

Bug description

The following mistake was entirely my fault but I found the behavior slightly unexpected compared to standard command line interfaces and the error message made it difficult to immediately identify what the issue was. Running the following render command produces the below error.

$ quarto render --to html unvotes.ipynb
ERROR: The specified directory ('.') is not a Quarto project

I'm fine with the ordering of input vs args but it seems like swapping the order is an easy mistake to make and more helpful error message would be appreciated (e.g. invalid file path, --to does not exist, or something similar).

Checklist

  • Please include a minimal, fully reproducible example in a single .qmd file? Please provide the whole file rather than the snippet you believe is causing the issue.
  • Please format your issue so it is easier for us to read the bug report.
  • Please document the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
  • Please document the operating system you're running. If on Linux, please provide the specific distribution.
@rundel rundel added the bug Something isn't working label Aug 26, 2022
@cscheid cscheid added enhancement New feature or request and removed bug Something isn't working labels Aug 26, 2022
@cscheid cscheid added this to the Future milestone Aug 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants