sometimes strange problems occur if you use IDEA,比如你用sbt或maven编译成功但是用IDEA编译报错报错,
此时一般是项目的字符集和IDEA默认字符集冲突的问题,解决方法就是统一设置,目前咱们项目字符集统一是UTF-8
但是有时候,还会出现一下问题,此时一般是只有少数的errors 多数的警告,改字符集的情况一般是多数的errors(一般上百)
解决办法如下:
$ rm -rf .idea*
$
sbt gen-idea
File/Open in IDEA
, answer yes
to the question about converting to the new project structure
$
rm -rf projectFilesBackUp
to remove the backup files created during the conversion.
It gets a little annoying... when IDEA imports an SBT project it keeps track of dependency changes and updates stuff on the fly, not so with this work around.