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

Ouverte
#1,230 2 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
3/5
Temps estimé
1-2 jours
Accessibilité débutants
73/100
Type d'issue
Bug
Clarté
Clairement spécifiée
Activité
Active
Stack technique
typescript, vscode

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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

Langage dominant
TypeScript
Étoiles
665
Forks
69
Merge moyen
1 j 8 h
PR mergées (30 j)
13

Préparer son environnement

Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de quarto-dev/quarto

Toutes les issues de quarto-dev/quarto

Issues similaires

Plus d'issues TypeScript

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.