-
-
Notifications
You must be signed in to change notification settings - Fork 656
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
[Bug] String interpolation in instantiate is broken in hydra 1.0.2 #1001
Comments
Thanks for reporting, is this a regression in 1.0.2? (does it work with 1.0.1)? |
Yes, it is a regression in 1.0.2. It works perfectly in 1.0.1. The 'Expected Behavior' above is the output from hydra 1.0.1. I have no idea about this PR. It was opened and closed by someone else (@mipo57). |
Thanks.
Interesting :) |
There was a nasty bug in the tests that allowed this regression to happen, sorry about it. |
@cmnrd , can you confirm that master works for you? |
Yes, it works. Thanks! |
🐛 Bug
Description
String interpolation does not work when the config node is used in instantiate().
Checklist
To reproduce
** Minimal Code/Config snippet to reproduce **
demo.py:
conf/test.yaml:
** Stack trace/error message **
No error is produced, but the output printed by the code above is erroneous when using hydra 1.0.2 or the latest master.
When referencing
test.string
directly from the python code,foo
gets resolved correctly to42
(first line). However, when passing the interpolated string viainstantiate()
to the classTest
,${foo}
does not get resolved (second line).Expected Behavior
The expected output is:
This output was produced with hydra 1.0.1.
System information
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: