Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Code silently sent to R terminal when opening a Quarto file

Đang mở
#1,192 0 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ó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
25/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
linux, r, typescript, vscode
Lĩnh vực
developer-experience

Hướng nghiên cứu

The report concerns the VS Code Quarto extension sending R chunk code to an attached R terminal when a .qmd file is opened. Start by reproducing it with an empty profile and a .qmd containing one library() line, then look for the code path that sends chunk text to the terminal on file open rather than on explicit run. Done means no code reaches the terminal without a user action, and the R terminal history and sessionInfo() stay clean.

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

Mô tả

bug vscode
Bug description

Hello,

I’ve been experiencing some high CPU and RAM usage when opening .qmd files lately. Some R processes are working hard in the background, and they keep running even if I quit VS Code. I need to manually kill them for my system to return to normal.

While investigating the issue, I realised that some code seems to be sent to my R terminal even though I never run any. For example, if I open a file with just an R chunk contaninig library(tidyverse) and then I open an R terminal, it will display after a few seconds the tidyverse loading message ("Attaching core tidyverse packages…"). If I then run sessionInfo() in that same terminal, I see that the tidyverse package is loaded.

I also find variables listed when I run ls() some time after opening a Quarto file with more code.

The code that appears to be sent to the terminal is not stored in its history (when I use the arrow up key, I don’t see anything).

I managed to reproduce the bug in an empty VS Code profile containing just R and Quarto extensions.

Steps to reproduce
  1. Open VS Code
  2. Open an R Terminal and attach it to VS Code (either radian or normal R)
  3. Open a .qmd file containing at least one line of R code
Actual behavior

Runs some code (at least the first line, but I think it’s more with larger files).

Expected behavior

It should not do anything.

Your environment
  • VS Codium (v. 1.135.06055)
  • Linux Fedora 44
Ngôn ngữ chính
TypeScript
Star
652
Fork
64
Merge trung bình
8 giờ 45 phút
Pull request đã merge (30 ngày)
36

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.