scalameta/mdoc

`mdoc:fail` blocks are displaying incorrect error results

erikerlandson opened this issue · 1 comments

I am running mdoc via sbt docs/tlSitePreview and the compiler is Scala 3.1.3

Here is a simple index.md file, with two different errors in a mdoc:fail block:

```scala mdoc:fail
val nope = "foo" * "goo"
```

```scala mdoc:fail
val bad = "moo" * "loo"
```

However, when I render it, the error from the first block re-appears in the 2nd block:

image

Thanks for reporting! I am looking into this, having some weird issues with the errors from the compiler, but I will try and dig in a bit more.