You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Scala compiler version 3.0.0-RC2-bin-SNAPSHOT-git-4bfa802 -- Copyright 2002-2021, LAMP/EPFL
Minimized code
The following command line demonstrates the problem. It should execute script1.sc and pass the remaining arguments to script1.sc, but instead it executes script2.sc:
scalac -script script1.sc -script script2.sc
The bug manifests itself if the target_script also uses -script or -repl arguments, etc.
The problem is hidden as long as script2.sc never is passed any arguments that can be consumed by dist/bin/scalac.
Output
The command line executes script2.sc rather than script1.sc.
Expectation
The command line should execute script1.sc instead of script2.sc.
A simple fix is for all remaining arguments to be consumed as soon as in_scripting_args is set.
Compiler version
Scala compiler version 3.0.0-RC2-bin-SNAPSHOT-git-4bfa802 -- Copyright 2002-2021, LAMP/EPFL
Minimized code
The following command line demonstrates the problem. It should execute script1.sc and pass the remaining arguments to script1.sc, but instead it executes script2.sc:
The bug manifests itself if the
target_script
also uses-script
or-repl
arguments, etc.The problem is hidden as long as
script2.sc
never is passed any arguments that can be consumed by dist/bin/scalac.Output
The command line executes script2.sc rather than script1.sc.
Expectation
The command line should execute script1.sc instead of script2.sc.
A simple fix is for all remaining arguments to be consumed as soon as
in_scripting_args
is set.We should also remove
in_scripting_args
as it's not needed.The text was updated successfully, but these errors were encountered: