You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An executable code block {r eval=FALSE} is re-written as {.{r} eval="FALSE"}.
I'm sorry to report to you that this is no longer going to be valid syntax going forward. We plan to have helpers for people to convert, but I think we should actually be flagging that as a syntax error instead of a warning, because that round-tripping looks terrible.
table attributes
Hm. This looks like a bug. I'll ask Claude for a diagnosis and we'll take the fix design from there.
Sounds good, removal of the chunk options makes sense in the longer term and I had already noticed that labels included in the {} resulted in an error (slightly more sad to see those going as I prefer the conciseness over #| label: but simplifying the parser is the greater good).
Maybe part of this fix would be to make the error thrown for those clearer? Not sure it needs to be label specific
printf '```{r test}\n1+1\n```\n' | cargo run --bin pampa -- -t qmd
Error: Parse error
╭─[ <stdin>:1:6 ]
│
1 │ ```{r test}
│ ──┬──
│ ╰──── unexpected character or token here
───╯
```
Yes, I think we might be able to do much better in that error using our tree-sitter LALR table error message system. Thanks for the idea, I'll come back to this in a few days or weeks.
Activity
cscheid commentedon May 3, 2026
I'm sorry to report to you that this is no longer going to be valid syntax going forward. We plan to have helpers for people to convert, but I think we should actually be flagging that as a syntax error instead of a warning, because that round-tripping looks terrible.
Hm. This looks like a bug. I'll ask Claude for a diagnosis and we'll take the fix design from there.
cscheid commentedon May 3, 2026
Bugfix for table round-trip incoming on #154. I'm not sure what to do with the other one yet.
Round-trip table caption attributes in qmd writer (bd-f3pl) (#154)
Add /triage skill for setting up GitHub-issue worktrees
cscheid commentedon May 3, 2026
Keeping this open for the first half of the issue, but the table roundtrip should work now on
main. Thanks for the report!rundel commentedon May 4, 2026
Sounds good, removal of the chunk options makes sense in the longer term and I had already noticed that labels included in the
{}resulted in an error (slightly more sad to see those going as I prefer the conciseness over#| label:but simplifying the parser is the greater good).Maybe part of this fix would be to make the error thrown for those clearer? Not sure it needs to be label specific
cscheid commentedon May 4, 2026
Yes, I think we might be able to do much better in that error using our tree-sitter LALR table error message system. Thanks for the idea, I'll come back to this in a few days or weeks.
[-]Minor qmd writer issues[/-][+]issue better error message on encountering old-style code chunk options[/+]Reject knitr-style chunk options with Q-2-36 (#152) (#197)