Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue launching extension ("spawn EINVAL") #1549

Open
b-rhodes opened this issue Aug 15, 2024 · 2 comments
Open

Issue launching extension ("spawn EINVAL") #1549

b-rhodes opened this issue Aug 15, 2024 · 2 comments
Labels

Comments

@b-rhodes
Copy link

b-rhodes commented Aug 15, 2024

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:

  1. Open VSCode
  2. Click on 'extensions'
  3. Scroll down to 'R'
  4. Click on 'FEATURES' tab
  5. Click on 'Runtime Status'
  6. 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

@b-rhodes b-rhodes added the bug label Aug 15, 2024
@b-rhodes
Copy link
Author

I found some error in the extension host output:

2024-08-20 09:15:38.320 [error] Error: spawn EINVAL
	at ChildProcess.spawn (node:internal/child_process:421:11)
	at Object.spawn (node:child_process:799:9)
	at R (c:\Users\<username>\.vscode\extensions\reditorsupport.r-2.8.4\dist\extension.js:2:454372)
	at t.LanguageService.spawnServer (c:\Users\<username>\.vscode\extensions\reditorsupport.r-2.8.4\dist\extension.js:2:347396)
	at Server.<anonymous> (c:\Users\<username>\.vscode\extensions\reditorsupport.r-2.8.4\dist\extension.js:2:349708)
	at Object.onceWrapper (node:events:633:28)
	at Server.emit (node:events:519:28)
	at emitListeningNT (node:net:1932:10)
	at process.processTicksAndRejections (node:internal/process/task_queues:81:21)

@b-rhodes
Copy link
Author

still haven't managed to find a fix for this, so I've just been putting up with it or swapping to Positron when I desperately need the features.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant