scala / docs.scala-lang

The Scala Documentation website
http://docs.scala-lang.org
561 stars 1.03k forks source link

in Toolkit sbt example, avoid having two subprojects #3016

Closed SethTisue closed 1 month ago

SethTisue commented 5 months ago

a language newcomer on Discord was bitten by this today

note that the examples weren't just unnecessarily complicated, they also used file("example") instead of file("."), so the user ended up having both a root and an example project, and they didn't understand that they needed to put their sources in example/src, because how on earth would they know that?

we can avoid issues like that by simply using the flat style

adpi2 commented 5 months ago

I am not convince about that because I think we should slowly discourage people from using the sbt flat style:

However I am okay to use file(".") instead of file("example"). It seems that's what we do in scala/scala3.g8 template.

SethTisue commented 5 months ago

okay, I'll make the change

adpi2 commented 1 month ago

LGTM! Is it ready to be merged?