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

quarto: provide feedback when inspect fails #1032

Closed
aronatkins opened this issue Jan 5, 2024 · 1 comment · Fixed by #1039
Closed

quarto: provide feedback when inspect fails #1032

aronatkins opened this issue Jan 5, 2024 · 1 comment · Fixed by #1039
Assignees

Comments

@aronatkins
Copy link
Contributor

Given the Quarto document:

---
format: unsupported
---

This is a Quarto document that attempts to use an unrecognized format.

Running quarto inspect produces an error.

quarto inspect index.qmd
# => ERROR: Unknown format unsupported

However, when rsconnect::writeManifest() or rsconnect:deployApp() acts upon this file, there is no complaint.

rsconnect::writeManifest()

The manifest declares that it should be quarto-static but is created without a quarto block. Additionally, a set of R packages is inferred, as if it needs knitr/rmarkdown.

When rsconnect::deployApp() publishes to Posit Connect, the lack of a Quarto block produces an error:

── Deployment complete ───
✖ Deployment failed with error: Unsupported App Mode.

This type of error can happen when the document uses a new type of format but the Quarto installation does not support that format.

@toph-allen toph-allen self-assigned this Jan 8, 2024
@aronatkins aronatkins self-assigned this Jan 25, 2024
aronatkins added a commit that referenced this issue Jan 26, 2024
* produce an error when Quarto content cannot be inspected

fixes #1032

* snapshot inspect error tests and other minor tweaks

* suppress quarto colors
@ChaitaC
Copy link

ChaitaC commented Jan 31, 2024

Verified on rsconnect dev build

RemoteUsername: rstudio
RemoteRef: HEAD
RemoteSha: 2e59f9d56651189487e195a8140baebe580d3476
GithubRepo: rsconnect
GithubUsername: rstudio

Accurate feedback is provided when inspect fails

✔ Re-deploying "quarto1234-1" using "server: rsc.radixu.com / username: ChaitaTest"
Error in `quartoInspect()`:
! Failed to run `quarto inspect` against your content:
ERROR: Unknown format unsupported

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