question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:open
  • Created a year ago
  • Reactions:8
  • Comments:6

github_iconTop GitHub Comments

3reactions
simonwardjonescommented, Aug 1, 2022

I created a PR to go along with this issue here: https://github.com/cookiecutter/cookiecutter/pull/1756 😄

1reaction
samj1912commented, Oct 16, 2022

This needs a fix from cookiecutter. Blocked on https://github.com/cookiecutter/cookiecutter/pull/1756

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found