Re: [scala-ide-dev] FileNotFoundException in tests on Windows

41 views
Skip to first unread message

iulian dragos

unread,
Sep 11, 2012, 4:23:46 AM9/11/12
to scala-...@googlegroups.com
Hi Oleg!

Unfortunately, tests don't pass on Windows. We couldn't find exactly why, unfortunately. Most of the committers use Linux or Mac OS, and couldn't track down the cause. You seem to have gone some way into identifying the issue, we'd be very happy to include a patch if you can make it work! :-)

iulian

On Fri, Sep 7, 2012 at 8:08 PM, Oleg Galako <ojo...@gmail.com> wrote:
Hi all!

I've managed to build the Scala IDE project (without tests in 'org.scala-ide.sdt.build', using -Dmaven.test.skip) and import it in Eclipse without errors on Windows7. 

'mvn clean install' in both parent and toolchain projects succeeds, but fails during tests in the 'org.scala-ide.sdt.build' dir.

The problem is this exception:
java.io.FileNotFoundException: D:\Home\Oleg\scala-ide\org.scala-ide.sdt.core.tests\target\work\configuration\org.eclipse.osgi\bundles\77\1\.cp\lib (Access is denied)
    at java.util.zip.ZipFile.open(Native Method)
    at java.util.zip.ZipFile.<init>(ZipFile.java:127)
    at java.util.jar.JarFile.<init>(JarFile.java:135)
    at java.util.jar.JarFile.<init>(JarFile.java:99)
    at scala.tools.nsc.plugins.Plugin$.scala$tools$nsc$plugins$Plugin$$loadDescription(Plugin.scala:86)
    at scala.tools.nsc.plugins.Plugin$.loadFrom(Plugin.scala:113)
    at scala.tools.nsc.plugins.Plugin$$anonfun$loadAllFrom$1.apply(Plugin.scala:144)

As i understand it comes because of this option:
2012-09-08 00:26:50,529 DEBUG [main] - ScalaProject - [scalajavadep] initializing -Xplugin to List(D:\Home\Oleg\scala-ide\org.scala-ide.sdt.core.tests\target\work\configuration\org.eclipse.osgi\bundles\77\1\.cp\lib)

The path points to a directory with the following files:
continuations.jar
scala-compiler.jar
scala-compiler-src.jar

Reducing this to simply running scalac -Xplugin:a_directory Test.scala leads to the same exception.

Earlier the path is used for another option:
2012-09-08 00:26:29,968 DEBUG [Java indexing] - ScalaProject - [classpath] initializing -Xpluginsdir to D:\Home\Oleg\scala-ide\org.scala-ide.sdt.core.tests\target\work\configuration\org.eclipse.osgi\bundles\77\1\.cp\lib

Maven summary:
Tests run: 288, Failures: 145, Errors: 38, Skipped: 20

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] org.scala-ide.sdt.build ........................... SUCCESS [0.770s]
[INFO] org.scala-ide.sdt.aspects ......................... SUCCESS [4.806s]
[INFO] org.scala-ide.sdt.core ............................ SUCCESS [31.932s]
[INFO] org.scala-ide.sdt.core.tests ...................... FAILURE [1:00.775s]
[INFO] org.scala-ide.sdt.debug ........................... SKIPPED
[INFO] org.scala-ide.sdt.debug.tests ..................... SKIPPED
[INFO] org.scala-ide.sdt.weaving.feature ................. SKIPPED
[INFO] org.scala-ide.sdt.feature ......................... SKIPPED
[INFO] org.scala-ide.sdt.dev.feature ..................... SKIPPED
[INFO] org.scala-ide.sdt.source.feature .................. SKIPPED
[INFO] org.scala-ide.sdt.update-site ..................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------


Any ideas on what can be done with this?



--
« Je déteste la montagne, ça cache le paysage »
Alphonse Allais
Reply all
Reply to author
Forward
0 new messages