REditorSupport / REditorSupport/vscode-R
View() on lists shows blank pane — jquery.json-viewer.css path mismatch in 2.8.7
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1.2k
- Forks
- 139
- Avg merge
- 2h 46m
- Merged PRs (30d)
- 5
Description
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.
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
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the webview stylesheet reference to dist/resources/jquery.json-viewer.css and compare it with the packaged file at dist/resources/json-viewer/jquery.json-viewer.css. Reproduce View() on an R list and verify that the tree viewer renders without manually copying files.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- jquery, typescript, vscode
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Active
- Clarity
- Clearly specified
- Newbie friendliness
- 84/100