Closed kippandrew closed 2 years ago
Ran into this error today via quarto publish quarto-pub
as well, will upvote!
Note that in v1.1 we now detect server environments and just print the URL instead (we may be able to backport this fix but we haven't yet nominated fixes for backporting).
Another user reported a similar issue publishing to Quarto Pub:
https://community.rstudio.com/t/logging-in-and-publishing-to-quarto-pub/143511/3
This is fixed in v1.1 so closing now (note that v1.1 should ship by the end of the month and RStudio Cloud can update to it independent of RStudio)
Bug description
Attempting to publish to Netlify from RStudio Cloud via the RStudio Workbench terminal currently does not work:
I believe the issue is that quarto is not detecting the RStudio Workbench (Prairie Trillium) environment correctly when quarto is invoked from the terminal. See https://github.com/quarto-dev/quarto-cli/blob/90c7f3ba42ffdae3c2b13ad3d1814f8aaaa14b9f/src/core/platform.ts#L32:L35
The issue may be that the expected ENV vars are not present in the terminal session, so quarto is attempting to open a native browser window which fails due to lacking a display.
Example project running on RStudio Cloud: https://rstudio.cloud/content/4302652
quarto check
Outputquarto tools check
OutputChecklist
quarto check
in the "Quarto Check Output" text area?quarto tools check
in the "Quarto Tools Check Output" text area?