REditorSupport / REditorSupport/vscode-R

R 4.6.0: Session watcher not working

Open
#1,696 27 comments 13 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
1.2k
Forks
139
Avg merge
2h 46m
Merged PRs (30d)
5

Description

Describe the bug

'R: Creating R Terminal' results in 'R: (not attached)'.

To Reproduce

On a host with docker installed:

docker run --rm -p 8888:8888 -ti glcr.b-data.ch/jupyterlab/r/base:4.6.0

Follow the instructions in the terminal, i.e. open URL http://127.0.0.1:8888/lab?token=${TOKEN} in a browser.

Inside the container

  1. JupyterLab: Click on 'code-server'
  2. code-server: Open View > Command Palette... > R: Create R Terminal

Can you fix this issue by yourself? (We appreciate the help)

No

(If applicable) Please attach setting.json

"r.plot.useHttpgd": true,
"r.rterm.linux": "/usr/local/bin/R",
"r.rterm.option": [
  "--no-save",
  "--no-restore"
],
"r.workspaceViewer.showObjectSize": true,

Expected behavior

Session watcher also works with R 4.6.0 and later.

Screenshots

-

Environment (please complete the following information):

  • OS: Linux (Debian 13)
  • code-server Version: 4.117.0
    • aka Code Version 1.117.0
  • R Version: 4.6.0
  • vscode-R version: 2.8.8

Additional context

R version 4.6.0 (2026-04-24) -- "Because it was There"
Copyright (C) 2026 The R Foundation for Statistical Computing
Platform: aarch64-unknown-linux-gnu

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

  Natural language support but running in an English locale

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> .vsc.attach()
Error in .vsc.attach() : could not find function ".vsc.attach"

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

First reproduce the failure with the provided Docker command, code-server flow, and R 4.6.0 environment. Trace the session watcher from “R: Create R Terminal” through the reported .vsc.attach() error; done means the watcher attaches successfully and the R terminal is no longer marked “(not attached)” on R 4.6.0 and later.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, r, typescript, vscode
Domain
developer-experience, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.