Skip to content

View() on lists shows blank pane — jquery.json-viewer.css path mismatch in 2.8.7 #1687

@rafjohnson

Description

@rafjohnson

Environment

VSCode R Extension version: 2.8.7
OS: Fedora 43
R version: 4.5.3

Describe the bug

Calling View() on an R list opens the viewer pane but renders nothing.

Image

The webview logs the following error:
ERR Webview.loadLocalResource - Error using fileReader. requestUri: file:///home/.../.vscode/extensions/reditorsupport.r-2.8.7/dist/resources/jquery.json-viewer.css resourceToLoad: file:///home/.../.vscode/extensions/reditorsupport.r-2.8.7/dist/resources/jquery.json-viewer.css

Image

Root cause

The extension references dist/resources/jquery.json-viewer.css but the file is actually located at dist/resources/json-viewer/jquery.json-viewer.css. The resource moved into a subdirectory but the path reference was not updated.

Workaround

Copying jquery.json-viewer.css from dist/resources/json-viewer/ up to dist/resources/ restores functionality.

Expected behavior

View() on a list should display the tree viewer without manual file manipulation.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions