Hi,
I am trying to import a Scala project into Eclipse/Scala IDE from https://github.com/scalanlp/breeze. I clone the repository and run `sbt eclipse` on Ubuntu 14.04, using sbt version 0.13.7. There are actually 5 sub-projects, so the output is:
[info] Successfully created Eclipse project files for project(s):
[info] breeze-viz
[info] breeze
[info] breeze-macros
[info] breeze-natives
[info] breeze-benchmark
Looks all good. So I import the projects in Eclipse. However, when the workspace is built for the project `breeze-macros`, there is the following errors:The Eclipse log file reports the following:
- Error in Scala compiler: scala.tools.nsc.typechecker.Namers$Namer.enterExistingSym(Lscala/reflect/internal/Symbols$Symbol;)Lscala/tools/nsc/typechecker/Contexts$Context;
- SBT builder crashed while compiling. The error message is 'scala.tools.nsc.typechecker.Namers$Namer.enterExistingSym(Lscala/reflect/internal/Symbols$Symbol;)Lscala/tools/nsc/typechecker/Contexts$Context;'. Check Error Log for details.
!ENTRY org.scala-ide.sdt.core 4 0 2015-03-16 09:54:38.759
!MESSAGE Error in Scala compiler
!STACK 0
java.lang.NoSuchMethodError: scala.tools.nsc.typechecker.Namers$Namer.enterExistingSym(Lscala/reflect/internal/Symbols$Symbol;)Lscala/tools/nsc/typechecker/Contexts$Context;
at org.scalamacros.paradise.typechecker.Namers$Namer$class.enterSym(Namers.scala:41)
at org.scalamacros.paradise.typechecker.Namers$$anon$3.enterSym(Namers.scala:13)
at org.scalamacros.paradise.typechecker.AnalyzerPlugins$MacroPlugin$.pluginsEnterSym(AnalyzerPlugins.scala:35)
--
You received this message because you are subscribed to the Google Groups "Scala IDE User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-ide-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scala-ide-user/dc018e04-8cc6-43b8-8279-191c17f4e8f6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Iulian,
Am 16.03.2015 um 20:06 schrieb iulian dragos:
Hi Iulian,
Thanks for the pointer, this has been the cause indeed.
> It's using macro-paradise, which is a compiler plugin. You need a
> perfect match between the compiler plugin and build compiler, so make
> sure they do match. Is this a 2.10 project, by the way?
> You can add an existing Scala installation, assuming the macro paradise
> is for a different version of 2.10 than the one shipped with the IDE
> (Preferences/Scala/Scala Installations).
>
It is a SBT project which specificied Scala 2.11.4 and 2.10.x for
cross-compiling. SBT Eclipse uses Scala 2.11.6 though.
So what I did is to change the Scala version in build.sbt and ran sbt
compile so that Ivy retrieved the appropriate Paradise version (2.11.6
instead of 2.11.4). Subsequently, I adapted the path to the compiler
plugin in Eclipse to point the newly downloaded version.
This does not seem very intuitive and as a Scala IDE newbie I wonder
whether there would have been a more elegant solution. Anyway, thank you
very much!
Carsten
--
Carsten Schnober
Doctoral Researcher
Ubiquitous Knowledge Processing (UKP) Lab
FB 20 / Computer Science Department
Technische Universität Darmstadt
Hochschulstr. 10, D-64289 Darmstadt, Germany
phone [+49] (0)6151 16-6227, fax -5455, room S2/02/B111
schn...@ukp.informatik.tu-darmstadt.de
www.ukp.tu-darmstadt.de
Web Research at TU Darmstadt (WeRC): www.werc.tu-darmstadt.de
GRK 1994: Adaptive Preparation of Information from Heterogeneous Sources
(AIPHES): www.aiphes.tu-darmstadt.de
PhD program: Knowledge Discovery in Scientific Literature (KDSL)
www.kdsl.tu-darmstadt.de
--
You received this message because you are subscribed to the Google Groups "Scala IDE User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-ide-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scala-ide-user/5507F452.9090201%40ukp.informatik.tu-darmstadt.de.
For more options, visit https://groups.google.com/d/optout.