@ktakagaki
Okay so I get an error message about type mismatch when trying to use the parseArgs(args) function in the Util object. SBT console output is:
[cain@eden hayabaya]$ (fromScratch) sbt run
[info] Loading project definition from /home/cain/Kentawork/hayabaya/project
[info] Set current project to hayabaya (in build file:/home/cain/Kentawork/hayabaya/)
[info] Formatting 1 Scala source {file:/home/cain/Kentawork/hayabaya/}hayabaya(compile) ...
[info] Compiling 1 Scala source to /home/cain/Kentawork/hayabaya/target/scala-2.11/classes...
[error] /home/cain/Kentawork/hayabaya/src/main/scala/de/lin/hayabaya/util/Util.scala:54: type mismatch;
[error] found : de.lin.hayabaya.MainConfig.type
[error] required: de.lin.hayabaya.MainConfig
[error] conf
[error] ^
[error] one error found
[error] (compile:compileIncremental) Compilation failed
[error] Total time: 2 s, completed 24-Jun-2016 16:39:16
Why this type mismatch? is MainConfig.type != de.lin.hayabaya.MainConfig?
And how do I change it. Separate the MainConfig case class out into its own class file, put it into Util or something else?
@ktakagaki Okay so I get an error message about type mismatch when trying to use the parseArgs(args) function in the Util object. SBT console output is:
Why this type mismatch? is MainConfig.type != de.lin.hayabaya.MainConfig?
And how do I change it. Separate the MainConfig case class out into its own class file, put it into Util or something else?