Ólafur Páll Geirsson

Results 361 comments of Ólafur Páll Geirsson

Also, can you include the output from `--verbose`? It should include the generated source code that we feed to the compiler

Thank you for the information. Could you try to minimize the markdown document? For example remove the fail blocks. At a quick glance, this looks like an issue with the...

You could try to see it changing the package name in mdoc to something else than “repl” fixes the issue. You can clone the mdoc repo and update Instrumenter.scala and...

Can you push your diff? The `"repl.Session"` string is referenced somewhere else when evaluating the code

The `repl.Session$` name is also referenced here https://github.com/scalameta/mdoc/blob/e642727d5a32ca6f1126841d834b75cfb602507b/mdoc/src/main/scala/mdoc/internal/markdown/MarkdownCompiler.scala#L47

Thank you for reporting! Can you maybe include the output from `--verbose`? This should print the fully instrumented code

Interesting, the instrumented code doesn't seem to use `+`. The error seems to come from the `sourcecode.Text.generate` macro https://github.com/scalameta/mdoc/blob/ae7613dcad4b39855a69e2c7139ca8e39dba52e3/runtime/src/main/scala/mdoc/internal/document/DocumentBuilder.scala#L38 I'm unable to minimize the issue however ```scala $ cat foo.scala...

I can't see anything in the macro implementation itself why the `+` appears 🤔 https://github.com/lihaoyi/sourcecode/blob/c1f49c15e0366c489c275fe7e7ddcefac608b4b1/sourcecode/src/sourcecode/Macros.scala#L133-L149

OK, the `+` may be coming from the implicit `pprint.TPrint[T]` parameter ```scala object foo { def bar[T](e: sourcecode.Text[T])(implicit tprint: pprint.TPrint[T]) = e.source + tprint.render val x = List(14) bar(x) }...

A workaround could be to drop `-deprecation` from `scalacOptions`