Hi,
Would appreciate help in troubleshooting my RStudio install. It was working fine until one day when it just wouldn't open, with the problem report copied below. I've tried reinstalling both R and RStudio, and have deleted all R startup files. I also tried the command sudo chown $USER ~/.local/share . R runs fine when I try to open it independently of RStudio. Any ideas? I'm wondering if it has to do with the Copilot AI plugin I had recently installed...
Problem report below, thanks!
R Session Startup Failure Report
RStudio Version
RStudio 2024.12.1+563 "Kousa Dogwood " (27771613, 2025-02-02) for macOS
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) RStudio/2024.12.1+563 Chrome/126.0.6478.234 Electron/31.7.7 Safari/537.36
Error message
[No error available]
Process Output
The R session exited with code 1.
Error output:
[No errors emitted]
Standard output:
[No output emitted]
Logs
/Users/nathan/.local/share/rstudio/log/rsession-nathan.log
2025-04-03T11:36:33.215817Z [rsession-nathan] ERROR json-parse error 1 (An error occurred while parsing json. Offset: 0); OCCURRED AT virtual Error rstudio::core::json::Value::parse(const char *) src/cpp/shared_core/json/Json.cpp:669; LOGGED FROM: void rstudio::session::modules::copilot::(anonymous namespace)::onBackgroundProcessing(bool) src/cpp/session/modules/SessionCopilot.cpp:1318
2025-04-03T11:36:33.219400Z [rsession-nathan] ERROR [onStdout]: Internal error: parsing response failed.; LOGGED FROM: void rstudio::session::modules::copilot::(anonymous namespace)::agent::onStdout(ProcessOperations &, const std::string &) src/cpp/session/modules/SessionCopilot.cpp:859
2025-04-03T11:36:33.219400Z [rsession-nathan] ERROR [onStdout]: Internal error: parsing response failed.; LOGGED FROM: void rstudio::session::modules::copilot::(anonymous namespace)::agent::onStdout(ProcessOperations &, const std::string &) src/cpp/session/modules/SessionCopilot.cpp:859
EDIT: fixed by running this code in terminal!
rm -rf ~/.local/share/rstudio
rm -rf ~/.config/rstudio