quarto-dev / quarto-dev/quarto-cli
`quarto inspect` and temporary directories
Nessuno ha ancora preso questa issue.
- Lingua principale
- JavaScript
- Stelle
- 6k
- Fork
- 458
- Merge medio
- 1g 9h
- PR unite (30g)
- 41
Descrizione
From https://github.com/rstudio/rstudio/pull/11201#issuecomment-1128685959
With this R code:
dir.create(tf <- tempfile());
dir.create(file.path(tf, "sub"))
main <- file.path(tf, "main.qmd")
writeLines("---\ntitle: quarto document\n---\n", main)
sub <- file.path(tf, "sub", "sub.qmd")
writeLines("---\ntitle: quarto document\n---\n", sub)
writeLines('project:\n title: "test"\n', file.path(tf, "_quarto.yml"))
system(paste0("quarto inspect ", tf, "/main.qmd | grep project"))
system(paste0("quarto inspect ", tf, "/sub/sub.qmd | grep project"))
getting:
> system(paste0("quarto inspect ", tf, "/main.qmd | grep project"))
"project": "../../../private/tmp/RtmpAMjixD/file1842c7157d908"
> system(paste0("quarto inspect ", tf, "/sub/sub.qmd | grep project"))
"project": "../../../../private/tmp/RtmpAMjixD/file1842c7157d908"
In https://github.com/rstudio/rstudio/pull/11201#issuecomment-1128685959 I worked around it by by using workingDir but I was wondering if this was an issue.
% quarto --version
0.9.415
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Start by running the supplied R reproduction with quarto inspect on both main.qmd and sub/sub.qmd, using the reported Quarto version as a baseline. Trace how the CLI resolves the temporary project directory and verify that both invocations report a consistent project location rather than depth-dependent paths.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- javascript, r
- Ambito
- cli
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100