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

Did not receive a response from VSCode-R API within 5 seconds

Open kenhanscombe opened this issue 2 years ago • 9 comments

Hi,

On an HPC SLURM compute node, I'm getting

r$> devtools::load_all()                                                                                                                                                                         
Error in request_response("rstudioapi", action = action, args = list(...)) : 
  Did not receive a response from VSCode-R API within 5 seconds.

I think the last change I made was to ~/.Rprofile, adding

Sys.setenv(TERM_PROGRAM = "vscode")

source(file.path(
    Sys.getenv(
        if (.Platform$OS.type == "windows") "USERPROFILE" else "HOME"
    ),
    ".vscode-R", "init.R"
))

kenhanscombe avatar Mar 01 '22 13:03 kenhanscombe