Skip to content

Session watcher doesn't work for self-managed environment #1047

Description

@elliothershberg

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.

Activity

  1. renkun-ken commented on Mar 15, 2022

    @renkun-ken
    Member

    See #1019 (comment).

    It is a known limitation at the moment.

  2. elliothershberg commented on Mar 15, 2022

    @elliothershberg
    Author

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

  3. renkun-ken commented on Mar 15, 2022

    @renkun-ken
    Member

    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.

  4. github-actions commented on Mar 16, 2023

    @github-actions

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

  5. github-actions commented on Mar 31, 2023

    @github-actions

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions