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

regression: -nobootcp is ignored #9833

Closed
scabug opened this issue Jun 27, 2016 · 7 comments
Closed

regression: -nobootcp is ignored #9833

scabug opened this issue Jun 27, 2016 · 7 comments
Assignees
Labels
Milestone

Comments

@scabug
Copy link

scabug commented Jun 27, 2016

[There is no issue category for the command line scripts?]

Somewhere between 2.10.6 and 2.11.8, -nobootcp started being ignored. That's a shame, it's the only way to use the runner sometimes. It's still advertised in scala -help.

% scala210 -debug -nobootcp
java
-Xmx256M
-Xms32M
-classpath
/p/inst/scala-2.10.6/lib/akka-actors.jar:/p/inst/scala-2.10.6/lib/jline.jar:/p/inst/scala-2.10.6/lib/scala-actors-migration.jar:/p/inst/scala-2.10.6/lib/scala-actors.jar:/p/inst/scala-2.10.6/lib/scala-compiler.jar:/p/inst/scala-2.10.6/lib/scala-library.jar:/p/inst/scala-2.10.6/lib/scala-reflect.jar:/p/inst/scala-2.10.6/lib/scala-swing.jar:/p/inst/scala-2.10.6/lib/scalap.jar:/p/inst/scala-2.10.6/lib/typesafe-config.jar
...

vs.

% scala211 -debug -nobootcp
java
-Xmx256M
-Xms32M
-Xbootclasspath/a:/usr/local/Cellar/scala/2.11.8/libexec/lib/akka-actor_2.11-2.3.10.jar:/usr/local/Cellar/scala/2.11.8/libexec/lib/config-1.2.1.jar:/usr/local/Cellar/scala/2.11.8/libexec/lib/jline-2.12.1.jar:/usr/local/Cellar/scala/2.11.8/libexec/lib/scala-actors-2.11.0.jar:/usr/local/Cellar/scala/2.11.8/libexec/lib/scala-actors-migration_2.11-1.1.0.jar:/usr/local/Cellar/scala/2.11.8/libexec/lib/scala-compiler.jar:/usr/local/Cellar/scala/2.11.8/libexec/lib/scala-continuations-library_2.11-1.0.2.jar:/usr/local/Cellar/scala/2.11.8/libexec/lib/scala-continuations-plugin_2.11.8-1.0.2.jar:/usr/local/Cellar/scala/2.11.8/libexec/lib/scala-library.jar:/usr/local/Cellar/scala/2.11.8/libexec/lib/scala-parser-combinators_2.11-1.0.4.jar:/usr/local/Cellar/scala/2.11.8/libexec/lib/scala-reflect.jar:/usr/local/Cellar/scala/2.11.8/libexec/lib/scala-swing_2.11-1.0.2.jar:/usr/local/Cellar/scala/2.11.8/libexec/lib/scala-xml_2.11-1.0.4.jar:/usr/local/Cellar/scala/2.11.8/libexec/lib/scalap-2.11.8.jar
-classpath
""
...
@scabug
Copy link
Author

scabug commented Jun 27, 2016

Imported From: https://issues.scala-lang.org/browse/SI-9833?orig=1
Reporter: @paulp
Affected Versions: 2.11.8, 2.12.0-M4

@scabug
Copy link
Author

scabug commented Aug 11, 2016

@SethTisue said:
the "low hanging fruit" is, of course, just to remove the flag and update the documentation

@scabug
Copy link
Author

scabug commented Aug 11, 2016

@paulp said:
It is also low hanging fruit to fix it.

@scabug
Copy link
Author

scabug commented Aug 11, 2016

@SethTisue said:
good to know, perhaps I'll take a stab at it

@scabug
Copy link
Author

scabug commented Aug 11, 2016

@paulp said (edited on Aug 11, 2016 9:20:33 PM UTC):
It's easy to see where it was broken:

if [[ -z "$cygwin$mingw$msys" ]]; then
  usebootcp="true"
fi

Which stomps on any usage of the option.

@scabug
Copy link
Author

scabug commented Aug 11, 2016

@paulp said:
The commit which broke it is 32c422a518, which moves the command line option processing earlier in the script.

@scabug
Copy link
Author

scabug commented Nov 30, 2016

@lrytz said:
scala/scala#5385

@scabug scabug closed this as completed Dec 2, 2016
@scabug scabug added this to the 2.12.1 milestone Apr 7, 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

2 participants