Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors running scala-plugin Ant script under Windows Vista #1106

Closed
scabug opened this issue Jul 11, 2008 · 7 comments
Closed

Errors running scala-plugin Ant script under Windows Vista #1106

scabug opened this issue Jul 11, 2008 · 7 comments
Labels
Milestone

Comments

@scabug
Copy link

scabug commented Jul 11, 2008

  1. When I run scala-plugin/build.xml target "devel.prep":

Line 870 of build.xml in the Scala project...

... fails with an IOException about being unable to delete files. Restarting/retry repeatedly didnt help. From googling, apparently, its a weakness in Sun's Windows JVM. Workaround: Commented the line out.

  1. When running scala-plugin "devel.dist" target, I noticed that many tests under the partest task fail like this:

[partest] Compiling and running files
[partest] testing: [...]\files\run\retsynch.scala [FAILED]
[partest] java.lang.NoClassDefFoundError: Files\Java\jre1/6/0\bin\java
[partest] Exception in thread "main"
[partest] testing: [...]\files\jvm5\annotations.scala [FAILED]
[partest] java.lang.NoClassDefFoundError: Files\Java\jre1/6/0\bin\java
[partest] Exception in thread "main"
[partest] testing: [...]\files\run\bug429.scala [FAILED]
[partest] java.lang.NoClassDefFoundError: Files\Java\jre1/6/0\bin\java
[partest] Exception in thread "main"

Thats part of the path to JAVA_HOME (in default Windows location), ie its seems to be a "whitespace in path" problem somewhere.

OS: Windows Vista
Scala version: trunk as of 9th July 08

@scabug
Copy link
Author

scabug commented Jul 11, 2008

@scabug
Copy link
Author

scabug commented Jul 15, 2008

@dubochet said:
We have had many problems with white-space in paths underWwindows. Is the first problem you mention also happening when the location of the Scala check-out does not contain white-spaces?

I think the Scala team will not support building under Windows when the path contains white-spaces. I am not even sure we ever did completely. On the other hand, contributions are, as always, welcome.

@scabug
Copy link
Author

scabug commented Aug 5, 2008

@milessabin said:
Sorry to play ping pong with this. This ticket has nothing to do with the Eclipse plugin specifically, the reporter is actually seeing the a failure of the dist target of scala/build.xml on Windows where there is whitespace in paths.

I'd suggest closing this as wontfix if you don't care about supporting compiler builds under Windows.

@scabug
Copy link
Author

scabug commented Aug 5, 2008

@phaller said:
I see. Sorry, I was too quick in reassigning it when I read "plugin". You're right: we don't support whitespace in paths on Windows. However, with proper paths, building should work under Windows.

@scabug
Copy link
Author

scabug commented Aug 5, 2008

Geoffrey Alan Washburn (washburn) said:
Reopen if you still have problems after fixing your paths.

@scabug
Copy link
Author

scabug commented Oct 11, 2008

use_ssl said:
I'm having similar problems, but my paths don't contain any spaces. I am using ant 1.7.0 though Eclipse. Full disclosure: I'm not actually running the "classic" distribution of Eclipse (instead I'm running a rather stock J2SE distribution), but I'm pretty sure that's not the cause of this problem. Here's a dump of my build log.

Buildfile: C:\Users\dan\workspace\scala-plugin\build.xml
devel.prep:
init:
     [echo] Build number is '2.7.2.r16244-b20081010230141'
     [echo] Built 10 October 2008, 23:01:41 from revision 16244 with Java HotSpot(TM) Client VM 1.6.0_07
locker.start:
locker.pre-lib:
locker.lib:
    [mkdir] Created dir: C:\Users\dan\workspace\scala\build\locker\classes\library
    [javac] Compiling 12 source files to C:\Users\dan\workspace\scala\build\locker\classes\library
[scalacfork] Compiling 1 file to C:\Users\dan\workspace\scala\build\locker\classes\library
[scalacfork] warning: there were deprecation warnings; re-run with -deprecation for details
[scalacfork] one warning found
[scalacfork] Compiling 337 files to C:\Users\dan\workspace\scala\build\locker\classes\library
[scalacfork] warning: there were deprecation warnings; re-run with -deprecation for details
[scalacfork] one warning found
[propertyfile] Creating new property file: C:\Users\dan\workspace\scala\build\locker\classes\library\library.properties
[stopwatch] [locker.lib.timer: 1:08.462 sec]
locker.pre-comp:
locker.comp:
    [mkdir] Created dir: C:\Users\dan\workspace\scala\build\locker\classes\compiler
[scalacfork] Compiling 207 files to C:\Users\dan\workspace\scala\build\locker\classes\compiler
[propertyfile] Creating new property file: C:\Users\dan\workspace\scala\build\locker\classes\compiler\compiler.properties
     [copy] Copying 6 files to C:\Users\dan\workspace\scala\build\locker\classes\compiler
[stopwatch] [locker.comp.timer: 1:44.145 sec]
locker.done:
quick.start:
quick.pre-lib:
quick.lib:
    [mkdir] Created dir: C:\Users\dan\workspace\scala\build\quick\classes\library
    [javac] Compiling 12 source files to C:\Users\dan\workspace\scala\build\quick\classes\library
    [javac] Compiling 6 source files to C:\Users\dan\workspace\scala\build\quick\classes\library
[scalacfork] Compiling 1 file to C:\Users\dan\workspace\scala\build\quick\classes\library
[scalacfork] warning: there were deprecation warnings; re-run with -deprecation for details
[scalacfork] one warning found
[scalacfork] Compiling 337 files to C:\Users\dan\workspace\scala\build\quick\classes\library
[scalacfork] warning: there were deprecation warnings; re-run with -deprecation for details
[scalacfork] one warning found
[scalacfork] Compiling 23 files to C:\Users\dan\workspace\scala\build\quick\classes\library
[scalacfork] Compiling 65 files to C:\Users\dan\workspace\scala\build\quick\classes\library
[scalacfork] Compiling 94 files to C:\Users\dan\workspace\scala\build\quick\classes\library
[propertyfile] Creating new property file: C:\Users\dan\workspace\scala\build\quick\classes\library\library.properties
[stopwatch] [quick.lib.timer: 1:43.722 sec]
quick.pre-comp:
quick.comp:
    [mkdir] Created dir: C:\Users\dan\workspace\scala\build\quick\classes\compiler
[scalacfork] Compiling 207 files to C:\Users\dan\workspace\scala\build\quick\classes\compiler
[propertyfile] Creating new property file: C:\Users\dan\workspace\scala\build\quick\classes\compiler\compiler.properties
     [copy] Copying 6 files to C:\Users\dan\workspace\scala\build\quick\classes\compiler
[stopwatch] [quick.comp.timer: 1:44.524 sec]
quick.pre-partest:
quick.partest:
    [mkdir] Created dir: C:\Users\dan\workspace\scala\build\quick\classes\partest
    [javac] Compiling 2 source files to C:\Users\dan\workspace\scala\build\quick\classes\partest
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
[scalacfork] Compiling 16 files to C:\Users\dan\workspace\scala\build\quick\classes\partest
     [copy] Copying 1 file to C:\Users\dan\workspace\scala\build\quick\classes\partest
[stopwatch] [quick.partest.timer: 9.425 sec]
quick.pre-bin:
quick.bin:
    [mkdir] Created dir: C:\Users\dan\workspace\scala\build\quick\bin
quick.done:
pack.start:
pack.pre-lib:
pack.lib:
    [mkdir] Created dir: C:\Users\dan\workspace\scala\build\pack\lib
      [jar] Building jar: C:\Users\dan\workspace\scala\build\pack\lib\scala-library.jar
      [jar] Building jar: C:\Users\dan\workspace\scala\build\pack\lib\scala-dbc.jar
      [jar] Building jar: C:\Users\dan\workspace\scala\build\pack\lib\scala-swing.jar
pack.pre-comp:
pack.comp:
    [mkdir] Created dir: C:\Users\dan\workspace\scala\build\pack\META-INF
     [copy] Copying 1 file to C:\Users\dan\workspace\scala\build\pack\META-INF
      [jar] Building jar: C:\Users\dan\workspace\scala\build\pack\lib\scala-compiler.jar
pack.pre-partest:
pack.partest:
      [jar] Building jar: C:\Users\dan\workspace\scala\build\pack\lib\scala-partest.jar
pack.pre-bin:
pack.bin:
    [mkdir] Created dir: C:\Users\dan\workspace\scala\build\pack\bin
pack.done:
docs.start:
docs.pre-lib:
docs.lib:
    [mkdir] Created dir: C:\Users\dan\workspace\scala\build\scaladoc\library
 [scaladoc] Documenting 23 source files to C:\Users\dan\workspace\scala\build\scaladoc\library
 [scaladoc] Documenting 440 source files to C:\Users\dan\workspace\scala\build\scaladoc\library
 [scaladoc] warning: there were deprecation warnings; re-run with -deprecation for details
 [scaladoc] Document succeeded with 1 warning; see the documenter output for details.
 [scaladoc] one warning found
[stopwatch] [docs.lib.timer: 29.877 sec]
docs.pre-man:
docs.manmaker:
    [mkdir] Created dir: C:\Users\dan\workspace\scala\build\manmaker\classes
   [scalac] Compiling 10 source files to C:\Users\dan\workspace\scala\build\manmaker\classes
docs.man:
    [mkdir] Created dir: C:\Users\dan\workspace\scala\build\scaladoc\manual\man\man1
    [mkdir] Created dir: C:\Users\dan\workspace\scala\build\scaladoc\manual\html

BUILD FAILED
C:\Users\dan\workspace\scala-plugin\build.xml:99: The following error occurred while executing this line:
C:\Users\dan\workspace\scala\build.xml:939: java.io.IOException: Failed to delete 
    C:\Users\dan\workspace\scala\build\scaladoc\manual\man\man1\sbaz.1 
    while trying to rename C:\Users\dan\AppData\Local\Temp\fixcrlf1270141301

Total time: 7 minutes 13 seconds

@scabug
Copy link
Author

scabug commented Oct 11, 2008

@cunei said:
Fixed by Stephane Micheloud

@scabug scabug closed this as completed May 18, 2011
@scabug scabug added the build label Apr 6, 2017
@scabug scabug added this to the 2.7.3 milestone Apr 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant