question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

R session not attached after run command `create terminal` and restart vscode

See original GitHub issue

Describe the bug R session not attached after run command create terminal and restart vscode

To Reproduce Steps to reproduce the behavior:

  1. Connect to a cluster via SSH -
  2. Configure setting turn on session watcher
  3. Restart VSCode
  4. Create terminal command
  5. still shows R: (not attached)
  6. Click on the R: (not attached) will run .vsc.attach() but nothing happens.

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

Yes / No

Undecided as I am not sure what I can do

Expected behavior R session attached and I can use functions like View(). Also, I hope that .vsc.attach() can work in a self-created R terminal. Right now my workflow is to use bjobs to open an interactive bash session and then run R so that I have the RAM that I need for large data analysis.

Screenshots image

Environment (please complete the following information):

  • OS: Ubuntu 16.04 (server). PC: Windows 10
  • VSCode Version: 1.47.3
  • R Version: 3.6.1
  • vscode-R version: 1.4.4

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
GiulioGenovacommented, Oct 5, 2020

I had the same problem. I was using a workspace that was in a symlink, using the original directory solved the problem! Hope this helps

0reactions
renkun-kencommented, Oct 20, 2021

Please try the build from #827.

Read more comments on GitHub >

github_iconTop Results From Across the Web

R session not attached after run command create terminal and ...
Configure setting turn on session watcher; Restart VSCode; Create terminal command; still shows R: (not attached); Click on the R: (not attached) ...
Read more >
R not attached in VS Code on Win10 - Stack Overflow
Press Win + R to open Run and then enter C:\Program Files\R\R-4.1.2\bin\R.exe and press "OK". Does an R terminal pop up? – coip....
Read more >
Writing R in VSCode: Interacting with an R session - Kun Ren
You should set "r.sessionWatcher": true in vscode settings and reload vscode, then run command R: Create R terminal, and it should work then....
Read more >
R in Visual Studio Code
Running R code. Running R code is simply sending code to the R terminal. Before running R code, you could create an R...
Read more >
How to run R in Visual Studio Code - InfoWorld
One more step to set up my session if I want to run code as well as write it: I need to open...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found