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
Comments
Imported From: https://issues.scala-lang.org/browse/SI-1106?orig=1 |
@dubochet said: 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. |
@milessabin said: I'd suggest closing this as wontfix if you don't care about supporting compiler builds under Windows. |
@phaller said: |
Geoffrey Alan Washburn (washburn) said: |
use_ssl said: 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 |
@cunei said: |
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.
[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
The text was updated successfully, but these errors were encountered: