scala plugin compile java source file with non-english comments report error on Mac

My project use sbt and play framework for Java.

I have some Chinese comments in my source file.My file encoding is UTF-8.

I set the encoding to UTF-8 in every place that I can find in IDEA.

屏幕快照 2015-04-05 下午1.25.09.png
屏幕快照 2015-04-05 下午1.25.25.png
When I build the project with make button in IDEA on my mbp, IDEA complains about ascii error.

屏幕快照 2015-04-05 下午1.33.03.png
But I can build the project in terminal with "sbt compile" command.

I also tried in Ubuntu, everything is fine.

After a while, I added this javac option in my build.sbt,  IDEA works fine on my mbp.

javacOptions ++= Seq("-encoding", "UTF-8")

I doubt is the problem about Scala Plugin in IDEA?

Mac: OS X Yosemite 10.10.2
Ubuntu: 14.04
IDEA: 14.1.1(also tried in 14.0.3
scala plugin:1.4.15(also tried in 1.4)
sbt: 0.13.7
scala: 2.11.6
play: 2.3.8

my project is on github:


Please sign in to leave a comment.