Code silently sent to R terminal when opening a Quarto file
维护者通常 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 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
- Open VS Code
- Open an R Terminal and attach it to VS Code (either radian or normal R)
- 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,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
quarto-dev/quarto 的其他 Issue
-
VS Code extension: `quarto preview` fails when the file path contains parentheses (path not shell-quoted)可能已有人在做 @Bondrewd-K 于 2 天前认领。 未关闭bug vscode
难度 2/5 1-3 小时 新手友好度 78/100
quarto-dev/quarto#1194 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 84/100
quarto-dev/quarto#1139 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 1/5 1-3 小时 新手友好度 90/100
quarto-dev/quarto#1138 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 88/100
quarto-dev/quarto#1137 ·
维护者通常 1 天内回复
-
Add dependabot?可能重新可做 关联的 PR 已关闭且未合并。 未关闭
难度 2/5 1-3 小时 新手友好度 68/100
quarto-dev/quarto#1135 ·
维护者通常 1 天内回复
查看 quarto-dev/quarto 的全部 Issue
相似的 Issue
-
`cf complete zsh >> .zshrc` fails on vanilla zsh可能重新可做 关联的 PR 已关闭且未合并。 未关闭
难度 2/5 1-3 小时 新手友好度 75/100
cloudflare/cf#340 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
-
难度 2/5 1 小时以内 新手友好度 75/100
StoDevX/AAO-React-Native#8785 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 75/100
-
bnv-manager-v2: accept_invite creates the Mailcow domain admin before the commit可能已有人在做 @myOmikron 今天认领。 未关闭bug ready-for-agent
难度 2/5 1-3 小时 新手友好度 82/100