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

Đang mở
#1,230 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
73/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript, vscode

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
TypeScript
Star
665
Fork
69
Merge trung bình
1 ngày 8 giờ
Pull request đã merge (30 ngày)
13

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của quarto-dev/quarto

Tất cả issue của quarto-dev/quarto

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.