sbt-typelevel icon indicating copy to clipboard operation
sbt-typelevel copied to clipboard

enable `-P:semanticdb:synthetics:on` in sbt-typelevel-scalafix?

Open armanbilge opened this issue 3 years ago • 2 comments

This is needed for some rules, but not all. Should we enable it by default? At the very least maybe expose a setting to make it easy to switch on. (And always the question: why doesn't sbt-scalafix do this itself?)

armanbilge avatar Jun 15 '22 21:06 armanbilge

What is the drawback? Compilation time?

rossabaker avatar Jun 16 '22 02:06 rossabaker

Maybe not even that. The semantic db docs say this for the option.

Specifies whether to save some of the compiler-synthesized code in the currently unspecified TextDocument.synthetics section (on for yes, off for no).

https://scalameta.org/docs/semanticdb/guide.html#scalac-compiler-plugin

That seems harmless enough?

I'm just confused/frustrated why we have to enable so much stuff that seems like it should be enabled in sbt-scalafix itself.

armanbilge avatar Jun 16 '22 04:06 armanbilge