Unable to attach R in active vscode terminal in Posit Workbench
Describe the bug I am trying to use R in VScode and I am getting below error message when I try to attach R in the active vscode terminal.
.vsc.attach() Error in .vsc.attach() : could not find function ".vsc.attach"
To Reproduce Steps to reproduce the behavior:
- Open VS Code session on Posit Workbench
- Install R extension for VSCode
- Open Terminal and Select "R Terminal"
- In the bottom of the page click "R: (not attached)"
- Now you will get the Error message like "Error in .vsc.attach() : could not find function ".vsc.attach""
Can you fix this issue by yourself? (We appreciate the help) No
(If yes,) can we assist you with anything?
(If applicable) Please attach setting.json
// R.exe path for windows
"r.rterm.windows": "",
// R path for Mac OS X
"r.rterm.mac": "/usr/local/bin/R",
// R path for Linux
"r.rterm.linux": "/usr/local/bin/R",
// 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 A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
You can show the keyboard contents by pressing F1 and Developer: toggle screencast mode
Environment (please complete the following information):
- OS: Linux
- VSCode Version: [e.g. 1.42.0]
- R Version: [4.5.0]
- vscode-R version: [2.8.6]
Additional context Add any other context about the problem here.