Generate Context fails when a default list value provided
See original GitHub issue- Cookiecutter version:
2.1.1
Description:
Currently when including a list in a default context the generate context fails. For example if you had a default context as below with a list value for the “_copy_without_render” key.
{
"1": 2,
"some_key": "some_val",
"_copy_without_render": [
"**/*.txt"
]
}
What I’ve run:
I was using cookiecutter indirectly through cruft when I got the error. In particular in the cruft project there is currently an issue caused by this: https://github.com/cruft/cruft/issues/166.
Issue Analytics
- State:
- Created a year ago
- Reactions:8
- Comments:6
Top Results From Across the Web
Trying to provide createContext with a default value object ...
The current implementation of the default values for the functions for example, getuser: () => null just fail silently when some component calls ......
Read more >Required contexts with default values should not fail ... - Drupal
In the issue summary, the OP seems to wants a context variable to behave differently in different contexts. The proposed solution is to...
Read more >Generated Values - EF Core - Microsoft Learn
Trying to insert explicit values into SQL Server IDENTITY fails by default; see these docs for a workaround. To provide an explicit value...
Read more >Error codes | Stripe Documentation
Below is a list of possible error codes, along with additional information ... The account ID provided as a value for the Stripe-Account...
Read more >Spring Boot Reference Documentation
Build tool plugins: Maven | Gradle. Appendix: Application Properties | Configuration Metadata | Auto-configuration Classes | Test Auto-configuration Annotations ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I created a PR to go along with this issue here: https://github.com/cookiecutter/cookiecutter/pull/1756 😄
This needs a fix from cookiecutter. Blocked on https://github.com/cookiecutter/cookiecutter/pull/1756