On Tue, Oct 16, 2012 at 6:47 PM, Michael Slinn <msl...@gmail.com> wrote:
> I have documented my attempt to get the Scala IDE worksheet to work with
> Scala 2.10 on Juno
The yellow paragraph is confusing, and probably incorrect. You talk about
workspaces, but then you say the plugin does not support this, and it
leaves things installed in there. Plugins don't install inside the
workspace, but the *configuration area*. The only thing that is stored in
the workspace metadata is settings, but AFAIK that's not deleted when you
uninstall any plugin. You may find this section useful:
http://scala-ide.org/docs/tutorials/scalac-trunk/index.html#separatin... .
Scala 2.10.0-M7 is binary incompatible with the 2.10.0 nightly version, so
if you want to use the nightly build of the worksheet, you need to install
the nightly build of the IDE for 2.10.0 nightly (update site:
http://download.scala-ide.org/nightly-update-juno-master-2.10.x)
cheers,
iulian
> Mike
-- « Je déteste la montagne, ça cache le paysage »
Alphonse Allais
On Wed, Oct 17, 2012 at 11:10 PM, Michael Slinn <msl...@gmail.com> wrote:
> Iulian,
> Thanks for the information. I will follow your suggestions, update and
> correct the posting.
Great, let us know if you encounter any difficulties. We'll have a new
worksheet release very soon, so hopefully these things will be simpler for
Juno as well.
iulian
> Best,
> Mike
-- « Je déteste la montagne, ça cache le paysage »
Alphonse Allais
Eclipse hangs when I try to create a worksheet, right after I click Finish. Anyone have a workaround?
Does it always happens? If yes, then I think something is misconfigured. Please, have a look at the log: http://scala-ide.org/docs/helium/features/logging.html When the hang occurs, you should use jps & jstack and provide a thread dump so that we can investigate (scala-ide.org/docs/user/faq.html#faq-known-issues#Eclipse_freezes__deadloc k_). You should also keep in mind that Eclipse is not bugfree, so without more information it's hard to say who's to blame...
-- Mirco
On Oct 17, 2012, at 11:10 PM, Michael Slinn wrote:
> Iulian,
> Thanks for the information. I will follow your suggestions, update and correct the posting.
> Best,
> Mike
---------------
Mirco Dotta
Typesafe - The software stack for applications that scale
PSE-D, 1015 Lausanne, Switzerland
Work: +41 (0)21 691 49 65
Twitter: @mircodotta
Cannot complete the install because one or more required items could not be found. Software being installed: Scala IDE for Eclipse 2.1.0.nightly-2_10-201210170449-fb08783 (org.scala-ide.sdt.feature.feature.group 2.1.0.nightly-2_10-201210170449-fb08783) Missing requirement: Scala IDE for Eclipse 2.1.0.nightly-2_10-201210170449-fb08783 (org.scala-ide.sdt.feature.feature.group 2.1.0.nightly-2_10-201210170449-fb08783) requires 'org.eclipse.sdk 0.0.0' but it could not be found
I reinstalled from scratch and find that a new project works fine - hooray! However, the slick-examples that were built with 2.10-RC1 do not.
Description Resource Path Location Type while compiling: E:\work\experiments\scala\slick-presentation\src\main\scala\SlickPresentati on.scala during phase: erasure library version: version 2.10.0-RC1 compiler version: version 2.10.0-RC1 reconstructed args: -Xpluginsdir C:\Program Files\eclipse\eclipse-jee-juno-win32-x86_64\configuration\org.eclipse.osgi\ bundles\1187\1\.cp\lib -bootclasspath C:\Program Files\Java\jdk1.7.0_07\jre\lib\resources.jar;C:\Program Files\Java\jdk1.7.0_07\jre\lib\rt.jar;C:\Program Files\Java\jdk1.7.0_07\jre\lib\sunrsasign.jar;C:\Program Files\Java\jdk1.7.0_07\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.7.0_07\jre\lib\jce.jar;C:\Program Files\Java\jdk1.7.0_07\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.7.0_07\jre\lib\jfr.jar;C:\Program Files\Java\jdk1.7.0_07\jre\classes;C:\Program Files\eclipse\eclipse-jee-juno-win32-x86_64\configuration\org.eclipse.osgi\ bundles\1188\1\.cp\lib\scala-library.jar -classpath C:\Program Files\Java\jdk1.7.0_07\jre\lib\resources.jar;C:\Program Files\Java\jdk1.7.0_07\jre\lib\rt.jar;C:\Program Files\Java\jdk1.7.0_07\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.7.0_07\jre\lib\jce.jar;C:\Program Files\Java\jdk1.7.0_07\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.7.0_07\jre\lib\jfr.jar;C:\Program Files\Java\jdk1.7.0_07\jre\lib\ext\access-bridge-64.jar;C:\Program Files\Java\jdk1.7.0_07\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.7.0_07\jre\lib\ext\jaccess.jar;C:\Program Files\Java\jdk1.7.0_07\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.7.0_07\jre\lib\ext\sunec.jar;C:\Program Files\Java\jdk1.7.0_07\jre\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jdk1.7.0_07\jre\lib\ext\sunmscapi.jar;C:\Program Files\Java\jdk1.7.0_07\jre\lib\ext\zipfs.jar;E:\work\experiments\scala\slic k-presentation\target\scala-2.10\classes;E:\work\experiments\scala\slick-pr esentation\target\scala-2.10\test-classes;C:\Program Files\eclipse\eclipse-jee-juno-win32-x86_64\configuration\org.eclipse.osgi\ bundles\1188\1\.cp\lib\scala-swing.jar;C:\Program Files\eclipse\eclipse-jee-juno-win32-x86_64\configuration\org.eclipse.osgi\ bundles\1188\1\.cp\lib\scala-actors.jar;C:\Program Files\eclipse\eclipse-jee-juno-win32-x86_64\configuration\org.eclipse.osgi\ bundles\1187\1\.cp\lib\scala-reflect.jar;C:\Users\Mike Slinn\.ivy2\cache\com.typesafe\slick_2.10.0-M7\jars\slick_2.10.0-M7-0.11.1. jar;C:\Users\Mike Slinn\.ivy2\cache\org.slf4j\slf4j-api\jars\slf4j-api-1.6.4.jar;C:\Program Files\eclipse\eclipse-jee-juno-win32-x86_64\configuration\org.eclipse.osgi\ bundles\1187\1\.cp\lib\scala-compiler.jar;C:\Users\Mike Slinn\.ivy2\cache\org.scala-lang\scala-reflect\jars\scala-reflect-2.10.0-M7 .jar;C:\Users\Mike Slinn\.ivy2\cache\org.slf4j\slf4j-nop\jars\slf4j-nop-1.6.4.jar;C:\Users\Mik e Slinn\.ivy2\cache\com.h2database\h2\jars\h2-1.3.166.jar;C:\Users\Mike Slinn\.ivy2\cache\org.xerial\sqlite-jdbc\jars\sqlite-jdbc-3.6.20.jar last tree to typer: This(anonymous class $anonfun) symbol: anonymous class $anonfun (flags: final <synthetic>) symbol definition: final class $anonfun extends AbstractFunction1[SlickPresentation.Task,String] with Serializable tpe: SlickPresentation.$anonfun.$anonfun.$anonfun.type symbol owners: anonymous class $anonfun -> method apply -> anonymous class $anonfun -> value results -> method apply$mcV$sp -> anonymous class $anonfun -> value <local SlickPresentation> -> object SlickPresentation -> package <empty> context owners: value p -> method apply -> anonymous class $anonfun -> method above -> object Persons -> object SlickPresentation -> package <empty> == Enclosing template or block == DefDef( // final def apply(x$1: SlickPresentation.Persons.type): scala.slick.lifted.Column[Boolean] <method> final "apply" [] // 1 parameter list ValDef( // p: SlickPresentation.Persons.type <param> <triedcooking> "p" <tpt> // tree.tpe=SlickPresentation.Persons.type <empty> ) <tpt> // tree.tpe=slick.lifted.Column Apply( // def >[P2, R](e: scala.slick.lifted.Column[P2],implicit om: scala.slick.lifted.OptionMapper2[B1,B1,Boolean,P1,P2,R]): scala.slick.lifted.Column[R] in class ColumnExtensionMethods, tree.tpe=scala.slick.lifted.Column[Boolean] TypeApply( // def >[P2, R](e: scala.slick.lifted.Column[P2],implicit om: scala.slick.lifted.OptionMapper2[B1,B1,Boolean,P1,P2,R]): scala.slick.lifted.Column[R] in class ColumnExtensionMethods, tree.tpe=(e: scala.slick.lifted.Column[Int], implicit om: scala.slick.lifted.OptionMapper2[Int,Int,Boolean,Int,Int,Boolean])scala.sli ck.lifted.Column[Boolean] scala.slick.driver.H2Driver.simple().columnExtensionMethods[Int](p.age(), lifted.this.TypeMapper.IntTypeMapper)."$greater" // def >[P2, R](e: scala.slick.lifted.Column[P2],implicit om: scala.slick.lifted.OptionMapper2[B1,B1,Boolean,P1,P2,R]): scala.slick.lifted.Column[R] in class ColumnExtensionMethods, tree.tpe=[P2, R](e: scala.slick.lifted.Column[P2], implicit om: scala.slick.lifted.OptionMapper2[Int,Int,Boolean,Int,P2,R])scala.slick.lift ed.Column[R] // 2 type arguments <tpt> // tree.tpe=Int <tpt> // tree.tpe=Boolean ) // 2 arguments Apply( // implicit def valueToConstColumn[T](v: T,implicit evidence$2: scala.slick.lifted.TypeMapper[T]): scala.slick.lifted.ConstColumn[T] in class Implicits, tree.tpe=scala.slick.lifted.ConstColumn[Int] TypeApply( // implicit def valueToConstColumn[T](v: T,implicit evidence$2: scala.slick.lifted.TypeMapper[T]): scala.slick.lifted.ConstColumn[T] in class Implicits, tree.tpe=(v: Int, implicit evidence$2: scala.slick.lifted.TypeMapper[Int])scala.slick.lifted.ConstColumn[Int] scala.slick.driver.H2Driver.simple()."valueToConstColumn" // implicit def valueToConstColumn[T](v: T,implicit evidence$2: scala.slick.lifted.TypeMapper[T]): scala.slick.lifted.ConstColumn[T] in class Implicits, tree.tpe=[T](v: T, implicit evidence$2: scala.slick.lifted.TypeMapper[T])scala.slick.lifted.ConstColumn[T] <tpt> // tree.tpe=Int ) // 2 arguments "age" // age: Int, tree.tpe=Int lifted.this."TypeMapper"."IntTypeMapper" // implicit object IntTypeMapper in object TypeMapper, tree.tpe=scala.slick.lifted.TypeMapper.IntTypeMapper.type ) Apply( // implicit def getOptionMapper2TT[B1, B2, BR](evidence$1: scala.slick.lifted.BaseTypeMapper[B2]): scala.slick.lifted.OptionMapper2[B1,B2,BR,B1,B2,BR] in object OptionMapper2, tree.tpe=scala.slick.lifted.OptionMapper2[Int,Int,Boolean,Int,Int,Boolean] TypeApply( // implicit def getOptionMapper2TT[B1, B2, BR](evidence$1: scala.slick.lifted.BaseTypeMapper[B2]): scala.slick.lifted.OptionMapper2[B1,B2,BR,B1,B2,BR] in object OptionMapper2, tree.tpe=(evidence$1: scala.slick.lifted.BaseTypeMapper[Int])scala.slick.lifted.OptionMapper2[Int ,Int,Boolean,Int,Int,Boolean] lifted.this."OptionMapper2"."getOptionMapper2TT" // implicit def getOptionMapper2TT[B1, B2, BR](evidence$1: scala.slick.lifted.BaseTypeMapper[B2]): scala.slick.lifted.OptionMapper2[B1,B2,BR,B1,B2,BR] in object OptionMapper2, tree.tpe=[B1, B2, BR](evidence$1: scala.slick.lifted.BaseTypeMapper[B2])scala.slick.lifted.OptionMapper2[B1,B 2,BR,B1,B2,BR] // 3 type arguments <tpt> // tree.tpe=Int <tpt> // tree.tpe=Int <tpt> // tree.tpe=Boolean ) lifted.this."TypeMapper"."IntTypeMapper" // implicit object IntTypeMapper in object TypeMapper, tree.tpe=scala.slick.lifted.TypeMapper.IntTypeMapper.type ) ) ) == Expanded type of tree == ThisType(anonymous class $anonfun) uncaught exception during compilation: java.lang.AssertionError slick-examples Unknown Scala Problem
RC1 is later than M2 so this is not surprising.
I would like to use RC1 instead of M2. Should this be possible? Are there any errors in my instructions? What update site should I use to fetch the RC1 build of EclipseIDE and worksheet?
Verify that you are using the latest version of Slick. It had some problems with 2.10-RC1 that was fixed earlier today. You can even do a git clone of slick and then use the sbt command publish-local to get the latest copy compiled locally.
Then make sure you are pointing to the correct version. A build.sbt like this should work fine (Notice it's using the snapshot version of slick):