Fwd: mkToolBox eclipse building error

74 views
Skip to first unread message

Eugene Burmako

unread,
Nov 14, 2012, 9:21:37 AM11/14/12
to scala-i...@googlegroups.com
Hi guys, probably this would be of interest to you.

---------- Forwarded message ----------
From: George Kollias <georgio...@gmail.com>
Date: 14 November 2012 15:05
Subject: mkToolBox eclipse building error
To: scala...@googlegroups.com
Cc: eugene....@epfl.ch, vlad....@gmail.com


Hi,
Eclipse (with Scala 2.10 nightly plugin) cannot build the following code:

import scala.reflect.runtime.universe._
import scala.reflect.runtime.{universe => ru}
import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect.ToolBox

object Test extends App {
  val toolbox = cm.mkToolBox()
}

It gives these 2 errors:
1) bad symbolic reference to class Mirror in trait JavaUniverse - referenced from scala/reflect/api/JavaUniverse.class (a classfile may be missing)
2) value mkToolBox is not a member of reflect.runtime.universe.Mirror

Both scala-compiler.jar & scala-reflect.jar are included in the build path.

Any ideas?

Btw, there is no problem compiling the code above from the command line.

Thank you,
George




iulian dragos

unread,
Nov 15, 2012, 8:06:02 AM11/15/12
to George Kollias, scala-i...@googlegroups.com, eugene....@epfl.ch, vlad....@gmail.com
[moved to scala-ide-user]

On Wed, Nov 14, 2012 at 3:05 PM, George Kollias <georgio...@gmail.com> wrote:
Hi,
Eclipse (with Scala 2.10 nightly plugin) cannot build the following code:

What nightly version?

Your code compiles just fine for me (version 2.1.0.nightly-2_10-201211150421-8a424af).

iulian
 

import scala.reflect.runtime.universe._
import scala.reflect.runtime.{universe => ru}
import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect.ToolBox

object Test extends App {
  val toolbox = cm.mkToolBox()
}

It gives these 2 errors:
1) bad symbolic reference to class Mirror in trait JavaUniverse - referenced from scala/reflect/api/JavaUniverse.class (a classfile may be missing)
2) value mkToolBox is not a member of reflect.runtime.universe.Mirror

Both scala-compiler.jar & scala-reflect.jar are included in the build path.

Any ideas?

Btw, there is no problem compiling the code above from the command line.

Thank you,
George






--
« Je déteste la montagne, ça cache le paysage »
Alphonse Allais
Reply all
Reply to author
Forward
0 new messages