Extension behaving oddly when file is part of VSCode workspace
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 25/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- r, typescript, vscode
- 领域
- devtools
调研方向
未指定源文件、测试或入口点。首先在使用 R 4.4.0 和 vscode-R 2.8.3 的 Windows 10 VS Code 工作区中复现该行为,然后比较在工作区外加载同一个 .RData 文件并运行 View(df) 的情况。两种情况下 Global Environment 都被填充,且数据框查看器在 VS Code 中打开,即表示完成。
由索引模型根据 Issue 内容生成。
描述
Describe the bug
When I open my R files as part of a workspace file that I have, I can load a previous image, but nothing is populated under global Environment. When I run View(df) the R data frame Viewer pops up and not the one in VS Code.
If I repeat the same steps but outside of a Workspace then the extension behaves as normal.
To Reproduce
Steps to reproduce the behavior:
- Create a VS Workspace or use an existing one.
- Add an R file.
- Click on the R Extension and under Select the "Load Workspace". Select an existing *.rdata that contains data.
- Once done loading check under Global Environment. It is empty.
- Run View(df) to open any data frame. Default R viewer (from the normal R environment) should open.
- Close the Work space and open the same R file as in Step 2.
- Click on the R Extension and under Select "Load Workspace". Select an existing *.rdata that contains data.
- Once done loading check under Global Environment, it should be populated with the data.
- Run View(df) to open any data frame, it will now open in VS Code as per normal
Can you fix this issue by yourself? (We appreciate the help)
No
// R.exe path for windows
"r.rterm.windows": "",
// R command line options (i.e: --vanilla)
"r.rterm.option": [],
// An optional encoding to pass to R when executing the file, i.e. 'source(FILE, encoding=ENCODING)'
"r.source.encoding": "UTF-8",
// Keeping focus when running
"r.source.focus": "editor",
// Use active terminal for all commands, rather than creating a new R terminal
"r.alwaysUseActiveTerminal": false,
// Use bracketed paste mode
"r.bracketedPaste": false,
// Enable R session watcher
"r.sessionWatcher": true,
// Delay in milliseconds before sending each line to rterm (only applies if r.bracketedPaste is false)
"r.rtermSendDelay": 8,
**Expected behavior**
The expectation is that when running a file in a VS workspace or outside a VS Workspace it should behave the same. Running View(df) should open the data frame in VS Code. When loading an *.Rdata, the Global Environment should be populated with the needed information.
Before the current update this was the behavior.
**Screenshots**
**Environment (please complete the following information):**
- OS: Windows 10
- VSCode Version: 1.89.1
- R Version: 4.4.0
- vscode-R version: 2.8.3
**Additional context**
I recently update to R 4.4.0 (earlier this week I think) and the extension was still working as normal.
- 主要语言
- 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 今天认领。 未关闭
REditorSupport/vscode-R#1783 · 已指派 1 人 ·
维护者通常 1 天内回复
-
feature-request
难度 4/5 3-5 天 新手友好度 48/100
REditorSupport/vscode-R#1780 ·
维护者通常 1 天内回复
查看 REditorSupport/vscode-R 的全部 Issue
相似的 Issue
-
bug
难度 1/5 1 小时以内 新手友好度 88/100
StabilityNexus/Fate-EVM-Frontend#153 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
code-yeongyu/oh-my-openagent#9039 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 84/100
Tencent/teamai-cli#862 ·
维护者通常 1 天内回复
-
bug good first issue hacktoberfest redis
难度 2/5 1-3 小时 新手友好度 88/100
libredb/libredb-studio#1164 ·
维护者通常 1 天内回复
-
flake
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 1 天内回复