docs.scala-lang icon indicating copy to clipboard operation
docs.scala-lang copied to clipboard

Getting Started with Scala in IntelliJ could use some love around adding dependencies.

Open whiteleyj opened this issue 4 years ago • 3 comments

Currently the docs on how to add a dependency to sbt is a single step process. Open up build.sbt and add the following line...scala-parser-combinator. It then goes on to explain what the += operator does, but doesn't really get into how to import the dependency or use a scala parser. I think it could be better.

As an improvement I'll submit a PR that shows how to read a configuration file using pure-config and print some values out.

The reasoning behind swapping out the scala-parser-combinator for pure-config is because reading configs is a useful skill for a newcomers to scala dev (like me) to pick up and pure-config is mildly impressive in how easy it is to understand.

whiteleyj avatar Oct 05 '21 22:10 whiteleyj

Hi, your suggestion sounds reasonable to me, although maybe we could use an even simpler library such as fansi?

julienrf avatar Oct 06 '21 09:10 julienrf

@julienrf I'll dig into that one. I sent in my initial PR here https://github.com/scala/docs.scala-lang/pull/2200, but i'm probably doing this wrong so any help with the normal process here would be appreciated. I'll go dig into fansi and see what that's like.

whiteleyj avatar Oct 06 '21 15:10 whiteleyj

It looks like you did the PR perfectly, thank you!

julienrf avatar Oct 06 '21 16:10 julienrf