title: How do you use external Scala compiler with IDEA 12?
body: <p>How do you use external Scala compiler with IDEA ? I seem to have randomly appearing errors saying <em>"scala: Cannot connect to compile server at localhost/127.0.0.1:3200"</em></p>
  
  <p>Sometimes it works. Sometimes it doesn't. I can't find the pattern.</p>
  
  <p>Here is what I have in the log</p>
  
  <pre><code>9:20:58 PM Auto make completed with errors
  9:21:09 PM Using a new (SBT-based) Scala compiler.
             In case of any compilation problems you may enable the previous (internal) compiler by clearing:
             Project Settings / Compiler / Use external build
  9:21:10 PM Scala compile server
             Error: Could not create the Java Virtual Machine.
             Error: A fatal exception has occurred. Program will exit.
  
  9:21:12 PM Compilation completed with 1 error and 0 warnings in 3 sec
  </code></pre>
  
  <p>I'm using</p>
  
  <ul>
  <li>IDEA 12.1 (129.161)</li>
  <li>Scala compiler 2.10.1</li>
  <li>Scala plugin 0.7.213</li>
  <li>JDK 1.7</li>
  <li>Windows 7</li>
  </ul>
  
  <p>In Project Settings / Compiler / Use external build is checked.
  In IDE Settings / Scala / Run compile server is checked.</p>
  
  <p>Do I need to launch compiler server manually ? Anything else ?</p>
  
  <p>UPD: Looks like bug to me. I posted JIRA ticket <a href="http://youtrack.jetbrains.com/issue/SCL-5523">http://youtrack.jetbrains.com/issue/SCL-5523</a></p>