Skip to content

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

@rundel

Description

@rundel

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions