posit-dev / positron

Positron, a next-generation data science IDE
https://positron.posit.co
Other
2.77k stars 84 forks source link

Older, incompatible R versions from default repositories(< 4.2) not filtered out on Linux #4797

Open jmcphers opened 1 month ago

jmcphers commented 1 month ago

System details:

Positron and OS details:

Positron 2024.09.0 (Universal) build 77 Ubuntu Linux 22.04

Interpreter details:

R 4.1.2. This is the default version of R you get from the Ubuntu 22 package library; you can only install a newer version if you add CRAN's sources.

https://packages.ubuntu.com/jammy/r-base

Describe the issue:

R 4.1.2 starts, then enters an infinite crash loop with SIGSEGV (crashes, automatically restarted, crashes again, etc.)

Steps to reproduce the issue:

Start Positron and R on an Ubuntu 22 Linux instance with R 4.1.2 installed, or connect to a remote host running R 4.1.2.

Expected or desired behavior:

Positron requires R 4.2, so we should filter out older versions on Linux.

We already try to do this here:

https://github.com/posit-dev/positron/blob/9a48061c8f8d7fa64b9da0a58220228e6f7944e1/extensions/positron-r/src/r-installation.ts#L102-L107

but it doesn't appear to be working.

jmcphers commented 1 month ago

This is labeled with workbench because Workbench supports much older versions of R than Positron does, and this is a pretty awful out of the box experience for customers using older R.

jennybc commented 1 month ago

Is there anything interesting re: R discovery and filtering in the Positron R Extension output channel?