How to execute a single test?

259 views
Skip to first unread message

sschaef

unread,
Jul 24, 2012, 9:31:00 AM7/24/12
to scala-...@googlegroups.com
Is it possible to execute only a single test with Maven?

An easy 'mvn -Dtest=AnnotationTest test' for example doesn't execute
anything (neither throws an error).

Inside of eclipse I have no problem in executing single tests, but I
also want to do it with Maven.

Matthew Farwell

unread,
Jul 24, 2012, 9:56:14 AM7/24/12
to scala-...@googlegroups.com
Salut,

sschaef

unread,
Jul 24, 2012, 1:21:04 PM7/24/12
to scala-...@googlegroups.com
That is what I already did, but no tests are executed:

antoras@myhost ...scala-ide/org.scala-ide.sdt.core.tests (git)-[master] % mvn -P scala-2.10.x -Dtest=AnnotationTest test
[INFO] Scanning for projects...
[WARNING] No explicit target runtime environment configuration. Build is platform dependent.
[INFO] Computing target platform for MavenProject: org.scala-ide:org.scala-ide.sdt.core.tests:2.1.0-SNAPSHOT @ /home/antoras/dev/Scala/scala-ide/org.scala-ide.sdt.core.tests/pom.xml
[INFO] Fetching p2.index (0B of 96B at 0B/s) from http://download.eclipse.org/releases/indigo/
[INFO] Fetching p2.index (128B of 96B at 0B/s) from http://download.eclipse.org/releases/indigo/
[INFO] Adding repository http://download.eclipse.org/releases/indigo/
[INFO] Fetching p2.index (0B of 98B at 0B/s) from http://download.eclipse.org/technology/epp/packages/indigo/
[INFO] Fetching p2.index (131B of 98B at 0B/s) from http://download.eclipse.org/technology/epp/packages/indigo/
[INFO] Fetching p2.index (0B of 93B at 0B/s) from http://download.eclipse.org/releases/indigo/201202240900/
[INFO] Fetching p2.index (119B of 93B at 0B/s) from http://download.eclipse.org/releases/indigo/201202240900/
[INFO] 1 operation remaining.
[INFO] Fetching p2.index (0B of 93B at 0B/s) from http://download.eclipse.org/releases/indigo/201109230900/
[INFO] Fetching p2.index (119B of 93B at 0B/s) from http://download.eclipse.org/releases/indigo/201109230900/
[INFO] 1 operation remaining.
[INFO] Fetching p2.index (0B of 93B at 0B/s) from http://download.eclipse.org/releases/indigo/201106220900/
[INFO] 1 operation remaining.
[INFO] Fetching p2.index (119B of 93B at 0B/s) from http://download.eclipse.org/releases/indigo/201106220900/
[INFO] Fetching p2.index (0B of 96B at 0B/s) from http://download.eclipse.org/releases/indigo/
[INFO] 1 operation remaining.
[INFO] Fetching p2.index (128B of 96B at 0B/s) from http://download.eclipse.org/releases/indigo/
[INFO] Adding repository http://download.eclipse.org/releases/indigo/
[INFO] Fetching p2.index (0B of 98B at 0B/s) from http://download.eclipse.org/technology/epp/packages/indigo/
[INFO] Fetching p2.index (131B of 98B at 0B/s) from http://download.eclipse.org/technology/epp/packages/indigo/
[INFO] 1 operation remaining.
[INFO] Fetching p2.index (0B of 93B at 0B/s) from http://download.eclipse.org/releases/indigo/201202240900/
[INFO] Fetching p2.index (119B of 93B at 0B/s) from http://download.eclipse.org/releases/indigo/201202240900/
[INFO] 1 operation remaining.
[INFO] Fetching p2.index (0B of 93B at 0B/s) from http://download.eclipse.org/releases/indigo/201109230900/
[INFO] Fetching p2.index (119B of 93B at 0B/s) from http://download.eclipse.org/releases/indigo/201109230900/
[INFO] Fetching p2.index (0B of 93B at 0B/s) from http://download.eclipse.org/releases/indigo/201106220900/
[INFO] Fetching p2.index (119B of 93B at 0B/s) from http://download.eclipse.org/releases/indigo/201106220900/
[INFO] Adding repository http://download.eclipse.org/tools/ajdt/37/dev/update
[INFO] Adding repository http://download.eclipse.org/tools/ajdt/37/dev/update
[INFO] Adding repository http://download.scala-ide.org/scala-refactoring-trunk
[INFO] Adding repository http://download.scala-ide.org/scala-refactoring-trunk
[INFO] Adding repository http://download.scala-ide.org/scalariform-trunk
[INFO] Adding repository http://download.scala-ide.org/scalariform-trunk
[INFO] Resolving dependencies of MavenProject: org.scala-ide:org.scala-ide.sdt.core.tests:2.1.0-SNAPSHOT @ /home/antoras/dev/Scala/scala-ide/org.scala-ide.sdt.core.tests/pom.xml
[WARNING] The following locally built units have been used to resolve project dependencies:
[WARNING]   org.scala-ide.sdt.core/2.1.0.local-2_10-201207231821-dc19e23
[WARNING]   org.scala-ide.sdt.aspects/2.1.0.local-2_10-201207231821-dc19e23
[INFO] Resolving class path of MavenProject: org.scala-ide:org.scala-ide.sdt.core.tests:2.1.0-SNAPSHOT @ /home/antoras/dev/Scala/scala-ide/org.scala-ide.sdt.core.tests/pom.xml
[INFO]                                                                        
[INFO] ------------------------------------------------------------------------
[INFO] Building org.scala-ide.sdt.core.tests 2.1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- tycho-packaging-plugin:0.15.0:build-qualifier (default-build-qualifier) @ org.scala-ide.sdt.core.tests ---
[INFO]
[INFO] --- tycho-packaging-plugin:0.15.0:validate-id (default-validate-id) @ org.scala-ide.sdt.core.tests ---
[INFO]
[INFO] --- tycho-packaging-plugin:0.15.0:validate-version (default-validate-version) @ org.scala-ide.sdt.core.tests ---
[INFO]
[INFO] --- buildnumber-maven-plugin:1.1:create (default) @ org.scala-ide.sdt.core.tests ---
[INFO] Checking for local modifications: skipped.
[INFO] Updating project files from SCM: skipped.
[INFO] ShortRevision tag detected. The value is '7'.
[INFO] Executing: /bin/sh -c cd /home/antoras/dev/Scala/scala-ide/org.scala-ide.sdt.core.tests && git rev-parse --verify --short=7 HEAD
[INFO] Working directory: /home/antoras/dev/Scala/scala-ide/org.scala-ide.sdt.core.tests
[INFO] Storing buildNumber: dc19e23 at timestamp: 1343150252238
[INFO] ShortRevision tag detected. The value is '7'.
[INFO] Executing: /bin/sh -c cd /home/antoras/dev/Scala/scala-ide/org.scala-ide.sdt.core.tests && git rev-parse --verify --short=7 HEAD
[INFO] Working directory: /home/antoras/dev/Scala/scala-ide/org.scala-ide.sdt.core.tests
[INFO] Storing buildScmBranch: UNKNOWN
[INFO]
[INFO] --- maven-dependency-plugin:2.1:copy (copy) @ org.scala-ide.sdt.core.tests ---
[INFO] Configured Artifact: org.mockito:mockito-all:?:jar
[INFO] org.mockito:mockito-all:1.9.0:jar already exists in /home/antoras/dev/Scala/scala-ide/org.scala-ide.sdt.core.tests/target/lib
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ org.scala-ide.sdt.core.tests ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/antoras/dev/Scala/scala-ide/org.scala-ide.sdt.core.tests/src/main/resources
[INFO]
[INFO] --- scala-maven-plugin:3.0.2:compile (default) @ org.scala-ide.sdt.core.tests ---
[INFO] Checking for multiple versions of scala
[INFO] includes = [**/*.scala,**/*.java,]
[INFO] excludes = []
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- tycho-compiler-plugin:0.15.0:compile (default-compile) @ org.scala-ide.sdt.core.tests ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:testResources (default-testResources) @ org.scala-ide.sdt.core.tests ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/antoras/dev/Scala/scala-ide/org.scala-ide.sdt.core.tests/src/test/resources
[INFO]
[INFO] --- tycho-compiler-plugin:0.15.0:testCompile (default-testCompile) @ org.scala-ide.sdt.core.tests ---
[INFO] Nothing to compile - all classes are up to date
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 30.524s
[INFO] Finished at: Tue Jul 24 19:17:34 CEST 2012
[INFO] Final Memory: 70M/266M
[INFO] ------------------------------------------------------------------------

Luc Bourlier

unread,
Jul 24, 2012, 3:00:31 PM7/24/12
to scala-...@googlegroups.com
I haven't tried the "-Dtest", but I know that tycho run the tests after the package phase because it needs the plugin jars. So you should try with 'mvn ... install'.

Luc

sschaef

unread,
Jul 24, 2012, 6:51:14 PM7/24/12
to scala-...@googlegroups.com
This doesn't work neither. There seem to be some binary
incomtatibilities after typing "mvn -P scala-2.10.x
-Dtest=AnnotationTest install". How to solve them?


!SESSION 2012-07-25 00:47:44.506
-----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_24
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Framework arguments: -application
org.eclipse.tycho.surefire.osgibooter.headlesstest -testproperties
/home/antoras/dev/Scala/scala-ide/org.scala-ide.sdt.core.tests/target/surefire.properties
Command-line arguments: -data
/home/antoras/dev/Scala/scala-ide/org.scala-ide.sdt.core.tests/target/work/data
-dev
file:/home/antoras/dev/Scala/scala-ide/org.scala-ide.sdt.core.tests/target/dev.properties
-application org.eclipse.tycho.surefire.osgibooter.headlesstest
-testproperties
/home/antoras/dev/Scala/scala-ide/org.scala-ide.sdt.core.tests/target/surefire.properties

!ENTRY org.scala-ide.sdt.core 4 0 2012-07-25 00:47:50.750
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: The activator
scala.tools.eclipse.ScalaPlugin for bundle org.scala-ide.sdt.core is
invalid
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:171)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:679)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
at
org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:438)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:1)
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at
org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
Caused by: java.lang.NoClassDefFoundError: scala/Tuple2$mcLI$sp
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2406)
at java.lang.Class.getConstructor0(Class.java:2716)
at java.lang.Class.newInstance0(Class.java:343)
at java.lang.Class.newInstance(Class.java:325)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:166)
... 12 more
Caused by: java.lang.ClassNotFoundException: scala.Tuple2$mcLI$sp
at
org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:513)
at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)
at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
... 18 more
Root exception:
java.lang.NoClassDefFoundError: scala/Tuple2$mcLI$sp
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2406)
at java.lang.Class.getConstructor0(Class.java:2716)
at java.lang.Class.newInstance0(Class.java:343)
at java.lang.Class.newInstance(Class.java:325)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:166)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:679)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
at
org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:438)
at
org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:1)
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at
org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
Caused by: java.lang.ClassNotFoundException: scala.Tuple2$mcLI$sp
at
org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:513)
at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)
at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
... 18 more

!ENTRY org.eclipse.osgi 4 0 2012-07-25 00:47:51.030
!MESSAGE Application error
!STACK 1
org.osgi.framework.BundleException: The activator
scala.tools.eclipse.ScalaPlugin for bundle org.scala-ide.sdt.core is
invalid
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:171)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:679)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:299)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:291)
at
org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.getBundleClassLoader(OsgiSurefireBooter.java:144)
at
org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.run(OsgiSurefireBooter.java:65)
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:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
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:344)
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:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
Caused by: java.lang.NoClassDefFoundError: scala/Tuple2$mcLI$sp
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2406)
at java.lang.Class.getConstructor0(Class.java:2716)
at java.lang.Class.newInstance0(Class.java:343)
at java.lang.Class.newInstance(Class.java:325)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:166)
... 25 more
Caused by: java.lang.ClassNotFoundException: scala.Tuple2$mcLI$sp
at
org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:513)
at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)
at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
... 31 more
Root exception:
java.lang.NoClassDefFoundError: scala/Tuple2$mcLI$sp
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2406)
at java.lang.Class.getConstructor0(Class.java:2716)
at java.lang.Class.newInstance0(Class.java:343)
at java.lang.Class.newInstance(Class.java:325)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:166)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:679)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:299)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:291)
at
org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.getBundleClassLoader(OsgiSurefireBooter.java:144)
at
org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.run(OsgiSurefireBooter.java:65)
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:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
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:344)
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:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
Caused by: java.lang.ClassNotFoundException: scala.Tuple2$mcLI$sp
at
org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:513)
at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)
at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
... 31 more
> <http://download.eclipse.org/technology/epp/packages/indigo/>
> [INFO] 1 operation remaining.
> [INFO] Fetching p2.index (0B of 93B at 0B/s) from
> http://download.eclipse.org/releases/indigo/201202240900/
> 2012/7/24 sschaef <ma...@antoras.de <mailto:ma...@antoras.de>>

Luc Bourlier

unread,
Jul 25, 2012, 1:12:34 AM7/25/12
to scala-...@googlegroups.com
I'm not quite sure where you are starting from, so here is the script used to run the memory test every night. The test name is set in the 'memory-test' profile in org.scala-ide.sdt.core.test/pom.xml.
You should start from that, and then remove everything you don't need.

cd scala-ide

mvn -Dmaven.repo.local=${LOCAL_REPO} -Dversion.tag=checkin -P scala-2.10.x clean install

cd org.scala-ide.build-toolchain
mvn -Dmaven.repo.local=${LOCAL_REPO} -Dversion.tag=checkin -P scala-2.10.x clean install

cd ../org.scala-ide.sdt.build
mvn --projects ../org.scala-ide.sdt.aspects,../org.scala-ide.sdt.core,../org.scala-ide.sdt.core.tests -P scala-2.10.x,memory-test -Dmaven.repo.local=${LOCAL_REPO} -Dversion.tag=nightly clean integration-test

HTH,
Luc

sschaef

unread,
Jul 26, 2012, 5:03:14 PM7/26/12
to scala-...@googlegroups.com
Should I be able to execute this script locally on my machine? Because
I get errors while executing the last command:

Caused by:
org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException:
Missing:
----------
1) org.scala-ide:org.scala-ide.scala.compiler:jar:2.1.0-SNAPSHOT

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=org.scala-ide
-DartifactId=org.scala-ide.scala.compiler -Dversion=2.1.0-SNAPSHOT
-Dpackaging=jar -Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the
file there:
mvn deploy:deploy-file -DgroupId=org.scala-ide
-DartifactId=org.scala-ide.scala.compiler -Dversion=2.1.0-SNAPSHOT
-Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

Path to dependency:
1) org.scala-ide:org.scala-ide.sdt.core:pom:2.1.0-SNAPSHOT
2) org.scala-ide:org.scala-ide.scala.compiler:jar:2.1.0-SNAPSHOT

2) org.scala-ide:org.scala-ide.scala.library:jar:2.1.0-SNAPSHOT
[...]
3) org.scala-ide:org.scala-ide.sbt.full.library:jar:2.1.0-SNAPSHOT
[...]

Why does it search for 2.1.0-SNAPSHOT?
> <mailto:ma...@antoras.de> <mailto:ma...@antoras.de

iulian dragos

unread,
Jul 27, 2012, 9:34:41 AM7/27/12
to scala-...@googlegroups.com
On Thu, Jul 26, 2012 at 11:03 PM, sschaef <ma...@antoras.de> wrote:
Should I be able to execute this script locally on my machine? Because I get errors while executing the last command:

The missing artifacts would be built if you ran `build-all.sh`. It is explained here: http://scala-ide.org/docs/dev/building/building.html (section `The build in detail`).

Once you've managed a full build, your .m2 directory should contain the scala.compiler artifacts and then you can build any sub-set of the projects.

hth,
iulian



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

sschaef

unread,
Jul 27, 2012, 11:56:00 AM7/27/12
to scala-...@googlegroups.com
Ok, now I have broken something. While executing the `build-all.sh`
script (as `./build-all.sh clean install -P scala-2.10.x`), I get
errors in the test phase. The interesting thing is when I execute the
tests inside of eclipse I get no errors. How can that be?

I did a complete build all inside of eclipse, refreshed the workspace,
restarted the IDE but it still works fine in eclipse.

The errors are:


findReferencesInConstructorSuperCall(scala.tools.eclipse.findreferences.FindReferencesTests):
Don't know how to convert element `layout` of type `class
org.eclipse.jdt.internal.core.ResolvedBinaryMethod`

findReferencesInClassFields(scala.tools.eclipse.findreferences.FindReferencesTests):
Don't know how to convert element `layout` of type `class
org.eclipse.jdt.internal.core.ResolvedBinaryMethod`

I didn't change anything in these methods. What is going on there?

On Fri 27 Jul 2012 03:34:41 PM CEST, iulian dragos wrote:
>
>
> On Thu, Jul 26, 2012 at 11:03 PM, sschaef <ma...@antoras.de
> <mailto:ma...@antoras.de>> wrote:
>
> Should I be able to execute this script locally on my machine?
> Because I get errors while executing the last command:
>
>
> The missing artifacts would be built if you ran `build-all.sh`. It is
> explained here: http://scala-ide.org/docs/dev/building/building.html
> (section `The build in detail`).
>
> Once you've managed a full build, your .m2 directory should contain
> the scala.compiler artifacts and then you can build any sub-set of the
> projects.
>
> hth,
> iulian
>
>
> Caused by:
> org.apache.maven.artifact.__resolver.__MultipleArtifactsNotFoundExcep__tion:
> Missing:
> ----------
> 1) org.scala-ide:org.scala-ide.__scala.compiler:jar:2.1.0-__SNAPSHOT
>
> Try downloading the file manually from the project website.
>
> Then, install it using the command:
> mvn install:install-file -DgroupId=org.scala-ide
> -DartifactId=org.scala-ide.__scala.compiler
> -Dversion=2.1.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
>
> Alternatively, if you host your own repository you can deploy the
> file there:
> mvn deploy:deploy-file -DgroupId=org.scala-ide
> -DartifactId=org.scala-ide.__scala.compiler
> -Dversion=2.1.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
> -Durl=[url] -DrepositoryId=[id]
>
> Path to dependency:
> 1) org.scala-ide:org.scala-ide.__sdt.core:pom:2.1.0-SNAPSHOT
> 2)
> org.scala-ide:org.scala-ide.__scala.compiler:jar:2.1.0-__SNAPSHOT
>
> 2) org.scala-ide:org.scala-ide.__scala.library:jar:2.1.0-__SNAPSHOT
> [...]
> 3) org.scala-ide:org.scala-ide.__sbt.full.library:jar:2.1.0-__SNAPSHOT
> [...]
>
> Why does it search for 2.1.0-SNAPSHOT?
>
>
> On Wed 25 Jul 2012 07:12:34 AM CEST, Luc Bourlier wrote:
>
> I'm not quite sure where you are starting from, so here is the
> script
> used to run the memory test every night. The test name is set
> in the
> 'memory-test' profile in org.scala-ide.sdt.core.test/__pom.xml.
> You should start from that, and then remove everything you
> don't need.
>
> cd scala-ide
>
> mvn -Dmaven.repo.local=${LOCAL___REPO} -Dversion.tag=checkin -P
> scala-2.10.x clean install
>
> cd org.scala-ide.build-toolchain
> mvn -Dmaven.repo.local=${LOCAL___REPO} -Dversion.tag=checkin -P
> scala-2.10.x clean install
>
> cd ../org.scala-ide.sdt.build
> mvn --projects
> ../org.scala-ide.sdt.aspects,.__./org.scala-ide.sdt.core,../__org.scala-ide.sdt.core.tests
> -P scala-2.10.x,memory-test -Dmaven.repo.local=${LOCAL___REPO}
> -Dversion.tag=nightly clean integration-test
>
> HTH,
> Luc
>
> On Wednesday, July 25, 2012 12:51:14 AM UTC+2, sschaef wrote:
>
> This doesn't work neither. There seem to be some binary
> incomtatibilities after typing "mvn -P scala-2.10.x
> -Dtest=AnnotationTest install". How to solve them?
>
>
> !SESSION 2012-07-25 00:47:44.506
> ------------------------------__-----------------
> eclipse.buildId=unknown
> java.version=1.6.0_24
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
> Framework arguments: -application
> org.eclipse.tycho.surefire.__osgibooter.headlesstest
> -testproperties
>
> /home/antoras/dev/Scala/scala-__ide/org.scala-ide.sdt.core.__tests/target/surefire.__properties
>
> Command-line arguments: -data
>
> /home/antoras/dev/Scala/scala-__ide/org.scala-ide.sdt.core.__tests/target/work/data
>
> -dev
>
> file:/home/antoras/dev/Scala/__scala-ide/org.scala-ide.sdt.__core.tests/target/dev.__properties
>
> -application
> org.eclipse.tycho.surefire.__osgibooter.headlesstest
> -testproperties
>
> /home/antoras/dev/Scala/scala-__ide/org.scala-ide.sdt.core.__tests/target/surefire.__properties
>
>
> !ENTRY org.scala-ide.sdt.core 4 0 2012-07-25 00:47:50.750
> !MESSAGE FrameworkEvent ERROR
> !STACK 0
> org.osgi.framework.__BundleException: The activator
> scala.tools.eclipse.__ScalaPlugin for bundle
> org.scala-ide.sdt.core is
> invalid
> at
>
> org.eclipse.osgi.framework.__internal.core.AbstractBundle.__loadBundleActivator(__AbstractBundle.java:171)
>
> at
>
> org.eclipse.osgi.framework.__internal.core.__BundleContextImpl.start(__BundleContextImpl.java:679)
>
> at
>
> org.eclipse.osgi.framework.__internal.core.BundleHost.__startWorker(BundleHost.java:__381)
>
> at
>
> org.eclipse.osgi.framework.__internal.core.AbstractBundle.__resume(AbstractBundle.java:__389)
>
> at
>
> org.eclipse.osgi.framework.__internal.core.Framework.__resumeBundle(Framework.java:__1131)
>
> at
>
> org.eclipse.osgi.framework.__internal.core.__StartLevelManager.__resumeBundles(__StartLevelManager.java:559)
>
> at
>
> org.eclipse.osgi.framework.__internal.core.__StartLevelManager.__resumeBundles(__StartLevelManager.java:544)
>
> at
>
> org.eclipse.osgi.framework.__internal.core.__StartLevelManager.incFWSL(__StartLevelManager.java:457)
>
> at
>
> org.eclipse.osgi.framework.__internal.core.__StartLevelManager.__doSetStartLevel(__StartLevelManager.java:243)
>
> at
>
> org.eclipse.osgi.framework.__internal.core.__StartLevelManager.__dispatchEvent(__StartLevelManager.java:438)
>
> at
>
> org.eclipse.osgi.framework.__internal.core.__StartLevelManager.__dispatchEvent(__StartLevelManager.java:1)
>
> at
>
> org.eclipse.osgi.framework.__eventmgr.EventManager.__dispatchEvent(EventManager.__java:230)
>
> at
>
> org.eclipse.osgi.framework.__eventmgr.EventManager$__EventThread.run(EventManager.__java:340)
>
> Caused by: java.lang.__NoClassDefFoundError:
> scala/Tuple2$mcLI$sp
> at
> java.lang.Class.__getDeclaredConstructors0(__Native Method)
> at
>
> java.lang.Class.__privateGetDeclaredConstructors__(Class.java:2406)
> at
> java.lang.Class.__getConstructor0(Class.java:__2716)
> at java.lang.Class.newInstance0(__Class.java:343)
> at java.lang.Class.newInstance(__Class.java:325)
> at
>
> org.eclipse.osgi.framework.__internal.core.AbstractBundle.__loadBundleActivator(__AbstractBundle.java:166)
>
> ... 12 more
> Caused by: java.lang.__ClassNotFoundException:
> scala.Tuple2$mcLI$sp
> at
>
> org.eclipse.osgi.internal.__loader.BundleLoader.__findClassInternal(__BundleLoader.java:513)
>
> at
>
> org.eclipse.osgi.internal.__loader.BundleLoader.findClass(__BundleLoader.java:429)
>
> at
>
> org.eclipse.osgi.internal.__loader.BundleLoader.findClass(__BundleLoader.java:417)
>
> at
>
> org.eclipse.osgi.internal.__baseadaptor.__DefaultClassLoader.loadClass(__DefaultClassLoader.java:107)
>
> at
> java.lang.ClassLoader.__loadClass(ClassLoader.java:__266)
> ... 18 more
> Root exception:
> java.lang.__NoClassDefFoundError: scala/Tuple2$mcLI$sp
> at
> java.lang.Class.__getDeclaredConstructors0(__Native Method)
> at
>
> java.lang.Class.__privateGetDeclaredConstructors__(Class.java:2406)
> at
> java.lang.Class.__getConstructor0(Class.java:__2716)
> at java.lang.Class.newInstance0(__Class.java:343)
> at java.lang.Class.newInstance(__Class.java:325)
> at
>
> org.eclipse.osgi.framework.__internal.core.AbstractBundle.__loadBundleActivator(__AbstractBundle.java:166)
>
> at
>
> org.eclipse.osgi.framework.__internal.core.__BundleContextImpl.start(__BundleContextImpl.java:679)
>
> at
>
> org.eclipse.osgi.framework.__internal.core.BundleHost.__startWorker(BundleHost.java:__381)
>
> at
>
> org.eclipse.osgi.framework.__internal.core.AbstractBundle.__resume(AbstractBundle.java:__389)
>
> at
>
> org.eclipse.osgi.framework.__internal.core.Framework.__resumeBundle(Framework.java:__1131)
>
> at
>
> org.eclipse.osgi.framework.__internal.core.__StartLevelManager.__resumeBundles(__StartLevelManager.java:559)
>
> at
>
> org.eclipse.osgi.framework.__internal.core.__StartLevelManager.__resumeBundles(__StartLevelManager.java:544)
>
> at
>
> org.eclipse.osgi.framework.__internal.core.__StartLevelManager.incFWSL(__StartLevelManager.java:457)
>
> at
>
> org.eclipse.osgi.framework.__internal.core.__StartLevelManager.__doSetStartLevel(__StartLevelManager.java:243)
>
> at
>
> org.eclipse.osgi.framework.__internal.core.__StartLevelManager.__dispatchEvent(__StartLevelManager.java:438)
>
> at
>
> org.eclipse.osgi.framework.__internal.core.__StartLevelManager.__dispatchEvent(__StartLevelManager.java:1)
>
> at
>
> org.eclipse.osgi.framework.__eventmgr.EventManager.__dispatchEvent(EventManager.__java:230)
>
> at
>
> org.eclipse.osgi.framework.__eventmgr.EventManager$__EventThread.run(EventManager.__java:340)
>
> Caused by: java.lang.__ClassNotFoundException:
> scala.Tuple2$mcLI$sp
> at
>
> org.eclipse.osgi.internal.__loader.BundleLoader.__findClassInternal(__BundleLoader.java:513)
>
> at
>
> org.eclipse.osgi.internal.__loader.BundleLoader.findClass(__BundleLoader.java:429)
>
> at
>
> org.eclipse.osgi.internal.__loader.BundleLoader.findClass(__BundleLoader.java:417)
>
> at
>
> org.eclipse.osgi.internal.__baseadaptor.__DefaultClassLoader.loadClass(__DefaultClassLoader.java:107)
>
> at
> java.lang.ClassLoader.__loadClass(ClassLoader.java:__266)
> ... 18 more
>
> !ENTRY org.eclipse.osgi 4 0 2012-07-25 00:47:51.030
> !MESSAGE Application error
> !STACK 1
> org.osgi.framework.__BundleException: The activator
> scala.tools.eclipse.__ScalaPlugin for bundle
> org.scala-ide.sdt.core is
> invalid
> at
>
> org.eclipse.osgi.framework.__internal.core.AbstractBundle.__loadBundleActivator(__AbstractBundle.java:171)
>
> at
>
> org.eclipse.osgi.framework.__internal.core.__BundleContextImpl.start(__BundleContextImpl.java:679)
>
> at
>
> org.eclipse.osgi.framework.__internal.core.BundleHost.__startWorker(BundleHost.java:__381)
>
> at
>
> org.eclipse.osgi.framework.__internal.core.AbstractBundle.__start(AbstractBundle.java:299)
>
> at
>
> org.eclipse.osgi.framework.__internal.core.AbstractBundle.__start(AbstractBundle.java:291)
>
> at
>
> org.eclipse.tycho.surefire.__osgibooter.OsgiSurefireBooter.__getBundleClassLoader(__OsgiSurefireBooter.java:144)
>
> at
>
> org.eclipse.tycho.surefire.__osgibooter.OsgiSurefireBooter.__run(OsgiSurefireBooter.java:__65)
>
> 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:__57)
>
> at
>
> sun.reflect.__DelegatingMethodAccessorImpl.__invoke(__DelegatingMethodAccessorImpl.__java:43)
>
> at java.lang.reflect.Method.__invoke(Method.java:616)
> 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:344)
>
> 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:__57)
>
> at
>
> sun.reflect.__DelegatingMethodAccessorImpl.__invoke(__DelegatingMethodAccessorImpl.__java:43)
>
> at java.lang.reflect.Method.__invoke(Method.java:616)
> at
>
> org.eclipse.equinox.launcher.__Main.invokeFramework(Main.__java:622)
> at
> org.eclipse.equinox.launcher.__Main.basicRun(Main.java:577)
> at
> org.eclipse.equinox.launcher.__Main.run(Main.java:1410)
> at
> org.eclipse.equinox.launcher.__Main.main(Main.java:1386)
> Caused by: java.lang.__NoClassDefFoundError:
> scala/Tuple2$mcLI$sp
> at
> java.lang.Class.__getDeclaredConstructors0(__Native Method)
> at
>
> java.lang.Class.__privateGetDeclaredConstructors__(Class.java:2406)
> at
> java.lang.Class.__getConstructor0(Class.java:__2716)
> at java.lang.Class.newInstance0(__Class.java:343)
> at java.lang.Class.newInstance(__Class.java:325)
> at
>
> org.eclipse.osgi.framework.__internal.core.AbstractBundle.__loadBundleActivator(__AbstractBundle.java:166)
>
> ... 25 more
> Caused by: java.lang.__ClassNotFoundException:
> scala.Tuple2$mcLI$sp
> at
>
> org.eclipse.osgi.internal.__loader.BundleLoader.__findClassInternal(__BundleLoader.java:513)
>
> at
>
> org.eclipse.osgi.internal.__loader.BundleLoader.findClass(__BundleLoader.java:429)
>
> at
>
> org.eclipse.osgi.internal.__loader.BundleLoader.findClass(__BundleLoader.java:417)
>
> at
>
> org.eclipse.osgi.internal.__baseadaptor.__DefaultClassLoader.loadClass(__DefaultClassLoader.java:107)
>
> at
> java.lang.ClassLoader.__loadClass(ClassLoader.java:__266)
> ... 31 more
> Root exception:
> java.lang.__NoClassDefFoundError: scala/Tuple2$mcLI$sp
> at
> java.lang.Class.__getDeclaredConstructors0(__Native Method)
> at
>
> java.lang.Class.__privateGetDeclaredConstructors__(Class.java:2406)
> at
> java.lang.Class.__getConstructor0(Class.java:__2716)
> at java.lang.Class.newInstance0(__Class.java:343)
> at java.lang.Class.newInstance(__Class.java:325)
> at
>
> org.eclipse.osgi.framework.__internal.core.AbstractBundle.__loadBundleActivator(__AbstractBundle.java:166)
>
> at
>
> org.eclipse.osgi.framework.__internal.core.__BundleContextImpl.start(__BundleContextImpl.java:679)
>
> at
>
> org.eclipse.osgi.framework.__internal.core.BundleHost.__startWorker(BundleHost.java:__381)
>
> at
>
> org.eclipse.osgi.framework.__internal.core.AbstractBundle.__start(AbstractBundle.java:299)
>
> at
>
> org.eclipse.osgi.framework.__internal.core.AbstractBundle.__start(AbstractBundle.java:291)
>
> at
>
> org.eclipse.tycho.surefire.__osgibooter.OsgiSurefireBooter.__getBundleClassLoader(__OsgiSurefireBooter.java:144)
>
> at
>
> org.eclipse.tycho.surefire.__osgibooter.OsgiSurefireBooter.__run(OsgiSurefireBooter.java:__65)
>
> 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:__57)
>
> at
>
> sun.reflect.__DelegatingMethodAccessorImpl.__invoke(__DelegatingMethodAccessorImpl.__java:43)
>
> at java.lang.reflect.Method.__invoke(Method.java:616)
> 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:344)
>
> 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:__57)
>
> at
>
> sun.reflect.__DelegatingMethodAccessorImpl.__invoke(__DelegatingMethodAccessorImpl.__java:43)
>
> at java.lang.reflect.Method.__invoke(Method.java:616)
> at
>
> org.eclipse.equinox.launcher.__Main.invokeFramework(Main.__java:622)
> at
> org.eclipse.equinox.launcher.__Main.basicRun(Main.java:577)
> at
> org.eclipse.equinox.launcher.__Main.run(Main.java:1410)
> at
> org.eclipse.equinox.launcher.__Main.main(Main.java:1386)
> Caused by: java.lang.__ClassNotFoundException:
> scala.Tuple2$mcLI$sp
> at
>
> org.eclipse.osgi.internal.__loader.BundleLoader.__findClassInternal(__BundleLoader.java:513)
>
> at
>
> org.eclipse.osgi.internal.__loader.BundleLoader.findClass(__BundleLoader.java:429)
>
> at
>
> org.eclipse.osgi.internal.__loader.BundleLoader.findClass(__BundleLoader.java:417)
>
> at
>
> org.eclipse.osgi.internal.__baseadaptor.__DefaultClassLoader.loadClass(__DefaultClassLoader.java:107)
>
> at
> java.lang.ClassLoader.__loadClass(ClassLoader.java:__266)
> ... 31 more
>
>
> On Tue 24 Jul 2012 09:00:31 PM CEST, Luc Bourlier wrote:
> > I haven't tried the "-Dtest", but I know that tycho run
> the tests
> > after the package phase because it needs the plugin
> jars. So you
> > should try with 'mvn ... install'.
> >
> > Luc
> >
> > On Tuesday, July 24, 2012 7:21:04 PM UTC+2, sschaef wrote:
> >
> > That is what I already did, but no tests are executed:
> >
> > antoras@myhost
> ...scala-ide/org.scala-ide.__sdt.core.tests
> > (git)-[master] % mvn -P scala-2.10.x
> -Dtest=AnnotationTest test
> > [INFO] Scanning for projects...
> > [WARNING] No explicit target runtime environment
> configuration.
> > Build is platform dependent.
> > [INFO] Computing target platform for MavenProject:
> >
> org.scala-ide:org.scala-ide.__sdt.core.tests:2.1.0-SNAPSHOT @
> >
>
> /home/antoras/dev/Scala/scala-__ide/org.scala-ide.sdt.core.__tests/pom.xml
>
> > [INFO] Fetching p2.index (0B of 96B at 0B/s) from
> > http://download.eclipse.org/__releases/indigo/
> <http://download.eclipse.org/releases/indigo/>
> <http://download.eclipse.org/__releases/indigo/
> <http://download.eclipse.org/releases/indigo/>>
> > <http://download.eclipse.org/__releases/indigo/
> <http://download.eclipse.org/releases/indigo/>
> <http://download.eclipse.org/__releases/indigo/
> <http://download.eclipse.org/releases/indigo/>>>
> > [INFO] Fetching p2.index (128B of 96B at 0B/s) from
> > http://download.eclipse.org/__releases/indigo/
> <http://download.eclipse.org/releases/indigo/>
> <http://download.eclipse.org/__releases/indigo/
> <http://download.eclipse.org/releases/indigo/>>
> > <http://download.eclipse.org/__releases/indigo/
> <http://download.eclipse.org/releases/indigo/>
> <http://download.eclipse.org/__releases/indigo/
> <http://download.eclipse.org/releases/indigo/>>>
> > [INFO] Adding repository
> > http://download.eclipse.org/__releases/indigo/
> <http://download.eclipse.org/releases/indigo/>
> <http://download.eclipse.org/__releases/indigo/
> <http://download.eclipse.org/releases/indigo/>>
> > <http://download.eclipse.org/__releases/indigo/
> <http://download.eclipse.org/releases/indigo/>
> <http://download.eclipse.org/__releases/indigo/
> <http://download.eclipse.org/releases/indigo/>>>
> > [INFO] Fetching p2.index (0B of 98B at 0B/s) from
> >
> http://download.eclipse.org/__technology/epp/packages/__indigo/ <http://download.eclipse.org/technology/epp/packages/indigo/>
>
> <http://download.eclipse.org/__technology/epp/packages/__indigo/
> <http://download.eclipse.org/technology/epp/packages/indigo/>>
> >
> <http://download.eclipse.org/__technology/epp/packages/__indigo/
> <http://download.eclipse.org/technology/epp/packages/indigo/>
>
> <http://download.eclipse.org/__technology/epp/packages/__indigo/
> <http://download.eclipse.org/technology/epp/packages/indigo/>>>
> > [INFO] Fetching p2.index (131B of 98B at 0B/s) from
> >
> http://download.eclipse.org/__technology/epp/packages/__indigo/ <http://download.eclipse.org/technology/epp/packages/indigo/>
>
> <http://download.eclipse.org/__technology/epp/packages/__indigo/
> <http://download.eclipse.org/technology/epp/packages/indigo/>>
> >
> <http://download.eclipse.org/__technology/epp/packages/__indigo/
> <http://download.eclipse.org/technology/epp/packages/indigo/>
>
> <http://download.eclipse.org/__technology/epp/packages/__indigo/
> <http://download.eclipse.org/technology/epp/packages/indigo/>>>
> > [INFO] Fetching p2.index (0B of 93B at 0B/s) from
> >
> http://download.eclipse.org/__releases/indigo/201202240900/
> <http://download.eclipse.org/releases/indigo/201202240900/>
>
> <http://download.eclipse.org/__releases/indigo/201202240900/
> <http://download.eclipse.org/releases/indigo/201202240900/>>
> >
> <http://download.eclipse.org/__releases/indigo/201202240900/
> <http://download.eclipse.org/releases/indigo/201202240900/>
>
> <http://download.eclipse.org/__releases/indigo/201202240900/
> <http://download.eclipse.org/releases/indigo/201202240900/>>__>
> > [INFO] Fetching p2.index (119B of 93B at 0B/s) from
> >
> http://download.eclipse.org/__releases/indigo/201202240900/
> <http://download.eclipse.org/releases/indigo/201202240900/>
>
> <http://download.eclipse.org/__releases/indigo/201202240900/
> <http://download.eclipse.org/releases/indigo/201202240900/>>
> >
> <http://download.eclipse.org/__releases/indigo/201202240900/
> <http://download.eclipse.org/releases/indigo/201202240900/>
>
> <http://download.eclipse.org/__releases/indigo/201202240900/
> <http://download.eclipse.org/releases/indigo/201202240900/>>__>
> > [INFO] 1 operation remaining.
> > [INFO] Fetching p2.index (0B of 93B at 0B/s) from
> >
> http://download.eclipse.org/__releases/indigo/201109230900/
> <http://download.eclipse.org/releases/indigo/201109230900/>
>
> <http://download.eclipse.org/__releases/indigo/201109230900/
> <http://download.eclipse.org/releases/indigo/201109230900/>>
> >
> <http://download.eclipse.org/__releases/indigo/201109230900/
> <http://download.eclipse.org/releases/indigo/201109230900/>
>
> <http://download.eclipse.org/__releases/indigo/201109230900/
> <http://download.eclipse.org/releases/indigo/201109230900/>>__>
> > [INFO] Fetching p2.index (119B of 93B at 0B/s) from
> >
> http://download.eclipse.org/__releases/indigo/201109230900/
> <http://download.eclipse.org/releases/indigo/201109230900/>
>
> <http://download.eclipse.org/__releases/indigo/201109230900/
> <http://download.eclipse.org/releases/indigo/201109230900/>>
> >
> <http://download.eclipse.org/__releases/indigo/201109230900/
> <http://download.eclipse.org/releases/indigo/201109230900/>
>
> <http://download.eclipse.org/__releases/indigo/201109230900/
> <http://download.eclipse.org/releases/indigo/201109230900/>>__>
> > [INFO] 1 operation remaining.
> > [INFO] Fetching p2.index (0B of 93B at 0B/s) from
> >
> http://download.eclipse.org/__releases/indigo/201106220900/
> <http://download.eclipse.org/releases/indigo/201106220900/>
>
> <http://download.eclipse.org/__releases/indigo/201106220900/
> <http://download.eclipse.org/releases/indigo/201106220900/>>
> >
> <http://download.eclipse.org/__releases/indigo/201106220900/
> <http://download.eclipse.org/releases/indigo/201106220900/>
>
> <http://download.eclipse.org/__releases/indigo/201106220900/
> <http://download.eclipse.org/releases/indigo/201106220900/>>__>
> > [INFO] 1 operation remaining.
> > [INFO] Fetching p2.index (119B of 93B at 0B/s) from
> >
> http://download.eclipse.org/__releases/indigo/201106220900/
> <http://download.eclipse.org/releases/indigo/201106220900/>
>
> <http://download.eclipse.org/__releases/indigo/201106220900/
> <http://download.eclipse.org/releases/indigo/201106220900/>>
> >
> <http://download.eclipse.org/__releases/indigo/201106220900/
> <http://download.eclipse.org/releases/indigo/201106220900/>
>
> <http://download.eclipse.org/__releases/indigo/201106220900/
> <http://download.eclipse.org/releases/indigo/201106220900/>>__>
> > [INFO] Fetching p2.index (0B of 96B at 0B/s) from
> > http://download.eclipse.org/__releases/indigo/
> <http://download.eclipse.org/releases/indigo/>
> <http://download.eclipse.org/__releases/indigo/
> <http://download.eclipse.org/releases/indigo/>>
> > <http://download.eclipse.org/__releases/indigo/
> <http://download.eclipse.org/releases/indigo/>
> <http://download.eclipse.org/__releases/indigo/
> <http://download.eclipse.org/releases/indigo/>>>
> > [INFO] 1 operation remaining.
> > [INFO] Fetching p2.index (128B of 96B at 0B/s) from
> > http://download.eclipse.org/__releases/indigo/
> <http://download.eclipse.org/releases/indigo/>
> <http://download.eclipse.org/__releases/indigo/
> <http://download.eclipse.org/releases/indigo/>>
> > <http://download.eclipse.org/__releases/indigo/
> <http://download.eclipse.org/releases/indigo/>
> <http://download.eclipse.org/__releases/indigo/
> <http://download.eclipse.org/releases/indigo/>>>
> > [INFO] Adding repository
> > http://download.eclipse.org/__releases/indigo/
> <http://download.eclipse.org/releases/indigo/>
> <http://download.eclipse.org/__releases/indigo/
> <http://download.eclipse.org/releases/indigo/>>
> > <http://download.eclipse.org/__releases/indigo/
> <http://download.eclipse.org/releases/indigo/>
> <http://download.eclipse.org/__releases/indigo/
> <http://download.eclipse.org/releases/indigo/>>>
> > [INFO] Fetching p2.index (0B of 98B at 0B/s) from
> >
> http://download.eclipse.org/__technology/epp/packages/__indigo/ <http://download.eclipse.org/technology/epp/packages/indigo/>
>
> <http://download.eclipse.org/__technology/epp/packages/__indigo/
> <http://download.eclipse.org/technology/epp/packages/indigo/>>
> >
> <http://download.eclipse.org/__technology/epp/packages/__indigo/
> <http://download.eclipse.org/technology/epp/packages/indigo/>
>
> <http://download.eclipse.org/__technology/epp/packages/__indigo/
> <http://download.eclipse.org/technology/epp/packages/indigo/>>>
> > [INFO] Fetching p2.index (131B of 98B at 0B/s) from
> >
> http://download.eclipse.org/__technology/epp/packages/__indigo/ <http://download.eclipse.org/technology/epp/packages/indigo/>
>
> <http://download.eclipse.org/__technology/epp/packages/__indigo/
> <http://download.eclipse.org/technology/epp/packages/indigo/>>
> >
> <http://download.eclipse.org/__technology/epp/packages/__indigo/
> <http://download.eclipse.org/technology/epp/packages/indigo/>
>
> <http://download.eclipse.org/__technology/epp/packages/__indigo/
> <http://download.eclipse.org/technology/epp/packages/indigo/>>>
> > [INFO] 1 operation remaining.
> > [INFO] Fetching p2.index (0B of 93B at 0B/s) from
> >
> http://download.eclipse.org/__releases/indigo/201202240900/
> <http://download.eclipse.org/releases/indigo/201202240900/>
>
> <http://download.eclipse.org/__releases/indigo/201202240900/
> <http://download.eclipse.org/releases/indigo/201202240900/>>
> >
> <http://download.eclipse.org/__releases/indigo/201202240900/
> <http://download.eclipse.org/releases/indigo/201202240900/>
>
> <http://download.eclipse.org/__releases/indigo/201202240900/
> <http://download.eclipse.org/releases/indigo/201202240900/>>__>
> > [INFO] Fetching p2.index (119B of 93B at 0B/s) from
> >
> http://download.eclipse.org/__releases/indigo/201202240900/
> <http://download.eclipse.org/releases/indigo/201202240900/>
>
> <http://download.eclipse.org/__releases/indigo/201202240900/
> <http://download.eclipse.org/releases/indigo/201202240900/>>
> >
> <http://download.eclipse.org/__releases/indigo/201202240900/
> <http://download.eclipse.org/releases/indigo/201202240900/>
>
> <http://download.eclipse.org/__releases/indigo/201202240900/
> <http://download.eclipse.org/releases/indigo/201202240900/>>__>
> > [INFO] 1 operation remaining.
> > [INFO] Fetching p2.index (0B of 93B at 0B/s) from
> >
> http://download.eclipse.org/__releases/indigo/201109230900/
> <http://download.eclipse.org/releases/indigo/201109230900/>
>
> <http://download.eclipse.org/__releases/indigo/201109230900/
> <http://download.eclipse.org/releases/indigo/201109230900/>>
> >
> <http://download.eclipse.org/__releases/indigo/201109230900/
> <http://download.eclipse.org/releases/indigo/201109230900/>
>
> <http://download.eclipse.org/__releases/indigo/201109230900/
> <http://download.eclipse.org/releases/indigo/201109230900/>>__>
> > [INFO] Fetching p2.index (119B of 93B at 0B/s) from
> >
> http://download.eclipse.org/__releases/indigo/201109230900/
> <http://download.eclipse.org/releases/indigo/201109230900/>
>
> <http://download.eclipse.org/__releases/indigo/201109230900/
> <http://download.eclipse.org/releases/indigo/201109230900/>>
> >
> <http://download.eclipse.org/__releases/indigo/201109230900/
> <http://download.eclipse.org/releases/indigo/201109230900/>
>
> <http://download.eclipse.org/__releases/indigo/201109230900/
> <http://download.eclipse.org/releases/indigo/201109230900/>>__>
> > [INFO] Fetching p2.index (0B of 93B at 0B/s) from
> >
> http://download.eclipse.org/__releases/indigo/201106220900/
> <http://download.eclipse.org/releases/indigo/201106220900/>
>
> <http://download.eclipse.org/__releases/indigo/201106220900/
> <http://download.eclipse.org/releases/indigo/201106220900/>>
> >
> <http://download.eclipse.org/__releases/indigo/201106220900/
> <http://download.eclipse.org/releases/indigo/201106220900/>
>
> <http://download.eclipse.org/__releases/indigo/201106220900/
> <http://download.eclipse.org/releases/indigo/201106220900/>>__>
> > [INFO] Fetching p2.index (119B of 93B at 0B/s) from
> >
> http://download.eclipse.org/__releases/indigo/201106220900/
> <http://download.eclipse.org/releases/indigo/201106220900/>
>
> <http://download.eclipse.org/__releases/indigo/201106220900/
> <http://download.eclipse.org/releases/indigo/201106220900/>>
> >
> <http://download.eclipse.org/__releases/indigo/201106220900/
> <http://download.eclipse.org/releases/indigo/201106220900/>
>
> <http://download.eclipse.org/__releases/indigo/201106220900/
> <http://download.eclipse.org/releases/indigo/201106220900/>>__>
> > [INFO] Adding repository
> > http://download.eclipse.org/__tools/ajdt/37/dev/update
> <http://download.eclipse.org/tools/ajdt/37/dev/update>
> <http://download.eclipse.org/__tools/ajdt/37/dev/update
> <http://download.eclipse.org/tools/ajdt/37/dev/update>>
> >
> <http://download.eclipse.org/__tools/ajdt/37/dev/update
> <http://download.eclipse.org/tools/ajdt/37/dev/update>
> <http://download.eclipse.org/__tools/ajdt/37/dev/update
> <http://download.eclipse.org/tools/ajdt/37/dev/update>>>
> > [INFO] Adding repository
> > http://download.eclipse.org/__tools/ajdt/37/dev/update
> <http://download.eclipse.org/tools/ajdt/37/dev/update>
> <http://download.eclipse.org/__tools/ajdt/37/dev/update
> <http://download.eclipse.org/tools/ajdt/37/dev/update>>
> >
> <http://download.eclipse.org/__tools/ajdt/37/dev/update
> <http://download.eclipse.org/tools/ajdt/37/dev/update>
> <http://download.eclipse.org/__tools/ajdt/37/dev/update
> <http://download.eclipse.org/tools/ajdt/37/dev/update>>>
> > [INFO] Adding repository
> > http://download.scala-ide.org/__scala-refactoring-trunk
> <http://download.scala-ide.org/scala-refactoring-trunk>
> <http://download.scala-ide.__org/scala-refactoring-trunk
> <http://download.scala-ide.org/scala-refactoring-trunk>>
> >
> <http://download.scala-ide.__org/scala-refactoring-trunk
> <http://download.scala-ide.org/scala-refactoring-trunk>
> <http://download.scala-ide.__org/scala-refactoring-trunk
> <http://download.scala-ide.org/scala-refactoring-trunk>>>
> > [INFO] Adding repository
> > http://download.scala-ide.org/__scala-refactoring-trunk
> <http://download.scala-ide.org/scala-refactoring-trunk>
> <http://download.scala-ide.__org/scala-refactoring-trunk
> <http://download.scala-ide.org/scala-refactoring-trunk>>
> >
> <http://download.scala-ide.__org/scala-refactoring-trunk
> <http://download.scala-ide.org/scala-refactoring-trunk>
> <http://download.scala-ide.__org/scala-refactoring-trunk
> <http://download.scala-ide.org/scala-refactoring-trunk>>>
> > [INFO] Adding repository
> > http://download.scala-ide.org/__scalariform-trunk
> <http://download.scala-ide.org/scalariform-trunk>
> <http://download.scala-ide.__org/scalariform-trunk
> <http://download.scala-ide.org/scalariform-trunk>>
> > <http://download.scala-ide.__org/scalariform-trunk
> <http://download.scala-ide.org/scalariform-trunk>
> <http://download.scala-ide.__org/scalariform-trunk
> <http://download.scala-ide.org/scalariform-trunk>>>
> > [INFO] Adding repository
> > http://download.scala-ide.org/__scalariform-trunk
> <http://download.scala-ide.org/scalariform-trunk>
> <http://download.scala-ide.__org/scalariform-trunk
> <http://download.scala-ide.org/scalariform-trunk>>
> > <http://download.scala-ide.__org/scalariform-trunk
> <http://download.scala-ide.org/scalariform-trunk>
> <http://download.scala-ide.__org/scalariform-trunk
> <http://download.scala-ide.org/scalariform-trunk>>>
> > [INFO] Resolving dependencies of MavenProject:
> >
> org.scala-ide:org.scala-ide.__sdt.core.tests:2.1.0-SNAPSHOT @
> >
>
> /home/antoras/dev/Scala/scala-__ide/org.scala-ide.sdt.core.__tests/pom.xml
>
> > [WARNING] The following locally built units have
> been used to
> > resolve project dependencies:
> > [WARNING]
> > org.scala-ide.sdt.core/2.1.0.
> <http://2.1.0.>__local-2_10-201207231821-__dc19e23
> > [WARNING]
> >
> org.scala-ide.sdt.aspects/2.1.__0.local-2_10-201207231821-__dc19e23
> > [INFO] Resolving class path of MavenProject:
> >
> org.scala-ide:org.scala-ide.__sdt.core.tests:2.1.0-SNAPSHOT @
> >
>
> /home/antoras/dev/Scala/scala-__ide/org.scala-ide.sdt.core.__tests/pom.xml
>
> > [INFO]
> > [INFO]
> >
>
> ------------------------------__------------------------------__------------
>
> > [INFO] Building org.scala-ide.sdt.core.tests
> 2.1.0-SNAPSHOT
> > [INFO]
> >
>
> ------------------------------__------------------------------__------------
>
> > [INFO]
> > [INFO] ---
> tycho-packaging-plugin:0.15.0:__build-qualifier
> > (default-build-qualifier) @
> org.scala-ide.sdt.core.tests ---
> > [INFO]
> > [INFO] --- tycho-packaging-plugin:0.15.0:__validate-id
> > (default-validate-id) @ org.scala-ide.sdt.core.tests ---
> > [INFO]
> > [INFO] ---
> tycho-packaging-plugin:0.15.0:__validate-version
> > (default-validate-version) @
> org.scala-ide.sdt.core.tests ---
> > [INFO]
> > [INFO] --- buildnumber-maven-plugin:1.1:__create
> (default) @
> > org.scala-ide.sdt.core.tests ---
> > [INFO] Checking for local modifications: skipped.
> > [INFO] Updating project files from SCM: skipped.
> > [INFO] ShortRevision tag detected. The value is '7'.
> > [INFO] Executing: /bin/sh -c cd
> >
>
> /home/antoras/dev/Scala/scala-__ide/org.scala-ide.sdt.core.__tests
> &&
> > git rev-parse --verify --short=7 HEAD
> > [INFO] Working directory:
> >
> /home/antoras/dev/Scala/scala-__ide/org.scala-ide.sdt.core.__tests
> > [INFO] Storing buildNumber: dc19e23 at timestamp:
> 1343150252238
> > [INFO] ShortRevision tag detected. The value is '7'.
> > [INFO] Executing: /bin/sh -c cd
> >
>
> /home/antoras/dev/Scala/scala-__ide/org.scala-ide.sdt.core.__tests
> &&
> > git rev-parse --verify --short=7 HEAD
> > [INFO] Working directory:
> >
> /home/antoras/dev/Scala/scala-__ide/org.scala-ide.sdt.core.__tests
> > [INFO] Storing buildScmBranch: UNKNOWN
> > [INFO]
> > [INFO] --- maven-dependency-plugin:2.1:__copy (copy) @
> > org.scala-ide.sdt.core.tests ---
> > [INFO] Configured Artifact:
> org.mockito:mockito-all:?:jar
> > [INFO] org.mockito:mockito-all:1.9.0:__jar already
> exists in
> >
>
> /home/antoras/dev/Scala/scala-__ide/org.scala-ide.sdt.core.__tests/target/lib
>
> > [INFO]
> > [INFO] --- maven-resources-plugin:2.4.3:__resources
> > (default-resources) @ org.scala-ide.sdt.core.tests ---
> > [INFO] Using 'UTF-8' encoding to copy filtered
> resources.
> > [INFO] skip non existing resourceDirectory
> >
>
> /home/antoras/dev/Scala/scala-__ide/org.scala-ide.sdt.core.__tests/src/main/resources
>
> > [INFO]
> > [INFO] --- scala-maven-plugin:3.0.2:__compile
> (default) @
> > org.scala-ide.sdt.core.tests ---
> > [INFO] Checking for multiple versions of scala
> > [INFO] includes = [**/*.scala,**/*.java,]
> > [INFO] excludes = []
> > [INFO] Nothing to compile - all classes are up to date
> > [INFO]
> > [INFO] --- tycho-compiler-plugin:0.15.0:__compile
> (default-compile)
> > @ org.scala-ide.sdt.core.tests ---
> > [INFO] Nothing to compile - all classes are up to date
> > [INFO]
> > [INFO] --- maven-resources-plugin:2.4.3:__testResources
> > (default-testResources) @
> org.scala-ide.sdt.core.tests ---
> > [INFO] Using 'UTF-8' encoding to copy filtered
> resources.
> > [INFO] skip non existing resourceDirectory
> >
>
> /home/antoras/dev/Scala/scala-__ide/org.scala-ide.sdt.core.__tests/src/test/resources
>
> > [INFO]
> > [INFO] --- tycho-compiler-plugin:0.15.0:__testCompile
> > (default-testCompile) @ org.scala-ide.sdt.core.tests ---
> > [INFO] Nothing to compile - all classes are up to date
> > [INFO]
> >
>
> ------------------------------__------------------------------__------------
>
> > [INFO] BUILD SUCCESS
> > [INFO]
> >
>
> ------------------------------__------------------------------__------------
>
> > [INFO] Total time: 30.524s
> > [INFO] Finished at: Tue Jul 24 19:17:34 CEST 2012
> > [INFO] Final Memory: 70M/266M
> > [INFO]
> >
>
> ------------------------------__------------------------------__------------
>
> >
> >
> > On Tuesday, July 24, 2012 3:56:14 PM UTC+2, Matthew
> Farwell
> wrote:
> >
> > Salut,
> >
> > From stackoverflow:
> >
> >
> http://stackoverflow.com/__questions/1873995/run-a-__single-test-method-with-maven
> <http://stackoverflow.com/questions/1873995/run-a-single-test-method-with-maven>
>
> <http://stackoverflow.com/__questions/1873995/run-a-__single-test-method-with-maven
> <http://stackoverflow.com/questions/1873995/run-a-single-test-method-with-maven>>
>
> >
>
> <http://stackoverflow.com/__questions/1873995/run-a-__single-test-method-with-maven
> <http://stackoverflow.com/questions/1873995/run-a-single-test-method-with-maven>
>
> <http://stackoverflow.com/__questions/1873995/run-a-__single-test-method-with-maven
> <http://stackoverflow.com/questions/1873995/run-a-single-test-method-with-maven>>__>
>
> >
> >
> > Matthew Farwell..
> >
> > 2012/7/24 sschaef <ma...@antoras.de
> <mailto:ma...@antoras.de>
> <mailto:ma...@antoras.de <mailto:ma...@antoras.de>>
> <mailto:ma...@antoras.de <mailto:ma...@antoras.de>
>
> <mailto:ma...@antoras.de <mailto:ma...@antoras.de>>>>

sschaef

unread,
Jul 27, 2012, 12:20:59 PM7/27/12
to scala-...@googlegroups.com
Just noticed, that I asked the same question some time ago:
https://groups.google.com/d/msg/scala-ide-dev/eTCmlx5igZY/y_jRHViKwVYJ

Resolution there: wait until patch.

Mirco Dotta

unread,
Jul 27, 2012, 12:23:48 PM7/27/12
to scala-...@googlegroups.com
Ok, now I have broken something. While executing the `build-all.sh` script (as `./build-all.sh clean install -P scala-2.10.x`), I get errors in the test phase. The interesting thing is when I execute the tests inside of eclipse I get no errors. How can that be?

I did a complete build all inside of eclipse, refreshed the workspace, restarted the IDE but it still works fine in eclipse.

The errors are:

findReferencesInConstructorSuperCall(scala.tools.eclipse.findreferences.FindReferencesTests): Don't know how to convert element `layout` of type `class org.eclipse.jdt.internal.core.ResolvedBinaryMethod`
findReferencesInClassFields(scala.tools.eclipse.findreferences.FindReferencesTests): Don't know how to convert element `layout` of type `class org.eclipse.jdt.internal.core.ResolvedBinaryMethod`

Aha, that's a known issue which seem to be happening only on Linux (I'm assuming you are on Linux). On Mac they work fine. Odd, isn't it?

I have no clue why there is a difference between Mac and Linux, but I'd be sure interested if you can gather some more info on this.


---------------
Mirco Dotta
Typesafe - The software stack for applications that scale
PSE-D, 1015 Lausanne, Switzerland
Twitter: @mircodotta








sschaef

unread,
Jul 27, 2012, 2:32:34 PM7/27/12
to scala-...@googlegroups.com, Mirco Dotta

On 07/27/2012 06:23 PM, Mirco Dotta wrote:
>> Ok, now I have broken something. While executing the `build-all.sh`
>> script (as `./build-all.sh clean install -P scala-2.10.x`), I get
>> errors in the test phase. The interesting thing is when I execute the
>> tests inside of eclipse I get no errors. How can that be?
>>
>> I did a complete build all inside of eclipse, refreshed the
>> workspace, restarted the IDE but it still works fine in eclipse.
>>
>> The errors are:
>>
>> findReferencesInConstructorSuperCall(scala.tools.eclipse.findreferences.FindReferencesTests):
>> Don't know how to convert element `layout` of type `class
>> org.eclipse.jdt.internal.core.ResolvedBinaryMethod`
>> findReferencesInClassFields(scala.tools.eclipse.findreferences.FindReferencesTests):
>> Don't know how to convert element `layout` of type `class
>> org.eclipse.jdt.internal.core.ResolvedBinaryMethod`
>
> Aha, that's a known issue which seem to be happening only on Linux
> (I'm assuming you are on Linux). On Mac they work fine. Odd, isn't it?
>
> I have no clue why there is a difference between Mac and Linux, but
> I'd be sure interested if you can gather some more info on this.
Yes, I'm using Linux. What for information are you looking for?

I can give you the complete output of maven:
http://www.file-upload.net/download-4604582/mvnlog.html

Is it possible to activate the log done in eclipse with Maven? Inside of
eclipse I can't reproduce the problem but I can change the error message
if you need more internal information (and if you have a clue what to
search for).


By the way, I did the quick fix for the lazy val problem. I tested it
against the find references test and all works fine. Is this enough for
a pull request? Shall I test the change against the complete test suite?
If yes I can only do this inside of eclipse not with maven (see error
above ;)). Some other things I should pay attention to?

Mirco Dotta

unread,
Jul 28, 2012, 5:49:21 AM7/28/12
to sschaef, scala-...@googlegroups.com
On Jul 27, 2012, at 8:32 PM, sschaef wrote:


On 07/27/2012 06:23 PM, Mirco Dotta wrote:
Ok, now I have broken something. While executing the `build-all.sh` script (as `./build-all.sh clean install -P scala-2.10.x`), I get errors in the test phase. The interesting thing is when I execute the tests inside of eclipse I get no errors. How can that be?

I did a complete build all inside of eclipse, refreshed the workspace, restarted the IDE but it still works fine in eclipse.

The errors are:

findReferencesInConstructorSuperCall(scala.tools.eclipse.findreferences.FindReferencesTests): Don't know how to convert element `layout` of type `class org.eclipse.jdt.internal.core.ResolvedBinaryMethod`
findReferencesInClassFields(scala.tools.eclipse.findreferences.FindReferencesTests): Don't know how to convert element `layout` of type `class org.eclipse.jdt.internal.core.ResolvedBinaryMethod`

Aha, that's a known issue which seem to be happening only on Linux (I'm assuming you are on Linux). On Mac they work fine. Odd, isn't it?

I have no clue why there is a difference between Mac and Linux, but I'd be sure interested if you can gather some more info on this.
Yes, I'm using Linux. What for information are you looking for?

I can give you the complete output of maven: http://www.file-upload.net/download-4604582/mvnlog.html

I really wonder why a reference to `layout` is found, when the in test cases I'm looking for references of a complete different name.

First thing, it would be good to know what is the fully qualified name of `layout`. So, in the following https://github.com/scala-ide/scala-ide/blob/master/org.scala-ide.sdt.core.tests/src/scala/tools/eclipse/findreferences/FindReferencesTests.scala#L133, can you change the first parameter passed to `format` to the following `fullname(e)`.

That will give us one more information, but it won't be enough to understand what's going on (still, I'm curious to know from where that binary method comes from). The only "easy" way I see to fix this is through debugging, but that won't be easy to achieve given the issue is reproducible only when the tests are ran via maven. 

In a nutshell, you need to find the maven command for running one single test (I believe Luc explained how to do so in this very same thread), and you will need to pass some VM arguments to the maven Scala runner so that the process is stopped until a debugger is attached (I think you can just modify the POM.xml and pass the right vm arguments to the scala maven plugin - the arguments are something like `-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000`)
If you can get this to work, then from Eclipse it is possible to create a Debug configuration for a `Remote Java Application`, which will allow you to connect to the waiting maven process and start debugging. 

I know this is far from being easy to put in place. I'll try to see how this can be done during next week, and write back to you.

Is it possible to activate the log done in eclipse with Maven? Inside of eclipse I can't reproduce the problem but I can change the error message if you need more internal information (and if you have a clue what to search for).

The log is already activated, and the level is set to DEBUG (which is the most noisy level we have for logging). If you want to log more information, you simply need to mix-in the `HasLogger` in the class, and then use the inherited `logger` field.

By the way, I did the quick fix for the lazy val problem. I tested it against the find references test and all works fine. Is this enough for a pull request? Shall I test the change against the complete test suite?

Yes, in general you should always run the whole test suite. And you should also make sure that tests pass against both 2.9 and 2.10.

Further, when you issue a pull request (PR), we have a PR validator that merges your contribution in a local branch (based on master) and runs the build for both 2.9 and 2.10. That is to say that even if you forget to do it, the validator does it for you the moment you create the PR. Isn't that sweet :)

If yes I can only do this inside of eclipse not with maven (see error above ;)).

Now, in your case, you can just create the PR. The validator will make sure that your code can be built with both 2.9 and 2.10.

Some other things I should pay attention to?

There is nothing special. After you create the PR, someone will review it. If needed, the reviewer and the reviewee will discuss the feedback and make the needed changes to the PR. Once both parties are happy, the PR is merged and closed.

Oh, one more thing, all (new) contributors are asked to sign the Typesafe CLA (http://www.typesafe.com/contribute/cla), before we can merge their PR.

Looking forward to your PR! :)

-- Mirco

sschaef

unread,
Jul 28, 2012, 8:11:29 PM7/28/12
to scala-...@googlegroups.com
I found another test case which fails:

package test1

trait Trait/*ref*/

class Ref {
  def meth(t: Trait) = t
}

java.lang.AssertionError: expected:<TestResult(Clazz(test1.Trait),Set(Method(test1.Ref.meth(test1.Trait))))> but was:<TestResult(Clazz(test1.Trait),Set(Method(test1.Ref.Ref())))>

Test case: https://github.com/sschaef/scala-ide/commit/a40935623c11f42429c17d629ce64e48eadb9688

I tried to solve it, but give it up after some hours of debugging time noticing that I do not understand how the hell changes are handled in the underlying system. There are plenty methods not returning anything but continuously producing side effects ... what is going on there? Can someone tell me how to detect a control flow there (in the classes of scala.tools.eclipse.javaelements)?


(The following is what I think I understood):

It seems that the reference to trait `Trait` is handled in method `Ref.meth` in `ScalaMatchLocator.reportTypeReference` (https://github.com/scala-ide/scala-ide/blob/master/org.scala-ide.sdt.core/src/scala/tools/eclipse/javaelements/ScalaMatchLocator.scala#L354). It is one of the many methods starting with `report` and producing heavily side effects. For me they represent a impenetrable network of method calls.

I would be very happy retrieving explanations of what's going on there.

-- Simon

Mirco Dotta

unread,
Aug 2, 2012, 4:50:30 PM8/2/12
to scala-...@googlegroups.com
On Jul 29, 2012, at 2:11 AM, sschaef wrote:

I found another test case which fails:

package test1

trait Trait/*ref*/

class Ref {
  def meth(t: Trait) = t
}

java.lang.AssertionError: expected:<TestResult(Clazz(test1.Trait),Set(Method(test1.Ref.meth(test1.Trait))))> but was:<TestResult(Clazz(test1.Trait),Set(Method(test1.Ref.Ref())))>

Test case: https://github.com/sschaef/scala-ide/commit/a40935623c11f42429c17d629ce64e48eadb9688

I tried to solve it, but give it up after some hours of debugging time noticing that I do not understand how the hell changes are handled in the underlying system. There are plenty methods not returning anything but continuously producing side effects ... what is going on there? Can someone tell me how to detect a control flow there (in the classes of scala.tools.eclipse.javaelements)?

At a high level, here is what happens when you right click on an identifier in a Scala editor, and then select References > Project: 

1) `ScalaCompilationUnit.codeSelect` (https://github.com/scala-ide/scala-ide/blob/master/org.scala-ide.sdt.core/src/scala/tools/eclipse/javaelements/ScalaCompilationUnit.scala#L179) is called. This method is responsible of locating the code element (i.e., one of the subclasses of  `SourceRefElement`, which I mentioned in one of the previous emails) at the selected position where the search action has been triggered. Basically, it's a function Position => IJavaElement, with the following high-level steps:

    * Retrieve the Scala AST Tree node for the passed Position
    * Take the Tree's symbol
    * Call  `ScalaJavaMapper.getJavaElement` to convert the Symbol into a IJavaElement: https://github.com/scala-ide/scala-ide/blob/master/org.scala-ide.sdt.core/src/scala/tools/eclipse/javaelements/ScalaJavaMapper.scala#L25

If a code element cannot be found (i.e., the result of  `ScalaCompilationUnit.codeSelect` is an empty array), it usually means that there is a bug in the `ScalaIndexBuilder` (https://github.com/scala-ide/scala-ide/blob/master/org.scala-ide.sdt.core/src/scala/tools/eclipse/javaelements/ScalaIndexBuilder.scala), i.e., the indexer didn't correctly categorized the selected code element. 

(I'm mentioning this for giving you some more context, but I don't think the indexer is to blame for your failing test)

2) The `ScalaMatchLocator` (https://github.com/scala-ide/scala-ide/blob/master/org.scala-ide.sdt.core/src/scala/tools/eclipse/javaelements/ScalaMatchLocator.scala) is the component responsible of reporting the references (or declarations) that are matches for the search that is being executed.

In your failing test, the reference match is found, but it is associated with the wrong declaration (the Ref's constructor is reported instead of the method Ref.meth). That means that the current `enclosingDeclaration` (https://github.com/scala-ide/scala-ide/blob/master/org.scala-ide.sdt.core/src/scala/tools/eclipse/javaelements/ScalaMatchLocator.scala#L89) was not correctly updated.

What I think is happening is that `report(tree)` (where in your specific case the Tree is a DefDef) is called *before* updating the `enclosingDeclaration`. I believe that if you surround the following block (https://github.com/scala-ide/scala-ide/blob/master/org.scala-ide.sdt.core/src/scala/tools/eclipse/javaelements/ScalaMatchLocator.scala#L291) with a atOwner(tree.symbol) { ... }, the `enclosingDeclaration` should be correctly updated and your test will hopefully succeed.

If that works, and all tests pass, this could be an ok fix for the moment. But, I think that it would be even better if we could refactor and extract a proper TreeTraverser class whose responsibility would be to correctly update the `enclosingDeclaration`. The problem is that right now I can't spend any time on improving find references :( I hate this, because you have been really doing a wonderful job (man, you learn fast!).

If you want to keep working on this, I'll do my very best to answer your questions, but I can't promise I'll be always responsive. Alternatively, you could work on something different for a while (I'm sure we can find something a bit more self-contained that you'd be interested in contributing. And, maybe, you already have some idea) and, once I am back working on find references, we could continue to collaborate (I'd be glad of keep working together on this). 
I'm really ok with both options, my main concern is making sure you don't get frustrated by the lack of feedback, or the daunting codebase, or both :)

(The following is what I think I understood):

It seems that the reference to trait `Trait` is handled in method `Ref.meth` in `ScalaMatchLocator.reportTypeReference` (https://github.com/scala-ide/scala-ide/blob/master/org.scala-ide.sdt.core/src/scala/tools/eclipse/javaelements/ScalaMatchLocator.scala#L354). It is one of the many methods starting with `report` and producing heavily side effects. For me they represent a impenetrable network of method calls.

I would be very happy retrieving explanations of what's going on there.

I hope my above explanations will help you get a better picture of what is going on. I am very aware that this part of the codebase is quite intimidating.

sschaef

unread,
Aug 3, 2012, 5:21:55 AM8/3/12
to scala-...@googlegroups.com
I don't know how important it is to understand how the classes in javaelements (or the part which is used by the find reference feature) works. I noticed that this package is one of the most complex parts of the complete IDE (measured in lines of code). Do other parts of the IDE build upon this or is it a more separated part of the IDE?

Mirco Dotta

unread,
Aug 3, 2012, 5:29:14 AM8/3/12
to scala-...@googlegroups.com
I don't know how important it is to understand how the classes in javaelements (or the part which is used by the find reference feature) works. I noticed that this package is one of the most complex parts of the complete IDE (measured in lines of code).

It is indeed complex (also in terms of interaction between the different components).

Do other parts of the IDE build upon this or is it a more separated part of the IDE?

Absolutely not. Do you have any idea on what you'd like to work on? If you have a small selection of tickets that you consider interesting, I could sort them according to their complexity (well, maybe it's better to say the perceived complexity :)).

sschaef

unread,
Aug 3, 2012, 7:53:35 AM8/3/12
to scala-...@googlegroups.com

On 08/03/2012 11:29 AM, Mirco Dotta wrote:
I don't know how important it is to understand how the classes in javaelements (or the part which is used by the find reference feature) works. I noticed that this package is one of the most complex parts of the complete IDE (measured in lines of code).

It is indeed complex (also in terms of interaction between the different components).

Do other parts of the IDE build upon this or is it a more separated part of the IDE?

Absolutely not. Do you have any idea on what you'd like to work on?
No, I have absolutely not. But this is good - it makes it more fascinating for me to work on. ;)

If you have a small selection of tickets that you consider interesting, I could sort them according to their complexity (well, maybe it's better to say the perceived complexity :)).

Mirco Dotta

unread,
Aug 4, 2012, 5:26:04 AM8/4/12
to scala-...@googlegroups.com
On Aug 3, 2012, at 1:53 PM, sschaef wrote:


On 08/03/2012 11:29 AM, Mirco Dotta wrote:
I don't know how important it is to understand how the classes in javaelements (or the part which is used by the find reference feature) works. I noticed that this package is one of the most complex parts of the complete IDE (measured in lines of code).

It is indeed complex (also in terms of interaction between the different components).

Do other parts of the IDE build upon this or is it a more separated part of the IDE?

Absolutely not. Do you have any idea on what you'd like to work on?
No, I have absolutely not. But this is good - it makes it more fascinating for me to work on. ;)
If you have a small selection of tickets that you consider interesting, I could sort them according to their complexity (well, maybe it's better to say the perceived complexity :)).
Ok, some things bothered me with the current code completion and semantic highlighting.

Semantic Highlighting is a relatively small module (for sure compared to the JDT search engine). 
However, it needs to interact with the Scala Presentation Compiler and it relies heavily on compilers 
data-structures (symbols, tree and types). So, I'm sure you'll have some fun, and some interesting 
challenges ;-)

The most important thing to keep in mind is that all compiler's data-structures are *not* thread-safe 
and hence can't in general be accessed outside of the `PresentationCompilerThread` (this strategy 
of ensuring thread-safey is known as "thread confinement"). So, every time you see a `ask` or 
`askOption`, the enclosed block is executed within the `PresentationCompilerThread`.




From the ticket description, this looks like a syntax highlighting issue, and not a semantic one (because while is a keyword). This could be a easy one to fix, but I can't tell for sure :)


I like this one, the only difficulty will be to find a way to correctly categorize extractors (I don't think there is a symbol or a flag for them).


I'm not sure if this can be done with the current infrastructure. It should be checked (if you want I can have a look and let you know).


Hopefully this can be fixed without too many changes, but I can't say for sure. You'll have to experiment.
I have to run now, I'll have a look at those tomorrow or Monday ;-)

Mirco Dotta

unread,
Aug 4, 2012, 12:53:28 PM8/4/12
to scala-...@googlegroups.com
For code completion I had a lot of ideas but it seems there are no easy to fix tickets:

Admittedly, completion is trickier. The reason is that it's sometimes not easy to tell if a bug/functionality should be implemented in the presentation compiler side, or in the IDE.

Completion happening on Scala files is provided by the `ScalaCompletions`


If you want to understand how completion works, my best suggestion is to create some small example, put breakpoints in `ScalaCompletions`, and step through the code.


I would consider this a good ticket for starting. I'm sure there will be challenges, but I think you will be able to work it out.


This one is interesting, but difficult. I wouldn't recommend to look at this as a first ticket to fix for completion ;-)


This is really nice, and I think it can be done on the IDE side. I'm all for it, but I'd like to hear what the rest of the community thinks. Maybe, before implementing it, it would be better to discuss it in a new thread.

One important requirement is that after completion the arguments are automatically selected one after the other (by pressing tab), so that they can be renamed. Plus, I think this should also be exposed as a Quick Fix.

Looking forward to your contributions! :-) 

-- Mirco

P.S. Before starting to work on a ticket, please assign the ticket to you, so that we avoid duplication of effort ;-)

Mirco Dotta

unread,
Aug 4, 2012, 12:59:59 PM8/4/12
to scala-...@googlegroups.com

sschaef

unread,
Aug 4, 2012, 1:49:09 PM8/4/12
to scala-...@googlegroups.com
Thanks for all, Mirco. I'll start working on semantic highlighting which looks easier to start with than code completion.
Stay tuned and look forward to my questions, they will come for sure. ;)

-- Simon

Mirco Dotta

unread,
Aug 4, 2012, 4:30:20 PM8/4/12
to scala-...@googlegroups.com
Thanks for all, Mirco. I'll start working on semantic highlighting which looks easier to start with than code completion.

Great!


Stay tuned and look forward to my questions, they will come for sure. ;)

Can't wait for them :-)

Have fun!
Reply all
Reply to author
Forward
0 new messages