"Run source with echo" overrides "Run current code chunk"
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 68/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 冷清
- 技术栈
- r, typescript, vscode
调研方向
首先在 vscode-R 扩展中定位“Run source with echo”和“Run current code chunk”的命令及键绑定定义,然后使用包含 # %% 代码块的 R 文件复现 Cmd-Shift-Enter 的行为。确认冲突的绑定或代码块检测是否导致整个文件运行;完成的标准是快捷键只运行当前代码块,同时不破坏其他操作。
由索引模型根据 Issue 内容生成。
描述
Describe the bug
When the cursor is located inside a code chunk and I press Cmd-Shift-Enter the entire file is run.
For example:
Sends:
r$> source("/Users/carlos/Desktop/scratch.R", encoding = "UTF-8", echo = TRUE)
r$> 5
[1] 5
r$> # %%
r$> a <- 1:3
r$> b <- 4:6
r$> outer(a, b)
[,1] [,2] [,3]
[1,] 4 5 6
[2,] 8 10 12
[3,] 12 15 18
r$> # %%
r$> 2
[1] 2
To Reproduce
- Create a code chunk with
# %% ... - Run it using "Run current code chunk" from the command palette -> fine
- Run it using code lens actions -> fine
- Run it using C-S-Enter -> the entire file is run
Can you fix this issue by yourself? (We appreciate the help)
Yes, I need to remove the conflicting binding. But I guess that the intention here is to use the same shortcut for both and the problem is that chunk detection is failing.
(If applicable) Please attach setting.json
"[r]": {"editor.tabSize": 2},
"r.rterm.mac": "/Users/carlos/.venv/bin/radian",
// https://github.com/REditorSupport/vscode-R/issues/809#issuecomment-935947010
"r.bracketedPaste": true,
"r.plot.useHttpgd": true,
Environment (please complete the following information):
- OS: macOS Tahoe
- VSCode Version: 1.125.1
- R Version: 4.5.3
- vscode-R version: 2.8.8
- 主要语言
- TypeScript
- 星标
- 1.2k
- 派生
- 139
- 平均合并
- 20 小时 32 分钟
- 30 天内合并 PR
- 25
环境准备
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
REditorSupport/vscode-R 的其他 Issue
-
enhancement
难度 2/5 1-3 小时 新手友好度 72/100
REditorSupport/vscode-R#1785 · 1 条评论 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 84/100
REditorSupport/vscode-R#1687 · 4 条评论 · 3 个 reaction ·
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 48/100
REditorSupport/vscode-R#1791 · 2 条评论 ·
维护者通常 1 天内回复
-
Rewrite issue templates可能已有人在做 @eitsupi 于 1 天前认领。 未关闭
REditorSupport/vscode-R#1783 · 已指派 1 人 ·
维护者通常 1 天内回复
-
feature-request
难度 4/5 3-5 天 新手友好度 48/100
REditorSupport/vscode-R#1780 ·
维护者通常 1 天内回复
查看 REditorSupport/vscode-R 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
microsoft/vscode-livepreview#876 ·
维护者通常 1 天内回复
-
needs-triage
难度 1/5 1 小时以内 新手友好度 90/100
JustJarethB/invoicer#54 ·
-
ICP 1.2.0 shows a scheduled task's interval in milliseconds under the label "Interval (In seconds)"未关闭Needs Triage Type/Bug
难度 2/5 1-3 小时 新手友好度 68/100
wso2/product-integrator#2585 ·
维护者通常 1 天内回复
-
check:passed streams:add
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
design
难度 2/5 1-3 小时 新手友好度 72/100
MTES-MCT/monitor-field#119 ·
维护者通常 1 天内回复