-
Notifications
You must be signed in to change notification settings - Fork 10
String parameters being stripped of quotes #206
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
Comments
I got an email back from Christina:
|
Unfortunately, I think this is more of a "gotcha" than a bug. At the end of the day, we can't know whether you intended the value to be a string or not, because there are two "stringish" values going into submit: tokens or references to other values like In a normal submit file, if you would write
then for HTMap you need
The general rule is something like
... which is unpleasant, but I haven't thought of anything cleverer to do here. At the minimum, we need a note in the |
Ah. It looks like one can also specify Could |
@JoshKarpel - in the submit file language, attributes not starting with Why not do the standard type conversion for
This makes the expected things easy (strings become strings) but keeps hard things hard (arbitrary expressions require you to dig out the underlying library). |
I suspect that the internal implementation of this is largely a historical artifact (I don't recall thinking about it much at the time). There's certainly a place in the code to hang that kind of conversion. However, I don't think that round-tripping through an ad will work as desired in all cases. The one that comes to mind is when you want to use a submit macro in a custom attribute. Example:
which would cause the resulting value in the job ad to be a string instead of an integer. From a usability perspective, an annoying-but-straightforward rule like the one in my comment above should also make it clear how to translate instructions for what to put it in a submit file into what to put in your |
👍
I also think the solution with clear documentation is best. |
Resolved by #196 |
Describe the bug
I am using these options to launch jobs:
I am running this on CHTC's pool at UW–Madison. When I run this job, I get this error:
This bug report codifies some external discussion in office hours and via email
To Reproduce
(to be added if desired)
Expected behavior
I do not expect that error.
Software Versions:
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: