vscode-R icon indicating copy to clipboard operation
vscode-R copied to clipboard

Session watcher doesn't work for self-managed environment

Open elliothershberg opened this issue 3 years ago • 3 comments
trafficstars

Describe the bug

I am using the vscode-r extension in combination with the Remote-SSH extension to develop on a university cluster. I initially connect to the login node, which shouldn't be used for anything compute intensive. Unfortunately, using R: create R terminal starts the terminal on the login node as well (but the session watcher does work!).

To get around this, I'm trying to use a self-managed R terminal. I've set Always Use Active Terminal to true, and added the necessary snippet to my .Rprofile. The session watcher still doesn't work, and .vsc is undefined, so something has gone wrong

Do you want to fix by self? (We hope your help!)

Yes! I'd like to fix this, but would appreciate recommendations on what to check in order to make progress.

elliothershberg avatar Mar 14 '22 22:03 elliothershberg

See https://github.com/REditorSupport/vscode-R/issues/1019#issuecomment-1056616224.

It is a known limitation at the moment.

renkun-ken avatar Mar 15 '22 00:03 renkun-ken

Ahh, okay. Do you have any intuition for what is breaking it? I could potentially try to help fix it.

elliothershberg avatar Mar 15 '22 17:03 elliothershberg

On remote scenario, the session watcher relies on direct filesystem access to create file watcher on several files that will be updated by interactive user R session. On each user input, the R session file is updated to reflect the latest information, and the file watcher notifies the file change and let session watcher read the file and present the latest information.

If the remote vscode-R extension cannot access the files created by the R session, e.g. vscode-R is running on login node, yet R session is running on compute node, then there is no way to communicate between R session and session watcher at the moment.

renkun-ken avatar Mar 15 '22 17:03 renkun-ken

This issue is stale because it has been open for 365 days with no activity.

github-actions[bot] avatar Mar 16 '23 01:03 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Mar 31 '23 01:03 github-actions[bot]