Closed arne-henningsen closed 2 weeks ago
@arne-henningsen Thank you for raising this! This looks like a duplicate of #14625, which is fixed in the just-published patch, 2024.04.1+748, so I would recommend updating to it. https://posit.co/download/rstudio-desktop/
Thanks a lot! I can confirm that this bug has been fixed in version 2024.04.1+748 :-)
System details
The file "diagnostics-report.txt" is attached below.
Steps to reproduce the problem
(a) Create an R script with the following content:
(b) Move the cursor to the first line of the R script between the dollar sign and the comma. (c) press the 'tab' key.
Describe the problem in detail
R / RStudio crashes: "R encountered a fatal error. The session was terminated." and "Unexpected exception [...]" (see attached screenshot)
The error only occurs in RStudio's "Files" pane. It does not occur in RStudio's "Console" or in basic R.
The error also occurs if a data.frame 'dat' actually exists. As a command for creating a data.frame is unnecessary for reproducing the bug, I omitted it to keep the reproducible example minimal.
It seems to me that the bug always occurs when one uses the 'tab' key for auto-completion in a command with a non-ASCII character in an argument.
Describe the behavior you expected
Do not crash but show a 'menu' for selecting a variable.
diagnostics-report.txt