REditorSupport / REditorSupport/vscode-R

Session watcher will not attach when connected to remote host using SSH

Open
#1,604 0 comments 0 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

Session watcher will not attach when connected to remote host using SSH.

To Reproduce

Steps to reproduce the behavior:

(requires a remote server to connect to via SSH)

  1. Connect to remote server in VS Code using Remote-SSH: Connect to Host... command from command palette
  2. Start an R terminal with R: Create R Terminal
  3. Click on R icon, notice that workspace says "R workspace viewer requires that the session watcher be enabled", even though R session is created and accepts commands from the text editor.

I have followed the instructions in https://github.com/REditorSupport/vscode-R/wiki/R-Session-watcher, in particular "Advanced usage"

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

No

(If applicable) Please attach setting.json


{
    "files.watcherExclude": {
        "**/intermediates/**": true,
        "**/renv/library/**": true
    },
    "editor.acceptSuggestionOnCommitCharacter": false,
    "r.alwaysUseActiveTerminal": true,
    "r.bracketedPaste": false,
    "r.rterm.mac": "/usr/local/bin/r",
    "editor.tabSize": 2,
    "diffEditor.ignoreTrimWhitespace": false,
    "editor.rulers": [
      

        80
    ],
    "git.confirmSync": false,
    "terminal.integrated.enableMultiLinePasteWarning": false,
    "workbench.editor.pinnedTabSizing": "shrink",
    "quarto.mathjax.theme": "dark",
    "workbench.startupEditor": "none",
    "workbench.sideBar.location": "right",
    "editor.detectIndentation": false,
    "security.workspace.trust.untrustedFiles": "open",
    "files.defaultLanguage": "${activeEditorLanguage}",
    "githubIssues.queries": [
      {
        "label": "My Issues",
        "query": "default"
      },
      {
        "label": "Created Issues",
        "query": "author:${user} state:open repo:${owner}/${repository} sort:created-desc"
      },
      {
        "label": "Recent Issues",
        "query": "state:open repo:${owner}/${repository} sort:updated-desc"
      }
    ],
    "editor.minimap.enabled": false,
    "editor.parameterHints.enabled": false,
    "[markdown]": {
      "editor.defaultFormatter": "yzhang.markdown-all-in-one",
      "editor.wordWrap": "bounded",
      "editor.wordWrapColumn": 80
    },
    "editor.accessibilitySupport": "off",
    "redhat.telemetry.enabled": false,
    "githubPullRequests.queries": [
      {
        "label": "Waiting For My Review",
        "query": "repo:${owner}/${repository} is:open review-requested:${user}"
      },
      {
        "label": "Assigned To Me",
        "query": "repo:${owner}/${repository} is:open assignee:${user}"
      },
      {
        "label": "Created By Me",
        "query": "repo:${owner}/${repository} is:open author:${user}"
      }
    ],
    "cSpell.enableFiletypes": [
      "!r",
      "plaintext",
      "quarto",
      "rmd"
    ],
    "cSpell.enabled": true,
    "window.commandCenter": true,
    "markdown-preview-enhanced.breakOnSingleNewLine": false,
    "git.autoRepositoryDetection": "openEditors",
    "editor.tabCompletion": "on",
    "workbench.editor.enablePreviewFromQuickOpen": true,
    "window.title": "${rootName}",
    "terminal.integrated.commandsToSkipShell": [
      "language-julia.interrupt"
    ],
    "julia.symbolCacheDownload": true,
    "julia.enableTelemetry": true,
    "better-comments.highlightPlainText": true,
    "git.autofetch": true,
    "r.rpath.mac": "/usr/local/bin/R",
    "projectManager.git.baseFolders": [
      "~/repos/"
    ],
    "workbench.editor.empty.hint": "hidden",
    "terminal.integrated.stickyScroll.enabled": true,
    "remote.autoForwardPortsSource": "hybrid",
    "window.zoomLevel": -1,
    "application.shellEnvironmentResolutionTimeout": 20,
    "git.ignoreMissingGitWarning": true,
    "workbench.colorTheme": "Default Dark+",
    "terminal.integrated.defaultProfile.osx": "zsh",
    "scm.experimental.showHistoryGraph": true,
    "githubPullRequests.upstreamRemote": "never",
    "editor.unicodeHighlight.ambiguousCharacters": false,
    "github.gitProtocol": "ssh",
    "git.openRepositoryInParentFolders": "never",
    "licenser.license": "CC-BY-4",
    "licenser.author": "Joel H. Nitta",
    "gitlens.ai.experimental.model": "openai:gpt-4",
    "gitlens.home.preview.enabled": false,
    "gitlens.ai.model": "vscode",
    "gitlens.ai.vscode.model": "copilot:gpt-4o",
    "workbench.editorAssociations": {
      "*.copilotmd": "vscode.markdown.preview.editor",
      "{hexdiff}:/**/*.*": "hexEditor.hexedit",
      "*.qmd": "default"
    },
    "workbench.editor.enablePreview": false,
    "github.copilot.enable": {
      "quarto": false,
      "*": false,
      "plaintext": false,
      "markdown": false,
      "scminput": false
    },
    "window.confirmBeforeClose": "keyboardOnly",
    "files.associations": {
      "*.rmd": "markdown"
    },
    "[r]": {
        "editor.formatOnSave": true
    },
    "github.copilot.chat.agent.thinkingTool": true,
    "files.autoSave": "afterDelay"
}

Expected behavior

I expect the session watcher and R workspace viewer to work.

Screenshots

Image

Environment (please complete the following information):

  • OS: Ubuntu Linux
  • VSCode Version: 1.99.2
  • R Version: 4.5.0
  • vscode-R version: 2.8.5

Additional context

The session watcher and R workspace viewer do work properly when I am using VS Code locally (not connecting to the server).

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

Start by reviewing the linked R Session watcher wiki, especially its Advanced usage section, then reproduce with VS Code's Remote-SSH: Connect to Host... and R: Create R Terminal commands. Trace why the session watcher is not enabled in the remote window; done means the R workspace viewer works over SSH as it does locally.

Written by the indexing model from the issue text.

Assessment

Tech stack
r, typescript, vscode
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.