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

`View()` sidebar workspace viewer/panel fails to render

Open ptr-64 opened this issue 2 years ago • 4 comments

Describe the bug R View() panel fails to render objects

To Reproduce It works for some data frames/ plots and not others

Steps to reproduce the behavior:

  1. Install R VS-Code extension
  2. open an R file
  3. View() an R data frame, either by calling View(object) from the attached R console, or by using the sidebar
  4. the viewer stays empty

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

No- due to lack of experience with electron or js

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

Expected behavior The sidebar should render the R object

Screenshots image

Environment (please complete the following information):

  • OS: macOS 12.5.1
  • VSCode Version: 1.71.2
  • R Version: 4.2.1
  • vscode-R version: 2.5.3 (from the marketplace)

Additional context I basically ran into the same issue as in here I tried to delete my settings.json, and even reinstall vs-code (from homebrew).

ptr-64 avatar Sep 20 '22 01:09 ptr-64

Does View() ever work for any input (e.g. View(mtcars)) or it never works in your setup?

renkun-ken avatar Feb 11 '23 00:02 renkun-ken

Hi, bumping this up. It has recently not worked for me too. I had to reinstall Vscode and R because of a problem with Python, and it just stopped working. Neither View() nor help (e.g. ?apply) are working -- neither View(mtcars).

Not entirely sure if related, but also browsing pop-ups (e.g. when authenticating BigQuery keys) also stopped working.

Plus, not sure if this helps, but it seems like the command runs -- View() on large datasets keeps running for quite a while before not returning the pop-up.

I am uploading the output of ls.str(.vsc) like the guy above output of ls.str(.vsc).txt

joaofpugliese avatar Jan 17 '24 07:01 joaofpugliese

Does View() ever work for any input (e.g. View(mtcars)) or it never works in your setup?

Sorry I didn't reply. I thought my thread was dead. To answer your question, View(mtcars) works in a fresh session but quickly stops working if I load a dataframe. Based on my limited experimentation, trying to View() any dataframe bigger than 40MB causes the sidebar to stop rendering.

ptr-64 avatar Jan 22 '24 19:01 ptr-64