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

Rendering custom formats within projects #8385

Closed
dragonstyle opened this issue Jan 22, 2024 Discussed in #7452 · 1 comment · Fixed by #8424
Closed

Rendering custom formats within projects #8385

dragonstyle opened this issue Jan 22, 2024 Discussed in #7452 · 1 comment · Fixed by #8424
Assignees
Labels
bug Something isn't working extensions relates to Quarto extensions mechanism
Milestone

Comments

@dragonstyle
Copy link
Collaborator

dragonstyle commented Jan 22, 2024

Discussed in #7452

Originally posted by andrewpbray November 2, 2023

Description

I'm running into unexpected behavior when rendering a file that uses a custom format that is installed at the project level. Say you have a default website with one new file, slides/deck1.qmd and a custom revealjs format, storybook, installed at the project level.

├── _quarto.yml
├── about.qmd
├── index.qmd
├── styles.css
├── _extensions
|   ├── mcanouil
|       ├── storybook
|           ├── _extension.yml
|           ├── ... and so on...
├── slides
|   ├── desk1.qmd

When I open up desk1.qmd in RStudio and click the Render button, I get:

ERROR: NotFound: No such file or directory (os error 2), stat '/Users/andrewbray/Desktop/testwebsite/slides/_extensions/mcanouil/storybook/mcsb.svg'

NotFound: No such file or directory (os error 2), stat '/Users/andrewbray/Desktop/testwebsite/slides/_extensions/mcanouil/storybook/mcsb.svg'

Which makes it look like it's looking for the extension at the document level. It works just fine if I render the entire project or if I run quarto render slides/deck1.qmd. Is this the intended behavior?

MWE found here:

https://github.com/andrewpbray/testwebsite

Versions

I'm running quarto 1.3.433 and RStudio 2023.09.1+494 (2023.09.1+494).

@dragonstyle dragonstyle added editors Issues with editing in text editors, IDEs, etc rstudio labels Jan 22, 2024
@dragonstyle dragonstyle self-assigned this Jan 22, 2024
@dragonstyle dragonstyle added bug Something isn't working extensions relates to Quarto extensions mechanism and removed editors Issues with editing in text editors, IDEs, etc rstudio labels Jan 22, 2024
@dragonstyle dragonstyle added this to the v1.5 milestone Jan 22, 2024
@dragonstyle
Copy link
Collaborator Author

See also

rstudio/rstudio#13961

dragonstyle added a commit that referenced this issue Jan 24, 2024
Frequently, the render is happening from within the project directory, so the previous implementation would work. But if rendering from within a subfolder, that wouldn’t work - this fixes that.

Fixes #8385
dragonstyle added a commit that referenced this issue Jan 24, 2024
Frequently, the render is happening from within the project directory, so the previous implementation would work. But if rendering from within a subfolder, that wouldn’t work - this fixes that.

Fixes #8385
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working extensions relates to Quarto extensions mechanism
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant