R session not attached after run command `create terminal` and restart vscode
See original GitHub issueDescribe the bug
R session not attached after run command create terminal and restart vscode
To Reproduce Steps to reproduce the behavior:
- Connect to a cluster via SSH -
 - Configure setting turn on session watcher
 - Restart VSCode
 - Create terminal command
 - still shows 
R: (not attached) - 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

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:
 - Created 3 years ago
 - Reactions:1
 - Comments:10 (5 by maintainers)
 
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

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
Please try the build from #827.