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

changes in {{ include file.md}} aren't watched in quarto preview #6413

Closed
danieltomasz opened this issue Aug 2, 2023 · 4 comments
Closed
Labels
duplicate This issue or pull request already exists

Comments

@danieltomasz
Copy link

danieltomasz commented Aug 2, 2023

Bug description

This is either not implemented yet or a bug, but I am making an issue as this is distinct enough from #3185

I created default book project and modified index.md file

# Preface {.unnumbered}

This is a Quarto book.

To learn more about Quarto books visit <https://quarto.org/docs/books>.

{{< include _foreword.qmd >}}

And I created file _foreword.qmd

# Foreword

I want to thank the developers

When I run
quarto preview --watch-inputs

and edited _foreword.qmd

to

# Foreword

I want to thank the developers of Quarto

the output doesnt change, only when I change something in the index.qmd
the pdf is rerendered.
I would like to {{ include file.md}} to be watched too.

Or if there is a limitation of quarto it should be include in the quarto page of includes https://quarto.org/docs/authoring/includes.html

Is it just the lua filter that does include?

Adding to _quarto.yml

resources: 
  - _foreword.qmd

helps with html rendering, but not with pdf.
Is there any other mechanism than can force quarto to watch specific files on change?

Quarto Version: 1.4.287, MacOS 13.4.1

@danieltomasz danieltomasz added the bug Something isn't working label Aug 2, 2023
@danieltomasz
Copy link
Author

danieltomasz commented Aug 2, 2023

Example doesnt use "_file.qmd" underscore syntax, but later I checked and with underscores it doesnt work as well;

Only the changes in "main files" cause preview to pull the changes from includes

@danieltomasz
Copy link
Author

This either forcing me to have everything in index md to reload on change and dummy empty page as index,
or use {{include chapters/file.md}} as I want to have my all my content in separate content, I dont want to just put into index file

@danieltomasz danieltomasz changed the title quarto preview doesnt rerender on changes in files included within {{ include file.md }} changes in {{ includes file.md}} aren't watched in quarto preview Aug 4, 2023
@danieltomasz danieltomasz changed the title changes in {{ includes file.md}} aren't watched in quarto preview changes in {{ include file.md}} aren't watched in quarto preview Aug 4, 2023
@mcanouil
Copy link
Collaborator

mcanouil commented Aug 7, 2023

This is actually the same issue as #3185 because the issue is that Quarto don't watch all dependencies of a Quarto document or a Quarto project.

And a duplicate of #2795, thus closing this.

@mcanouil mcanouil closed this as not planned Won't fix, can't repro, duplicate, stale Aug 7, 2023
@mcanouil mcanouil added duplicate This issue or pull request already exists and removed bug Something isn't working labels Aug 7, 2023
@danieltomasz
Copy link
Author

@mcanouil Thanks for update, I searched the issues before posting but I didt find #2795!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants