Skip to content

Statement range provider does not work in Quarto's visual editorΒ #7709

@stefanocoretta

Description

@stefanocoretta

System details:

Positron and OS details:

2025.05.0 (Universal) build 142

OS: Darwin arm64 24.4.0

Interpreter details:

R 4.5.0

Describe the issue:

Possibly related to closed issue #1646.

When you run code from a Quarto code chunk, hitting CMD + ENTER sends only the current line rather than the entire statement (when the statement is split on multiple lines). This is unrelated to CMD + SHIFT + ENTER which runs the entire code chunk.

Image

Steps to reproduce the issue:

  1. Create a Quarto document with R interpreter.
  2. Create a code chunk.
  3. Write several statements that span multiple lines.
  4. Place cursor on first line of first statement.
  5. Hit CMD + ENTER.
  6. Only that line is sent to the console and an error comes up about an incomplete statement.

Expected or desired behavior:

The complete (multi-row) statement should be sent to the console and run.

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

Error:
! 
Can't execute incomplete input:

Metadata

Metadata

Assignees

Labels

area: quartoIssues related to Quarto category.bugSomething isn't workingsupport

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions