"Run All Cells" only executes cells matching the language of the first cell in knitr reticulate documents

Aperta
#1,230 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
73/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
typescript, vscode

Direzione di ricerca

Start with apps/vscode/src/providers/cell/commands.ts and inspect RunAllCellsCommand to see how it selects cells before reticulate routing. Compare Run All with the reported Run Above/Below behavior. Done means mixed R and Python cells in a knitr reticulate document execute in document order, matching quarto render.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

vscode
Bug description

Open this document and select Quarto: Run All Cells:

---
engine: knitr
---

```{python}
print("Python 1")
```

```{r}
cat("R 1\n")
```

```{python}
print("Python 2")
```
Expected behavior

All three cells execute in document order, as they do with quarto render.

Actual behavior

Only the Python cells execute. They correctly run through reticulate, but the R cell is skipped. Running the R cell individually works and if the first executable cell is R instead, Run All executes only the R cells and skips Python.

The apparent cause is that RunAllCellsCommand collects only cells matching the first executable cell’s language, before reticulate routing happens.

This is related to posit-dev/positron#6675, but concerns bulk cell selection rather than the routing of individual cells. Run Above/Below also appear to filter by language.

Environment
  • Positron 2026.11.1 build 4
  • Quarto extension 1.139.0
  • Inline output disabled
  • quarto.cells.useReticulate: true
Steps to reproduce

No response

Actual behavior

No response

Expected behavior

No response

Your environment

No response

Lingua principale
TypeScript
Stelle
665
Fork
69
Merge medio
1g 8h
PR unite (30g)
13

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di quarto-dev/quarto

Tutte le issue di quarto-dev/quarto

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.