vscDebugger
vscDebugger copied to clipboard
R path not working
Hi, I'm looking forward to using this extension, but unfortunately I am having trouble getting a simple test case to work. Everything I've tried so far gets the following error when I run the debugger:
Popup window saying:
R path not working: /usr/local/bin/R (Can be changed in setting r.rpath.XXX)
The debug console displays:
R not responding within 2000ms!
R path:
/usr/local/bin/R
If R is installed but in a different path, please adjust the setting r.rpath.windows/mac/linux.
If R might take more than 2000ms to launch, try increasing the setting r.debugger.timeouts.startup!
That (default) path /usr/local/bin/R
is correct (it's what I see when I run which R
at the command line). I tried putting it in explicitly, and also putting in the executable to which it points, but I still get that error.
I increased the startup timeout 10x to 20000ms to no avail.
I followed the instructions on the troubleshooting page, making an empty test directory, with a simple hello world R script to debug.
I disabled my .Rprofile with "commandLineArgs": ["--vanilla"]
in the Debug R-File config, but that didn't change anything.
Here is the R Debugger log output, if that might be helpful:
[info....] [01:16:41.736] [ ] Request handled in VS Code:
[info....] [01:16:41.736] [ ] {"command":"initialize","arguments":{"clientID":"vscode","clientName":"Visual Studio Code - Insiders","adapterID":"R-Debugger","pathFormat":"path","linesStartAt1":true,"columnsStartAt1":true,"supportsVariableType":true,"supportsVariablePaging":true,"supportsRunInTerminalRequest":true,"locale":"en-us","supportsProgressReporting":true,"supportsInvalidatedEvent":true,"supportsMemoryReferences":true,"threadId":1,"extensionVersion":"0.4.7","rStrings":{"prompt":"<#v\\s\\c>","continue":"<##v\\s\\c>","startup":"<v\\s\\c\\R\\STARTUP>","libraryNotFound":"<v\\s\\c\\LIBRARY\\NOT\\FOUND>","packageName":"vscDebugger"}},"type":"request","seq":1}
[info....] [01:16:41.736] [ ] R Startup:
[info....] [01:16:41.736] [ ] {"path":"/usr/local/bin/R","args":["--quiet","--no-save","--interactive","--vanilla"],"cwd":"/Users/j/TEST"}
[stdin...] [01:16:41.738] [n] base::cat("<v\\s\\c\\R\\STARTUP>\n")
[error...] [01:16:43.739] [n] R path not working:
[error...] [01:16:43.739] [n] /usr/local/bin/R
[error...] [01:16:43.739] [ ] (Can be changed in setting r.rpath.XXX)
[cpinfo..] [01:16:43.791] [ ] sending signal SIGKILL...
[cpinfo..] [01:16:43.794] [ ] sent signal
[cpinfo..] [01:16:43.819] [ ] Child process exited with code: null
[stdin...] [01:16:43.823] [n] vscDebugger::.vsc.handleJson(json="{\"command\":\"disconnect\",\"arguments\":{\"restart\":false},\"type\":\"request\",\"seq\":2}")
[cpinfo..] [01:16:44.301] [ ] sending signal SIGKILL...
[cpinfo..] [01:16:44.305] [ ] sent signal
[info....] [01:16:45.824] [ ] Killing R...
[cpinfo..] [01:16:45.824] [ ] sending signal SIGKILL...
[cpinfo..] [01:16:45.827] [ ] sent signal
Is there something else that I should have tried? I'm out of ideas. :)
Environment
- OS: macOS Monterey 12.2.1 (21D62)
- R Version: 4.1.2
- Platform: aarch64-apple-darwin20 (64-bit)
- vscDebugger Version: 0.4.7
- vscode-r-debugger Version: 0.4.7
Could this be related to https://github.com/ManuelHentschel/VSCode-R-Debugger/issues/155? From your info and the logs I can't see anything wrong with your setup otherwise...