test failures

12 views
Skip to first unread message

Rafał Krzewski

unread,
Dec 12, 2012, 3:05:30 PM12/12/12
to scala-...@googlegroups.com
Hi, I'm trying to build scala-ide locally and I'm getting test failures in org.scala-ide.sdt.core.tests:

Results :

Tests in error: 
  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`

Tests run: 293, Failures: 0, Errors: 2, Skipped: 33

java.lang.IllegalArgumentException: Don't know how to convert element `layout` of type `class org.eclipse.jdt.internal.core.ResolvedBinaryMethod`
        at scala.tools.eclipse.findreferences.FindReferencesTests.scala$tools$eclipse$findreferences$FindReferencesTests$$jdtElement2testElement(FindReferencesTests.scala:134)
        at scala.tools.eclipse.findreferences.FindReferencesTests$$anonfun$1.apply(FindReferencesTests.scala:117)
        at scala.tools.eclipse.findreferences.FindReferencesTests$$anonfun$1.apply(FindReferencesTests.scala:117)
        at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
        at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
        at scala.collection.immutable.List.foreach(List.scala:309)
        at scala.collection.TraversableLike$class.map(TraversableLike.scala:244)
        at scala.collection.AbstractTraversable.map(Traversable.scala:105)
        at scala.tools.eclipse.findreferences.FindReferencesTests.runTest(FindReferencesTests.scala:117)
        at scala.tools.eclipse.findreferences.FindReferencesTests.runTest(FindReferencesTests.scala:75)
        at scala.tools.eclipse.findreferences.FindReferencesTests.findReferencesInConstructorSuperCall(FindReferencesTests.scala:210)

I'm getting this consistently on master and platform/juno in default profile and in scala-2.10.x

I'm on Linux x86_64, JDK 1.6.0_37-b06 (I've also tried JDK 7 but got a bunch more failures), Maven 3.0.4. 

Do these failures seem familiar? I'd be happy to dig around to fix it if necessary but need some directions :)

Cheers,
Rafał

Mirco Dotta

unread,
Dec 12, 2012, 3:20:55 PM12/12/12
to scala-...@googlegroups.com
Hi Rafal,

Yes, this is a known problem when building the IDE under Linux. Although not ideal, you can get past this problem by either

* adding an @Ignore for the two failing test, or 
* by simply skipping running tests altogether, i.e., just pass -Dmaven.test.skip=true when building


Cheers,
  Mirco

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








Luc Bourlier

unread,
Dec 12, 2012, 3:51:22 PM12/12/12
to scala-...@googlegroups.com
Mirco and I spent some time looking at the problem (I was also seeing it on Linux). In a nutshell, the test was polluted by inaccurate results only visible on Linux. I'll make a pull request which change the test so it tests only what it is supposed to check, and create a ticket for the 'inaccurate' problem.

For now, add @Ignore for those 2 tests, the fix should appear shortly.

Thanks for pointing to this problem, I was getting a bit too used of working around it,
Luc
Reply all
Reply to author
Forward
0 new messages