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
Command does work on Linux, tested on WSL (Ubuntu).
expectation
sbt project should be created from the template successfully with arguments passed to the template.
notes
After experimenting with variations of command, one version I found to work was sbt new foundweekends/giter8.g8 "--name=example.g8 " "--giter8_version=0.16.2 " "--sbt_version=1.9.9 " - arguments must be enclosed in quotes and must be terminated by a space.
One strange variation was that enclosing all arguments in quotes - sbt new foundweekends/giter8.g8 "--name=example.g8 --giter8_version=0.16.2 --sbt_version=1.9.9" - created the sbt project, but with only the name argument set to example.g8 --giter8_version=0.16.2 --sbt_version=1.9.9, meaning that sbt project's directory would end up containing the remaining part of argument string.
This does not seem intentional, likely a bug in parser module.
The text was updated successfully, but these errors were encountered:
So apparently = is a default delimiter in batch scripts, workarounds for this issue seem to be present for certain types of arguments in launcher script already.
I am starting to think that it would be better to just start out fresh with a v2 cross-platform launcher script/app instead of keeping on patching these issues separately. Similar to how in g8 project the launcher script is just a Java app.
steps
Replicated on sbt 1.9.9, running Windows Terminal (PowerShell).
sbt new foundweekends/giter8.g8 --name=example.g8 --giter8_version=0.16.2 --sbt_version=1.9.9
problem
Command does not run successfully, error is throw:
Command does work on Linux, tested on WSL (Ubuntu).
expectation
sbt project should be created from the template successfully with arguments passed to the template.
notes
After experimenting with variations of command, one version I found to work was
sbt new foundweekends/giter8.g8 "--name=example.g8 " "--giter8_version=0.16.2 " "--sbt_version=1.9.9 "
- arguments must be enclosed in quotes and must be terminated by a space.One strange variation was that enclosing all arguments in quotes -
sbt new foundweekends/giter8.g8 "--name=example.g8 --giter8_version=0.16.2 --sbt_version=1.9.9"
- created the sbt project, but with only thename
argument set toexample.g8 --giter8_version=0.16.2 --sbt_version=1.9.9
, meaning that sbt project's directory would end up containing the remaining part of argument string.This does not seem intentional, likely a bug in parser module.
The text was updated successfully, but these errors were encountered: