Skip to content

Positron assistant code completion bugs out quarto code chunks #11100

@tacaro

Description

@tacaro
Image Image

System details:

Positron and OS details:

Positron Version: 2025.12.1 build 4
Code - OSS Version: 1.106.0
Commit: f70a9bc
Date: 2025-12-05T20:53:14.100Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Darwin arm64 21.6.0

Session details:

R 4.5.1
Positron Assistant with Github Copilot Completion Provider

Describe the issue:

Github copilot code completion will indent the triple backticks '```' used to demarcate code chunks in quarto documents. This will cause errors with code execution when running lines of code or code chunks. These problems will show up in the 'Problems' tab as "No Symbol named '```' in scope.

Steps to reproduce the issue:

This issue is difficult to reproduce 'in the wild' because it relies on LLM completion interfering with the triple backticks, which it does not reliably do. The error I encounter can be reproduced manually with the following steps:

  1. Create a quarto document
  2. Either with code completion or manually, indent the triple backticks at the end of a quarto R code chunk
  3. With any sample code inside the code chunk, attempt to run the code line-by-line with whatever keyboard shortcut you have for this (for me, it's CMD+Enter).

(You may be able to reproduce the entire problem by coding one line above the triple backticks with an LLM completion tool for a long enough time period...)

Expected or desired behavior:

Code will not execute properly when these backticks are indented (which is often done inadvertently by Positron assistant/Github copilot completions)

Were there any error messages in the UI, Output panel, or Developer Tools console?

See above screenshot.

Metadata

Metadata

Assignees

No one assigned

    Labels

    info neededWaiting on information

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions