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
Storing asked parameters fail if value is GString #135
Comments
Thanks for the report. Will look into it at some point. |
Hackergarten at GGX sounds like a good opportunity to me 😉 |
Hmmm...this is definitely a weak area. The So there are two options here:
Option 1 is a breaking change, but a necessary one I feel. I'll put it into version 0.9. |
Fixes issue #135. Both incoming values (from the user at the command line) and outgoing values (in the saved parent parameters) are based on strings, so the `ask()` method now requires its default values to be strings as well. This means that the template developer needs to manage any necessary conversions to other types.
Need to report this as a breaking change in the release notes as I want with option 1. |
When using the built-in
ask()
method template developers have to explicitly convert any values from GString to String otherwise the following error appears on screen (using --stacktrace)Problem is that parameters are stored as is using a Properties object. Workaround is to explicitly invoke
.toString()
on values such asIt would be better if the Lazybones runtime performed this conversion internally.
The text was updated successfully, but these errors were encountered: