Conversation
Add support for automatically detecting `server: shiny` in Quarto documents by inspecting the `quarto inspect` output. When detected, the commands now use `quarto-shiny` app mode instead of always using `quarto-static`. This allows `rsconnect write-manifest quarto` and `rsconnect deploy quarto` to correctly handle Shiny Quarto documents without manual intervention. Fixes #754 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Add isinstance(dict) checks before calling .values() on formats and fileInformation to prevent potential AttributeError if Quarto inspect returns unexpected data types. This matches the defensive pattern already used for nested fields in the same function.
Add test cases for scenarios where the server field exists but has incorrect values (not "shiny"). This improves test coverage and makes the behavior more explicit for edge cases. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
☂️ Python Coverage
Overall Coverage
New FilesNo new covered files... Modified Files
|
karawoo
left a comment
There was a problem hiding this comment.
I tested this locally and was able to generate a manifest with "appmode": "quarto-shiny"
|
Used to install: |
|
@edgararuiz are you sure that |
|
@karawoo - Thanks! So I tried to deploy to connect again, and it returned this error: By the way, I've seen this error before. It is same one I would also get when I manually changed |
|
Ah I see the issue. The rsconnect manifest generation works fine but Connect does not support python shiny quarto documents, only R. |
|
I'm going to close this for now since Connect doesn't support this. We can reopen/redo when it does. |
Intent
Closes #754
Type of Change
Approach
Ask Claude to write the issue, ask Claude to do it, no not like that Claude, and Claude please review-and-fix your changes until the review is clean
Automated Tests
Looks like it
Directions for Reviewers
Other than passing CI, would be good to confirm that this change is enough to make it work in production. @edgararuiz can you check out this locally and see if it does the thing?
Checklist
rsconnect-python-tests-at-nightworkflow in Connect against this feature branch.