I am a high school teacher and I use Scala to teach me the Intro programming class. It's a little scary, but I'm excited.
However, since these are newcomers, I want to give them just the project structure. At the beginning, everything will just be top- .scala , and at the very beginning, everything will probably be in the same .scala file.
Unfortunately, I cannot figure out how to convince Eclipse that I do not want src/main/scala , src/test/scala , etc., and not get errors. Here is my best crack in build.sbt:
scalaSource in Compile <<= baseDirectory scalaSource in Test <<= baseDirectory resourceDirectory <<= baseDirectory unmanagedSourceDirectories in Compile <<= Seq(scalaSource in Compile).join unmanagedSourceDirectories in Test <<= Seq(scalaSource in Test).join
Unfortunately, when I run eclipse and update, Eclipse complains that there are duplicate entries in the build path and that they cannot bind to the base directory, which it represents as an absolute path to the project directory, but with hyphens that replace slashes.
I can fix the Eclipse project manually, but it would be great if I can figure out how not to do this.
source share