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
Best explained with an example (assume a basic my_app.py that prints the resolved config):
python my_app.py +port='${env:PORT}'# works, may crash if PORT is not defined
python my_app.py +port='${env:PORT,80}'# crashes: not recognized by Hydra's grammar
python my_app.py +port='${env:PORT,"80"}'# accepted by Hydra but OmegaConf does not resolve it
This is because in the current version of OmegaConf, quotes are not allowed inside interpolations.
🐛 Bug
Description
Best explained with an example (assume a basic
my_app.py
that prints the resolved config):This is because in the current version of OmegaConf, quotes are not allowed inside interpolations.
Checklist
To reproduce
** Minimal Code/Config snippet to reproduce **
Then try the examples above.
** Stack trace/error message **
Just showing the last example:
Expected Behavior
Hydra should allow the same characters as OmegaConf.
System information
The text was updated successfully, but these errors were encountered: