REditorSupport / REditorSupport/vscode-R
Issue launching extension ("spawn EINVAL")
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1.2k
- Forks
- 139
- Avg merge
- 2h 46m
- Merged PRs (30d)
- 5
Description
Describe the bug
Whenever I open VSCode, I get a little panel popping up saying "Help panel unavailable", and then when I look at the extension runtime status, it has:
Uncaught Errors (1)
spawn EINVAL
To Reproduce
Steps to reproduce the behavior:
- Open VSCode
- Click on 'extensions'
- Scroll down to 'R'
- Click on 'FEATURES' tab
- Click on 'Runtime Status'
- See the error
Can you fix this issue by yourself? (We appreciate the help)
No
"r.plot.useHttpgd": true,
"r.libPaths": [
"C:\\Users\\<username>\\.vscode-R\\renv\\library\\R-4.3\\x86_64-w64-mingw32",
"C:\\Users\\<username>\\.vscode-R\\renv\\library\\R-4.4\\x86_64-w64-mingw32",
"C:\\Users\\<username>\\AppData\\Local\\R\\win-library\\4.3",
"C:\\Users\\<username>\\AppData\\Local\\R\\win-library\\4.4"
],
"r.lsp.debug": true,
"r.lsp.diagnostics": true,
"r.rpath.windows":"C:\\Program Files\\R\\bin\\R.bat",
"r.rterm.option": [
"--no-save"
],
"r.rterm.windows": "C:\\Users\\<username>\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python312\\Scripts\\radian.exe",
"r.useRenvLibPath": true,
"shiny.r.port": 8080
Environment (please complete the following information):
- OS: Windows 11
- VSCode Version: 1.92.1
- R Version: 4.4.0
- vscode-R version: 2.8.4
Additional context
I'm using Rig to allow for changing R versions
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 reproducing the launch failure on Windows 11 with VS Code 1.92.1, R 4.4.0, and vscode-R 2.8.4, using the reported r.rpath.windows and r.rterm.windows settings. Trace which configured executable produces the spawn EINVAL error and verify that the extension runtime launches without the Help panel failure.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r, typescript, vscode
- Domain
- developer-experience, operating-systems, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100