vscode-R
vscode-R copied to clipboard
Session watcher will not attach when connected to remote host using SSH
trafficstars
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)
- Connect to remote server in VS Code using
Remote-SSH: Connect to Host...command from command palette - Start an R terminal with
R: Create R Terminal - 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
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).