title: How to use Quasar with Scala under sbt?
body: <p>I wish to use <a href="http://docs.paralleluniverse.co/quasar/">Quasar</a> in my SBT project. Since <a href="https://github.com/puniverse/quasar/issues/45">Scala is not yet supported</a> the only viable option left is to have SBT compile some java classes that use of Quasar.</p>
  
  <p>I tried putting</p>
  
  <pre><code>javaOptions += "-javaagent:PATH_TO_JAR/quasar-core-0.5.0.jar"
  </code></pre>
  
  <p>and </p>
  
  <pre><code>fork := true
  </code></pre>
  
  <p>as I read that for using e.g. JRebel one must insert both these statements into build.sbt</p>
  
  <p>But it does not seem to work either as using a Quasarish class (<a href="https://github.com/maciejjaskowski/sbt-quasar-example/blob/master/src/main/java/pl/jaskowski/QuasarExample.java">QuasarExample</a>) yields:</p>
  
  <pre><code>[error]    IllegalArgumentException: : Fiber class HelloWorldSpec$$anonfun$1$$anonfun$apply$3$$anon$1 has not been instrumented.  (Fiber.java:151)
  [error] co.paralleluniverse.fibers.Fiber.&lt;init&gt;(Fiber.java:151)
  [error] co.paralleluniverse.fibers.Fiber.&lt;init&gt;(Fiber.java:171)
  [error] co.paralleluniverse.fibers.Fiber.&lt;init&gt;(Fiber.java:448)
  </code></pre>
  
  <p>A piece of code that's expected to be running without errors after successful instrumentation:</p>
  
  <pre><code>new Fiber&lt;Integer&gt;() {
      @Override
      protected Integer run() throws SuspendExecution, InterruptedException {
          return 0;
      }
  }.start();
  </code></pre>
  
  <p>See also <a href="https://github.com/maciejjaskowski/sbt-quasar-example">this repository</a> for a starter.</p>