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 Workspace sidebar panel pane stays empty

See original GitHub issue

Describe the bug R Workspace stays empty

To Reproduce Steps to reproduce the behavior:

  1. Install R VS Code extension
  2. Enable Session Watcher
  3. Restart VS Code
  4. after loading tidyverse - create a sample data.frame object
  5. create a sample ggplot object
  6. R workspace stays empty

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

No - b/c of lack of electron (and js/ts) experience

(If yes,) what kind of help do you want? (e.g. Which file should I fix, Survey (related documents)

(If related)setting.json


    "r.alwaysUseActiveTerminal": true,
    "r.linting.pascalCase": false,
    "r.linting.camelCase": false,
    "r.linting.enable": true,
    "r.linting.nameLength": true,
    "r.editor.bracesOnNewLine": true,
    "r.editor.tabSize": 4,
    "r.rpath.windows": "C:\\R\\R-4.0.3\\bin\\x64\\R.exe",
    "r.rterm.windows": "C:\\R\\R-4.0.3\\bin\\x64\\Rterm.exe",
    "r.rterm.option": [
        "--no-save",
        "--no-restore-data"
    ],
    "r.rterm.linux": "/usr/bin/R",
    "r.rpath.linux": "/usr/bin/R",
    "r.workspaceViewer.removeHiddenItems": true,
    "r.sessionWatcher": true

Expected behavior Seeing R objects in the WORKSPACE sidebar panel window

Screenshots

image

Environment (please complete the following information):

  • OS: Windows 10
  • VSCode Version: 1.52.1
  • R Version: 4.0.3 (as well as 3.6.3)
  • vscode-R version: 1.6.3 (the one from VS Code extension marketplace)

Additional context Help Pages, Save and Load workspace and Clear env all work w/o any issues.

I have added the globalenv.json as .txt as well - that also looks fine globalenv.txt

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
gwd999commented, Jan 17, 2021

Not sure but am I missing some setup thing? Just asking b/c the workspace neither works on my home nor on my job PC? I do have a custom .Rprofile I am using on both machines … but when I deactivate that -> also the same result.

BUT!!! On WSL2 on my home machine it worked TEMPORARILY … thanks for giving me that idea, since you mentioned it working on yr WSL. I also managed to get it running temporarily on my HOME PC under WIndows 10. BUT View(globalenv()) only showed a white canvas; same happened when looking at a data.frame object (ie when I click on the View icon next to a data.frame in the R Workspace), functions and vectors in the R-workspace will showed up “nice” AND in my “native” WINDOWS 10 VSC sessions ON MY HOME PC nothing happens when issuing the View(globalenv()) command BUT on my WORK PC it tells me that you cannot coerce class “environment” to a data.frame, so again differing behavior - difference being that at WORK I use R-3.6.3 at HOME I use R-4.0.3 on WIN10 (switching versions from 4.0.3 to 3.6.3 on HOME PC did not solve it either, I tried that as well) and R-3.6.3 on WSL2 (Ubuntu 20.04).

Hope the cause is only some setting since the extension is really awesome! So is there is something in the Windows VSC settings regarding where commands are sent to for R extension that is not as it should be - any idea where I could maybe check?
Like I said it worked temporarily - a couple of times even the data.frame viewer would work as expected, after a couple of restarts or new sessions using projects in different folders - I am back to the same workspace issues again. Meaning some simple assignments like x <- c(1,2,3) worked temporarily but eg b <- TRUE just stops working without any observable reason. Changing x will not get picked up (manual Refresh also not working), View(globalenv()) will again stop doing anything, etc. Basically as if it crashed in the background. All seems to behave extremely randomly.

0reactions
koriliumcommented, Mar 23, 2021

sorry totally forgot about it and yes I did remove the whole setting.json file

Read more comments on GitHub >

github_iconTop Results From Across the Web

R Workspace sidebar panel pane stays empty #519 - GitHub
Your globalenv file looks okay, which is odd considering the bug. The workspace viewer should have the data passed to it during the...
Read more >
Reset perspective in R Studio? - Stack Overflow
Go to View > Panes > Show all panes.
Read more >
Restoring Missing Help/Environment/Plot Panes in the ...
The cause of this problem is usually that the right panes have been minimized. 1- Dragging the gripper. They can be restored by...
Read more >
User and Workspace Settings - Visual Studio Code
To open the Settings editor, use the following VS Code menu command: On Windows/Linux - File > Preferences > Settings; On macOS -...
Read more >
App Side Panes in Model-Driven Apps - Carl de Souza
Let's look at Customer Service Workspace. Our tab loads as part of the productivity pane: We can also control the state of the...
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