title: simple scala code compile error in IntelliJ IDEA on MacBook
body: <p>I am trying to run a simple "HelloWorld" scala program in IntelliJ IDEA on MacBook pro. </p>
  
  <p>I follow the instructions at: 
       <a href="https://docs.scala-lang.org/getting-started/intellij-track/getting-started-with-scala-in-intellij.html" rel="nofollow noreferrer">https://docs.scala-lang.org/getting-started/intellij-track/getting-started-with-scala-in-intellij.html</a></p>
  
  <p>But, I got error: </p>
  
  <pre><code> Error:scalac: Error: Error compiling the sbt component 'compiler-interface-2.11.0-56.0'
   sbt.internal.inc.CompileFailed: Error compiling the sbt component 'compiler-interface-2.11.0-56.0'
  
  at sbt.internal.inc.AnalyzingCompiler$.handleCompilationError$1(AnalyzingCompiler.scala:331)
  
   at sbt.internal.inc.AnalyzingCompiler$.$anonfun$compileSources$4(AnalyzingCompiler.scala:346)
  
   at sbt.internal.inc.AnalyzingCompiler$.$anonfun$compileSources$4$adapted(AnalyzingCompiler.scala:341)
  
   at sbt.io.IO$.withTemporaryDirectory(IO.scala:376)
  </code></pre>
  
  <p>I have tried the solutions at
       <a href="https://stackoverflow.com/questions/31851733/scala-compiliation-error-with-intellij">Scala Compiliation error with intellij</a></p>
  
  <p>but, none of them work. It seems that some sbt components are not compatible with scala version ? </p>
  
  <p>I have tried scala versions of </p>
  
  <pre><code> 2.11.0
   2.13.0-M1 
  </code></pre>
  
  <p>but, I got same errors.</p>
  
  <p>My IntelliJ IDEA version: COMMUNITY 2019.2.2 . and runtime version: 11.0.3.</p>
  
  <p>My Java: JDK 1.8.0</p>
  
  <p>But, I can run the same scala program from the terminal in IntelliJ IDEA.</p>
  
  <p>Do I miss something or set something wrong in IntelliJ IDEA  ? </p>
  
  <p>thanks</p>