You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Console pane shows (unknown) for the R version while the session is starting #18857
Not specific to a platform or version; applies to both RStudio Desktop and RStudio Server.
Describe the issue
The Console pane's interpreter label (the R logo and version next to the working directory) reads (unknown) while a session is starting, and only switches to the real version some seconds later.
The label is created with the (unknown) placeholder and then fills itself in from the get_rversion_info RPC. At startup that RPC is queued behind whatever R is busy with, so the placeholder is what users see for the first seconds of every session -- longest on RStudio Server, on slow workspace restores, and on projects with heavy startup code.
Suggested improvement
The version is already on the client before the widget is built: client_init sends it as r_versions_info.r_version in session info, from the same module_context::rVersion() the RPC uses, and session info is set before the workbench is constructed.
The label can therefore be seeded from session info synchronously, with the RPC left in place to refresh it (so a restart into a different R version is still picked up). (unknown) then remains only as the fallback for the case where session info isn't available yet.
Activity
show the R version in the console pane at startup (#18858)