Description:
I am experiencing two separate problems in RStudio when working with Quarto projects:
- Syntax Highlighting Issue: When editing .qmd files, syntax highlighting disappears in code chunks after modifying the code. The highlighting is restored only after saving the file.
- Chunk Execution Issue: In some .qmd files, the run chunk green arrow disappears. Even when the arrow is visible, clicking it does not execute the chunk. This happens inconsistently across chunks.
Steps to Reproduce:
- Open a Quarto project in RStudio.
- Open a .qmd file.
- Modify code inside a chunk.
- Observe syntax highlighting disappearing.
- Try running the chunk via the green arrow or Cmd+Shift+Enter. Some chunks do not execute.
Expected Behavior:
- Syntax highlighting should persist while editing code.
- Chunks should execute consistently when triggered.
Actual Behavior:
- Syntax highlighting disappears after editing, reappears only after saving.
- Some chunks lose the run arrow, and some fail to execute even if the arrow is present.
System Information:
- RStudio Version: 2025.09.0+387
- R Version: 4.5.1 (2025-06-13) “Great Square Root”
- Quarto Version: 1.8.24 (macOS)
- OS: macOS (Tahoe 26.0)
Additional Notes:
This issue persists even after reinstalling RStudio. It affects both existing projects and newly created ones.