Issue/strange behaveour I found when working with Rmd #4531
-
Screen.Recording.2024-08-29.225621.mp4Positron Version: 2024.08.0 (system setup) build 48 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Oh gosh, definitely weird! I think that when you have code going to the console as console input but not executing, the console thinks the code is incomplete and is waiting for you to keep typing to finish the expression. Do you have an |
Beta Was this translation helpful? Give feedback.
-
@juliasilge , it happens all the time with that So, here, a minimal reprex to isolate the issue: it happens every time a header follows a chunk without an empty line in the middle: This does not have any issue---
title: "Issues with headers in Positron"
output: html_document
date: "2024-08-30"
---
```{r}
1+1
```
# Foo
```{r}
set.seed(123)
``` This shows the issue---
title: "Issues with headers in Positron"
output: html_document
date: "2024-08-30"
---
```{r}
1+1
```
# Foo
```{r}
set.seed(123)
``` If you see in the video, Positron highlights the background of the header in light gray if there is no space between the previous chunk. Screen.Recording.2024-08-30.071549.mp4PS: To make the system work again, unlike my previous statement, you don't need to perform computations, but it is still necessary to type ENTER after clearing the console when the issue occurs. |
Beta Was this translation helpful? Give feedback.
Ah yep, I believe you have run into quarto-dev/quarto#493 because the Quarto extension does not support this kind of syntax currently:
You do need the newline after the code chunk currently but that issue⤴️ tracks whether this can be supported better, or at the least linted to prompt folks like you to add the new line.