Open verdammelt opened 2 years ago
I can see that this is unclear.
It's trying to say "this file is not formatted" as it sees them, and then it formats them at the end. If you run without -y
then you get a prompt saying "do you want to format the above paths?" after the final "not formatted" line. Then, if you confirm the prompt, it prints:
Formatted the exercise config for 58 exercises
Ah, i now understand. I'll close this issue. Thank you.
I think the fact that you didn't understand it means that we should make it clearer.
What do you think about this?
Found 15 Concept Exercises and 43 Practice Exercises in /foo/some-track/config.json
Looking for exercises that lack a formatted '.meta/config.json' file...
The below paths are not formatted, and are relative to '/foo/some-track'
exercises/concept/character-study/.meta/config.json
exercises/concept/gigasecond-anniversary/.meta/config.json
...
Found 58 unformatted exercise configs.
Formatting exercise configs...
Formatted the exercise config for 58 exercises
Yes that might be clearer.
OK - thanks. Let's track that improvement in this issue - I've reopened.
Version: 4.0.0-alpha.35
I ran the command
configlet fmt -u -y
and it repoted 58 lines ofNot formatted: exercises/<path-to-exercise>/.meta/config.json
followed by a single line sayingFormatted the exercise config for 58 exercises
.All 58 exercises that were reported to have been "Not formatted" where in fact formatted.
Why is it reporting not formatted when in fact they are being formatted?
Full output when running this in the
common-lisp
track: