12
13

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Scala 2.11 + sbt-builldinfo + IntelliJ IDEA で "BuildInfo is already defined as case class BuildInfo"

Last updated at Posted at 2014-06-24

Scala 2.11 で sbt-buildinfo を使っていて terminal から sbt でビルドする分には問題ないのに IntelliJ IDEA 上からコンパイルすると以下のような謎のエラーが必ず出るようになります(Scala 2.10.4 では起きない)。

Error:(4, 13) BuildInfo is already defined as case class BuildInfo
case object BuildInfo {
            ^

調べたところ、どうやらこれは IDEA のデフォルトのコンパイラ設定が Scala 2.11 にうまく対応できていない?ためのようで「Preferences > IDE Settings > Scala > Incremental compilation by」で「IntelliJ IDEA」ではなく「SBT incremental compiler」を選択すると回避できます。

Screen Shot 2014-06-24 at 16.05.56.png

他にも影響が出そうな内容なので、そのうち直るかもしれませんけど。

12
13
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
12
13

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?