Slight problem with `configlet create --concept-exercise`

This new(ish) feature is very useful, but it doesn’t do the best job with the name field in config.sys: it just uses the slug again.

      {
        "slug": "elyses-analytic-enchantments",
        "name": "elyses-analytic-enchantments",
        "uuid": "22956a33-b6cb-45af-9304-193074680f7c",
        "concepts": [],
        "prerequisites": []
      },

I don’t know how easy it is to fix this within configlet, but anyone adding new exercises should at least be aware of it and be ready to fix it manually. I just spotted it in a PR.

The same problem seems to happen with --practice-exercise, which may catch out even more people.

I just used it today (for a practice exercise) and it retrieved the correct name

      {
         "slug": "bank-account",
         "name": "Bank Account",
         "uuid": "27f36909-8005-4537-80b4-4c81a3325b5b",
         "practices": [],
         "prerequisites": [],
         "difficulty": 3
       },

What version are you running?

$ bin/configlet --version
4.0.0

Puzzling. I’m also on 4.0.0, I did a fetch-configlet to make sure.

On Linux Mint 22, if that matters (based on Ubuntu 24.04). I’ll try it on some other machines.

I tested with

bin/configlet create --concept-exercise elyses-analytic-enchantments --author glennj

and got the same result as you, so it’s a --concept-exercise bug.

Please open an issue at the configlet repo.

Done: Issue #891

1 Like