Building Scala IDE for the first time

54 views
Skip to first unread message

Alex Black

unread,
Nov 8, 2011, 9:37:57 PM11/8/11
to Scala IDE Dev
Hi, I'm trying to build the Scala IDE for the first time, I'm
stumbling around in the dark a bit.

1. I did git clone
2. I installed maven3 (for the first time) from
https://launchpad.net/~natecarlson/+archive/maven3/+packages
3. I ran build-ide-2.9.2-SNAPSHOT (is this the script I want to use?)

It looks like it compiled a lot of stuff successfully, but failed some
tests, any ideas?

[EclipseSbtBuildManager] update files: Set(/home/alex/dev/scala-ide/
org.scala-ide.sdt.core.tests/target/work/data/todobuilder/src/test/foo/
ClassA.scala)
[AnalysisCompile] API store loaded in 001 ms
[AnalysisCompile] Compiling:
/home/alex/dev/scala-ide/org.scala-ide.sdt.core.tests/target/work/
data/todobuilder/src/test/foo/ClassA.scala
[AnalysisCompile] Compilation was successful
tasks: ClassA.scala (not open) [in test.foo [in src [in
todobuilder]]]:
List(org.eclipse.core.internal.resources.Marker@77dec574)
Tests run: 89, Failures: 0, Errors: 3, Skipped: 7, Time elapsed:
50.451 sec <<< FAILURE!
simpleHyperlinks(scala.tools.eclipse.hyperlinks.HyperlinkDetectorTests)
Time elapsed: 1.036 sec <<< ERROR!
java.lang.ExceptionInInitializerError
at
scala.tools.eclipse.hyperlinks.HyperlinkDetectorTests.simpleHyperlinks(HyperlinkDetectorTests.scala:
23)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.junit.runners.model.FrameworkMethod
$1.runReflectiveCall(FrameworkMethod.java:44)
at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:
15)
at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:
41)
at
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:
20)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:
76)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:
50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at org.junit.runners.Suite.runChild(Suite.java:128)
at org.junit.runners.Suite.runChild(Suite.java:24)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at
org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:
62)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:
140)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:
127)
at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
at
org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.run(OsgiSurefireBooter.java:
72)
at
org.eclipse.tycho.surefire.osgibooter.HeadlessTestApplication.run(HeadlessTestApplication.java:
21)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.eclipse.equinox.internal.app.EclipseAppContainer.callMethodWithException(EclipseAppContainer.java:
587)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:
198)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:
110)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:
79)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:
369)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:
179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
at org.eclipse.equinox.launcher.Main.run(Main.java:1408)
at org.eclipse.equinox.launcher.Main.main(Main.java:1384)
Caused by: java.util.ConcurrentModificationException
at java.util.AbstractList
$Itr.checkForComodification(AbstractList.java:372)
at java.util.AbstractList$Itr.next(AbstractList.java:343)
at org.aspectj.weaver.World$TypeMap.demote(World.java:1081)
at org.aspectj.weaver.World$TypeMap.demote(World.java:1059)
at org.aspectj.weaver.World.demote(World.java:1765)
at org.aspectj.weaver.bcel.BcelWeaver.weave(BcelWeaver.java:1794)
at
org.aspectj.weaver.bcel.BcelWeaver.weaveWithoutDump(BcelWeaver.java:
1641)
at org.aspectj.weaver.bcel.BcelWeaver.weaveAndNotify(BcelWeaver.java:
1404)
at org.aspectj.weaver.bcel.BcelWeaver.weave(BcelWeaver.java:1190)
at
org.aspectj.weaver.tools.WeavingAdaptor.getWovenBytes(WeavingAdaptor.java:
469)
at
org.aspectj.weaver.tools.WeavingAdaptor.weaveClass(WeavingAdaptor.java:
320)
at
org.eclipse.equinox.weaving.aspectj.loadtime.OSGiWeavingAdaptor.weaveClass(OSGiWeavingAdaptor.java:
121)
at
org.eclipse.equinox.weaving.aspectj.AspectJWeavingService.preProcess(AspectJWeavingService.java:
151)
at
org.eclipse.equinox.weaving.adaptors.WeavingAdaptor.weaveClass(WeavingAdaptor.java:
245)
at
org.eclipse.equinox.weaving.hooks.WeavingHook.processClass(WeavingHook.java:
126)
at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClass(ClasspathManager.java:
575)
at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(ClasspathManager.java:
550)
at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassImpl(ClasspathManager.java:
481)
at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass_LockClassName(ClasspathManager.java:
460)
at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:
447)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:
216)
at
org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:
393)
at
org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:
469)
at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:
422)
at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:
410)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:
107)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at
org.eclipse.jdt.internal.core.JavaProject.createElementInfo(JavaProject.java:
861)
at
org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:
252)
at org.eclipse.jdt.internal.core.Openable.open(Openable.java:432)
at
scala.tools.eclipse.testsetup.TestProjectSetup.srcPackageRoot(TestProjectSetup.scala:
43)
at
scala.tools.eclipse.testsetup.TestProjectSetup.<init>(TestProjectSetup.scala:
47)
at scala.tools.eclipse.hyperlinks.HyperlinkDetectorTests
$.<init>(HyperlinkDetectorTests.scala:16)
at scala.tools.eclipse.hyperlinks.HyperlinkDetectorTests
$.<clinit>(HyperlinkDetectorTests.scala)
... 49 more

bug1000560(scala.tools.eclipse.hyperlinks.HyperlinkDetectorTests)
Time elapsed: 0.001 sec <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class
scala.tools.eclipse.hyperlinks.HyperlinkDetectorTests$
at
scala.tools.eclipse.hyperlinks.HyperlinkDetectorTests.bug1000560(HyperlinkDetectorTests.scala:
45)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.junit.runners.model.FrameworkMethod
$1.runReflectiveCall(FrameworkMethod.java:44)
at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:
15)
at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:
41)
at
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:
20)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:
76)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:
50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at org.junit.runners.Suite.runChild(Suite.java:128)
at org.junit.runners.Suite.runChild(Suite.java:24)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at
org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:
62)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:
140)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:
127)
at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
at
org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.run(OsgiSurefireBooter.java:
72)
at
org.eclipse.tycho.surefire.osgibooter.HeadlessTestApplication.run(HeadlessTestApplication.java:
21)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.eclipse.equinox.internal.app.EclipseAppContainer.callMethodWithException(EclipseAppContainer.java:
587)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:
198)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:
110)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:
79)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:
369)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:
179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
at org.eclipse.equinox.launcher.Main.run(Main.java:1408)
at org.eclipse.equinox.launcher.Main.main(Main.java:1384)

test1000656(scala.tools.eclipse.hyperlinks.HyperlinkDetectorTests)
Time elapsed: 6.991 sec <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class
scala.tools.eclipse.hyperlinks.HyperlinkDetectorTests$
at
scala.tools.eclipse.hyperlinks.HyperlinkDetectorTests.test1000656(HyperlinkDetectorTests.scala:
79)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.junit.runners.model.FrameworkMethod
$1.runReflectiveCall(FrameworkMethod.java:44)
at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:
15)
at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:
41)
at
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:
20)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:
76)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:
50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at org.junit.runners.Suite.runChild(Suite.java:128)
at org.junit.runners.Suite.runChild(Suite.java:24)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at
org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:
62)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:
140)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:
127)
at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
at
org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.run(OsgiSurefireBooter.java:
72)
at
org.eclipse.tycho.surefire.osgibooter.HeadlessTestApplication.run(HeadlessTestApplication.java:
21)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.eclipse.equinox.internal.app.EclipseAppContainer.callMethodWithException(EclipseAppContainer.java:
587)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:
198)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:
110)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:
79)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:
369)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:
179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
at org.eclipse.equinox.launcher.Main.run(Main.java:1408)
at org.eclipse.equinox.launcher.Main.main(Main.java:1384)


Results :

Tests in error:

simpleHyperlinks(scala.tools.eclipse.hyperlinks.HyperlinkDetectorTests)
bug1000560(scala.tools.eclipse.hyperlinks.HyperlinkDetectorTests)
test1000656(scala.tools.eclipse.hyperlinks.HyperlinkDetectorTests)

Tests run: 89, Failures: 0, Errors: 3, Skipped: 7

Mirko Stocker

unread,
Nov 9, 2011, 3:33:02 AM11/9/11
to scala-...@googlegroups.com
Hi,

On Wed, Nov 9, 2011 at 03:37, Alex Black <al...@alexblack.ca> wrote:
> Hi, I'm trying to build the Scala IDE for the first time, I'm
> stumbling around in the dark a bit.
>
> 1. I did git clone
> 2. I installed maven3 (for the first time) from
> https://launchpad.net/~natecarlson/+archive/maven3/+packages
> 3. I ran build-ide-2.9.2-SNAPSHOT (is this the script I want to use?)
>
> It looks like it compiled a lot of stuff successfully, but failed some
> tests, any ideas?

I don't know why they're failing (at the moment, they work for me),
but if you want to skip the tests you can build with:

./build-ide-2.9.2-SNAPSHOT -Dmaven.test.skip=true

Cheers,
Mirko

--
Mirko Stocker | m...@misto.ch
Work: http://ifs.hsr.ch | http://infoq.com
Personal: http://misto.ch | http://twitter.com/m_st

iulian dragos

unread,
Nov 9, 2011, 8:50:20 AM11/9/11
to scala-...@googlegroups.com
Indeed, it is strange you have failing tests. The nightlies passed:

https://jenkins.scala-ide.org:8496/jenkins/

You may also want to setup the IDE for IDE development :)

https://scala-ide-portfolio.assembla.com/spaces/scala-ide/wiki/IDE_development_inside_Eclipse

Let me know if you see any problems,
iulian

--
« Je déteste la montagne, ça cache le paysage »
Alphonse Allais

Matthew Farwell

unread,
Nov 9, 2011, 9:16:40 AM11/9/11
to scala-...@googlegroups.com
In fact I did a full get & rebuild last night as well, and I had the same problem, see attached files.

I am running Windows 7, jdk 1.6.22, building with 2.9.2-SNAPSHOT.

Matthew Farwell.
scala.tools.eclipse.TestsSuite.txt
TEST-scala.tools.eclipse.TestsSuite.xml
mvn.out

Mirco Dotta

unread,
Nov 9, 2011, 9:30:18 AM11/9/11
to scala-...@googlegroups.com
Yes, the plugin cannot (currently) be build under Windows because of an issue in the tests (return carriage 
encoding...). In the meanwhile, please skip the tests phase as suggested by Mirko (by passing 
-Dmaven.test.skip=true to the build script).

A fix is already in the pipeline, but it has not been merged yet. I'll make sure to write a short comment here 
when it is done, so that you can try again.

-- Mirco

<scala.tools.eclipse.TestsSuite.txt><TEST-scala.tools.eclipse.TestsSuite.xml><mvn.out>

Alex Black

unread,
Nov 9, 2011, 9:32:23 AM11/9/11
to Scala IDE Dev
I tried the same steps I did last night, this time on my work PC, and
the build completed fine. Strange. Both machines run Ubuntu, and are
nearly identical.

On Nov 9, 9:30 am, Mirco Dotta <mirco.do...@typesafe.com> wrote:
> Yes, the plugin cannot (currently) be build under Windows because of an issue in the tests (return carriage
> encoding...). In the meanwhile, please skip the tests phase as suggested by Mirko (by passing
> -Dmaven.test.skip=true to the build script).
>
> A fix is already in the pipeline, but it has not been merged yet. I'll make sure to write a short comment here
> when it is done, so that you can try again.
>
> -- Mirco
>
> On Nov 9, 2011, at 3:16 PM, Matthew Farwell wrote:
>
>
>
>
>
>
>
> > In fact I did a full get & rebuild last night as well, and I had the same problem, see attached files.
>
> > I am running Windows 7, jdk 1.6.22, building with 2.9.2-SNAPSHOT.
>
> > Matthew Farwell.
>
> > Le 9 novembre 2011 14:50, iulian dragos <jagua...@gmail.com> a écrit :
> > Indeed, it is strange you have failing tests. The nightlies passed:
>
> >https://jenkins.scala-ide.org:8496/jenkins/
>
> > You may also want to setup the IDE for IDE development :)
>
> >https://scala-ide-portfolio.assembla.com/spaces/scala-ide/wiki/IDE_de...
>
> > Let me know if you see any problems,
> > iulian
>
> > On Wed, Nov 9, 2011 at 9:33 AM, Mirko Stocker <m...@misto.ch> wrote:
> > > Hi,
>

Alex Black

unread,
Nov 9, 2011, 9:12:36 PM11/9/11
to Scala IDE Dev
I did a "git pull" just now, it pulled changes, it builds fine now,
glad its fixed.

Mirco Dotta

unread,
Nov 10, 2011, 9:01:25 AM11/10/11
to scala-...@googlegroups.com
Matthew, 

now you should be able to compile the plugin under Windows (at least master and release/scala-ide-2.0.x branches).

Cheers,
  Mirco 

On Nov 9, 2011, at 3:16 PM, Matthew Farwell wrote:

<scala.tools.eclipse.TestsSuite.txt><TEST-scala.tools.eclipse.TestsSuite.xml><mvn.out>

Matthew Farwell

unread,
Nov 10, 2011, 11:46:13 AM11/10/11
to scala-...@googlegroups.com
Salut,

Still got errors (see attached files)

Matthew Farwell.
scala.tools.eclipse.TestsSuite.txt
TEST-scala.tools.eclipse.TestsSuite.xml

Mirco Dotta

unread,
Nov 10, 2011, 3:02:34 PM11/10/11
to scala-...@googlegroups.com
Hi Matthew,

are you trying to build master? As it looks like the the "implicit highlighting" tests are failing 
now (when I created the pull request they were not yet there :)). Try with "release/scala-ide-2.0.x"
branch, that one should work. I'll take a look at the tests in master as soon as we have a final 
release for 2.0 out ;)

Thanks for letting me know (we *really* need to have nighties for Windows as well :))

Cheers,
  Mirco

<scala.tools.eclipse.TestsSuite.txt><TEST-scala.tools.eclipse.TestsSuite.xml>

Matthew Farwell

unread,
Nov 11, 2011, 8:52:54 AM11/11/11
to scala-...@googlegroups.com
Yay. release/scala-ide-2.0-x builds under windows.

Cordialement,

Matthew Farwell.

Frode Nerbråten

unread,
Nov 15, 2011, 4:54:46 AM11/15/11
to Scala IDE Dev
I get (26) failing tests when building release/scala-ide-2.0.x under
osx lion. It seems that many of the tests doesn't find the java
runtime during execution:

Several asserts fails with similar message to this:

t1000524_neg_JavaCodeCannotCall_ScalaModuleMethodThatIsDefinedWithTheSameSignatureInTheCompanionClass(scala.tools.eclipse.structurebuilder.StructureBuilderTest)
Time elapsed: 0.338 sec <<< FAILURE!
org.junit.ComparisonFailure: expected:<Pb([201) Cannot make a static
reference to the non-static method getOpt1(Option<T>) from the type
OptTest]> but was:<Pb([324) The type java.lang.Object cannot be
resolved. It is indirectly referenced from required .class files]>
at org.junit.Assert.assertEquals(Assert.java:123)
at org.junit.Assert.assertEquals(Assert.java:145)
at scala.tools.eclipse.structurebuilder.StructureBuilderTest$$anon$5$
$anon$1.acceptProblem(StructureBuilderTest.scala:173)
at org.eclipse.jdt.internal.core.JavaModelManager
$PerWorkingCopyInfo.acceptProblem(JavaModelManager.java:1358)
at
org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:
187)

And several of these:

changeImpactsMultipleProjects(scala.tools.eclipse.classpath.ClasspathTests)
Time elapsed: 1.041 sec <<< ERROR!
java.lang.NullPointerException
at
org.eclipse.jdt.launching.JavaRuntime.getLibraryLocations(JavaRuntime.java:
1632)
at
scala.tools.eclipse.EclipseUserSimulator.createProjectInWorkspace(EclipseUserSimulator.scala:
41)

I haven't been able to figure out how to fix this. It builds and runs
fine if I skip the tests.
Any help would be much appreciated :)

Frode

OsX 10.7.2
maven 3.0.3
java 1.6.0_26 (from Apple)

iulian dragos

unread,
Nov 15, 2011, 5:32:40 AM11/15/11
to scala-...@googlegroups.com


2011/11/15 Frode Nerbråten <fr...@nerbraten.no>

I get (26) failing tests when building release/scala-ide-2.0.x under
osx lion. It seems that many of the tests doesn't find the java
runtime during execution:

Wow. Everyone here uses OS X Lion, so I'm puzzled. How do you run maven? Do you use the runner scripts?

iulian

Frode Nerbråten

unread,
Nov 15, 2011, 5:40:12 AM11/15/11
to Scala IDE Dev


On Nov 15, 11:32 am, iulian dragos <jagua...@gmail.com> wrote:
> 2011/11/15 Frode Nerbråten <fr...@nerbraten.no>
>
> > I get (26) failing tests when building release/scala-ide-2.0.x under
> > osx lion. It seems that many of the tests doesn't find the java
> > runtime during execution:
>
> Wow. Everyone here uses OS X Lion, so I'm puzzled. How do you run maven? Do
> you use the runner scripts?
>

Yes, I used:
build-ide-2.9.2-SNAPSHOT

I suspected this was something only I experienced :)
I use the same maven and java for my work, and I haven't had any
similar issues.

Frode

Mirco Dotta

unread,
Nov 15, 2011, 5:48:24 AM11/15/11
to scala-...@googlegroups.com
As a last resort, you can skip the test phase by appending -Dmaven.test.skip=true to the build script.

I'm definitely puzzled...

-- Mirco

---------------
Mirco Dotta
Typesafe - Enterprise-Grade Scala from the Experts 
PSE-D, 1015 Lausanne, Switzerland
Twitter: @mircodotta








Message has been deleted

iulian dragos

unread,
Nov 15, 2011, 5:55:27 AM11/15/11
to scala-...@googlegroups.com


2011/11/15 Frode Nerbråten <fr...@nerbraten.no>


On Nov 15, 11:32 am, iulian dragos <jagua...@gmail.com> wrote:
> 2011/11/15 Frode Nerbråten <fr...@nerbraten.no>
>
> > I get (26) failing tests when building release/scala-ide-2.0.x under
> > osx lion. It seems that many of the tests doesn't find the java
> > runtime during execution:
>
> Wow. Everyone here uses OS X Lion, so I'm puzzled. How do you run maven? Do
> you use the runner scripts?
>

Yes, I used:
build-ide-2.9.2-SNAPSHOT

I suspected this was something only I experienced :)
I use the same maven and java for my work, and I haven't had any
similar issues.

There's a Mac OS profile that needs to be activated by maven. Maybe it cannot pick up the OS type. Can you try to manually run maven and passing the "Mac OS" profile (have a look at org.scala-ide.sdt.core.tests/pom.xml). It might have something to do with that... 

iulian
 

Frode

Frode Nerbråten

unread,
Nov 15, 2011, 6:01:54 AM11/15/11
to Scala IDE Dev
On Nov 15, 11:48 am, Mirco Dotta <mirco.do...@typesafe.com> wrote:
> As a last resort, you can skip the test phase by appending -Dmaven.test.skip=true to the build script.

Thank you. I have actually tried this and it builds fine (and installs
fine in eclipse).

Frode

Frode Nerbråten

unread,
Nov 15, 2011, 6:48:45 AM11/15/11
to Scala IDE Dev
On Nov 15, 11:55 am, iulian dragos <jagua...@gmail.com> wrote:
>
> There's a Mac OS profile that needs to be activated by maven. Maybe it
> cannot pick up the OS type. Can you try to manually run maven and passing
> the "Mac OS" profile (have a look at org.scala-ide.sdt.core.tests/pom.xml).
> It might have something to do with that...
>

Thank you, I tried the following (from the build directory):
mvn -P"Mac OS" -U -Dscala.version=2.9.2-SNAPSHOT -
Dscala.library.version= -Dgit.hash=7d856bf -Dversion.tag=local clean
install

Unfortunately with the same result. Maybe I should try downloading a
fresh maven install and use it. I will do some more digging later :)

Thank you guys for replying so fast!

Frode

Frode Nerbråten

unread,
Nov 15, 2011, 2:16:38 PM11/15/11
to Scala IDE Dev
I finally got it working!
I tried to reinstall maven and clean out my maven repo dir with no
luck.Then I updated my java (from update 26 to 29) (http://
support.apple.com/kb/DL1421) and my JAVA_HOME. This seems to have done
the trick because now all tests are green :)
Frode

iulian dragos

unread,
Nov 15, 2011, 2:24:51 PM11/15/11
to scala-...@googlegroups.com
Glad it worked out! I didn't think we were so dependent on the JDK version. Maybe Tycho is...

iulian

2011/11/15 Frode Nerbråten <fr...@nerbraten.no>
Message has been deleted

Frode Nerbråten

unread,
Nov 15, 2011, 3:45:08 PM11/15/11
to Scala IDE Dev
On Nov 15, 8:24 pm, iulian dragos <jagua...@gmail.com> wrote:
> Glad it worked out! I didn't think we were so dependent on the JDK version.
> Maybe Tycho is...

It might been something with my java environment. I changed my
JAVA_HOME from:
/Library/Java/JavaVirtualMachines/1.6.0_26-b03-383.jdk/Contents/Home
back to
/Library/Java/Home
after the upgrade. I think the update changed some of the java paths
on my system since /Library/Java/Home was not working after the
upgrade to Lion, but it is now.

Could it be that some part of the build assumed a path to the JRE
instead of using JAVA_HOME?

Frode
Reply all
Reply to author
Forward
0 new messages