As I finally found out today, an answer to my problem can be found at Does the Scala compiler work with UTF-8 encoded source files?. After adding the extra Scala compiler command-line parameter (as described there), and making sure a project's files use UTF-8 encoding, things started working.
tl;dr Use UTF-8 for the sources or switch to IntelliJ IDEA.
I've never looked at the file before and didn't find it an issue. Mainly because IntelliJ IDEA I use uses UTF-8 by default and the
final defs display fine.
~> builds fine when
sbt publishLocal also so it seems more an issue of Eclipse IDE that uses platform-dependent encoding for the source files than the sources themselves.
There's a simpler answer to your question - use a seemingly better IDE, i.e. IntelliJ IDEA or change the encoding to UTF-8.
p.s. Scala people love picking weird-looking names for their vals so get used to it :)
- Why is Scala compiler in Eclipse Kepler complaining about sbt sources?
- Spark Scala compiler not complaining about double vs. triple equals
- Scala Anorm Why is scala complaining about result not having a trait?
- Scala compiler is complaining about type mismatch for generic parameter on method level
- Why eclipse complaining about the missing dependency I added?
- Why does the Scala compiler disallow overloaded methods with default arguments?
- Why won't the Scala compiler apply tail call optimization unless a method is final?
- Why does sbt build fail with "MissingRequirementError: object scala.runtime in compiler mirror not found."?
- How to attach sources to SBT managed dependencies in Scala IDE?
- Does SBT use the Fast Scala Compiler (fsc)?
- Changing Scala sources directory in SBT
- Why "could not find implicit" error in Scala + Intellij + ScalaTest + Scalactic but not from sbt
- Why does Scala have very little enthusiasm about it?
- Why does Scala compiler fail with "no ': _*' annotation allowed here" when Row does accept varargs?
- Why does IDEA report "Error:scalac: error while loading Object, Missing dependency 'object scala in compiler mirror'" building scala breeze?
- Why it took so long to download sbt dependencies when I create a scala project in intellij idea?
- Why does Scala sbt update every time I start it from command prompt?
- Why does Scala warn about type erasure in the first case but not the second?
- Scala 2.10 compiler takes 10x longer after first time in SBT
- Why does sbt download a different Scala version than the one in build.sbt?
- Why does Scala compiler for .NET ignore the meaning of val?
- Why does the Scala compiler say that copy is not a member of my case class?
- Why does Scala compiler say that contravariant type A occurs in covariant position in type >: A <: Any of type B?
- Why does this code typecheck in Scala 2.11 and what can I do about it?
- Why is it faster to call external scala compiler than use the runtime interpreter library?
- Why doesn't the scala compiler generate a warning on if statements that always yield false inside a pattern match?
- Scala source files not recognized by compiler in Eclipse
- Why does Scala compiler reject function body with no leading space?
- Why do i need Scala compiler at runtime? (Play2/Salat with Scalap dependency)
- Why Scala compiler throws IndexOutOfBoundException while applying foreach on a mutable list
More Query from same tag
- Play 2.4 - Slick 3.0.0 - DELETE not working
- Updating a nested JsObject in Play Scala
- Parsing a dynamic value with Lift-JSON
- length of each word in array by using scala
- Static return type of Scala macros
- Scala Lift - Stream an image from server
- Unwrapping the value of an Identity monad
- Problems in Type Level Programming Scala
- noclassdeffounderror: could not initialize yyy class after deploying on spark standalone cluster
- Issues with using Scoverage: Scala Sbt
- Can't find ScalaSig for class - json4s with scala + proguard for an android app
- Why does the build fail with unresolved dependency: com.typesafe.sbt#sbt-native-packager;0.7.4?
- Scala's type equivalent in Java
- Scalate's render tag is not able to resolve the template
- Compiling chisel source files in chisel project template
- Scala Equality: Why does this code compile?
- Loop through list to call different functions
- Why does foreach only execute once when param name isn't specified?
- Adding a collection of different object to an ArrayBuffer
- Scala - extracting first element of inner array of strings from nested arrays of strings
- Is there a Scala Built-In Cache Class
- Does Akka automatically copy over variables when an actor fails
- Escape string interpolation in anorm
- No instance of play.api.libs.json.Format is available for akka.actor.typed.ActorRef[org.knoldus.eventSourcing.UserState.Confirmation]
- Infinite bogus pages in outpout docx using Apache Poi
- SBT aggregating subproject
- Spark Streaming to Kafka slow performance
- Scala MongoDB aggregate group and match query
- Play Framework 2 scala specs2 mockito, how do I write a mocking unit test
- Scala Mongo driver getting results using Future