vscode-R: Unable to attach terminal with Google Drive (Drive File Stream)
I am using Windows 10 OS, and when I tried to use the session watcher, the R terminal cannot be attached. (neither auto attach or manually getOption('vscodeR')$attach())
I observed response.log was changing over time (as below), but obviously there was no attached R session or any expected window pop-up for dataview.
{"time":"2020-01-08 18:10:23","pid":7220,"command":"attach"}
{"time":"2020-01-08 18:10:26","pid":7220,"command":"attach"}
{"time":"2020-01-08 18:10:44","pid":7220,"command":"dataview","source":"table","type":"json","title":"mtcars","file":"C:\\Users\\kooho\\AppData\\Local\\Temp\\RtmpOKdp0S\\file1c3430431451.json"}
{"time":"2020-01-08 18:10:49","pid":7220,"command":"attach"}
{"time":"2020-01-08 18:15:47","pid":3172,"command":"attach"}
{"time":"2020-01-08 18:19:31","pid":5868,"command":"attach"}
{"time":"2020-01-08 18:19:34","pid":5868,"command":"attach"}
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 18 (8 by maintainers)
@Koohoko Thanks for reporting!
It looks like
init.Ris correctly sourced in your.Rprofilebut vscode-R does not manage to watch theresponse.logyou refer to. The following cases may lead to such problem:r.sessionWatcheris enabled, you’ll see a status itemR: (not attached).{workspaceFolder}/.vscode/vscode-R/response.log. If user starts an R session in another directory (e.g. a subdirectory), the R session will create a response file like{workspaceFolder}/subfolder/.vscode/vscode-R/response.log, which does not work with vscode-R running in{workspaceFolder}.If all above do not apply, would you like to post the output of the following command:
and the path of your workspace folder you open in VSCode?
@andycraig Thanks for your comment, the updated version works just fine, but later I found out that my problem was caused by other wrong configurations.
@renkun-ken Thank you so much! The issue is fixed.
It turns out that it was indeed the inconsistent workspace that caused the problem. After putting the
.Rprofileto my current directory (rather than the~folder) fixed the problem.Thanks for your amazing work.