Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Code silently sent to R terminal when opening a Quarto file

未关闭
#1,192 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
linux, r, typescript, vscode

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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
主要语言
TypeScript
星标
652
派生
64
平均合并
8 小时 45 分钟
30 天内合并 PR
36

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

quarto-dev/quarto 的其他 Issue

查看 quarto-dev/quarto 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。