posit-dev / positron

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

content of R script gets deleted when opened in Rstudio. #5394

Open SergejRuff opened 1 week ago

SergejRuff commented 1 week ago

Hello,

System details:

Positron and OS details:

Positron Version: 2024.08.0 build 24 Code - OSS Version: 1.91.0 Commit: d1012cc6f36088bac24a16dcfd1b55d026b239c1 Date: 2024-08-09T03:15:54.873Z Electron: 29.4.0 Chromium: 122.0.6261.156 Node.js: 20.9.0 V8: 12.2.281.27-electron.0 OS: Linux x64 6.9.3-76060903-generic

Rstudio:

$mode [1] "desktop"

$version [1] ‘2024.4.2.764’

$long_version [1] "2024.04.2+764"

$release_name [1] "Chocolate Cosmos"

Interpreter details:

R 4.4.1

Describe the issue:

I have encountered an issue twice where R code written and saved in Positron is permanently deleted upon opening the file in RStudio. The deletion appears irreversible, as the file remains empty even when reopened in Positron or another text editor. Both times, I lost scripts containing 300–500 lines of code. Unfortunately, I have not been able to reproduce the issue. Is this a known problem?

Steps to reproduce the issue:

  1. write R code in positron and save it.
  2. Open it in Rstudio after saving the file.

Expected or desired behavior:

I expect the file to contain the content in both text editors without deletion.

juliasilge commented 6 days ago

Thank you for sharing this info; it is not a known problem, no! 😱

I am not able to reproduce this problem and do tend to open/save files in Positron and RStudio a lot without problems. If you are able to come up with a specific set of steps that causes this problem, that would be super helpful.

SergejRuff commented 6 days ago

Thank you for replying. I will try to reproduce it and get back to you.