quarto-dev / quarto-dev/quarto

Running cells with `#| error: true` stops evaluation

Open
#796 8 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement vscode
Dominant language
TypeScript
Stars
645
Forks
62
Avg merge
17h 42m
Merged PRs (30d)
13

Description

Bug description

I am working on a quarto book and currently, I want to display some errors as part of the writing. This feature works when rendering the book. When I click "run all cells" or "run above", the code stops evaluating after an error. This means I can't easily run all the code.

It would be great if the quarto running cells takes notes of these errors and does not stop on these errors

Steps to reproduce

Reprex:

---
format: html
---

```{r}
#| error: true
mean()
```

```{r}
print("hello")
```

Click "Run all cells"

Actual behavior

No response

Expected behavior

No response

Your environment

No response

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the provided Quarto book reproducer and trace the handling of “Run all cells” and “Run above” when a cell has #| error: true. Verify that the later print("hello") cell still executes after mean() raises an error; done means evaluation continues while the expected error remains visible.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.