kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #44944
clang format failure
Hi,
Trying to commit a fix for
https://gitlab.com/kicad/code/kicad/-/issues/7823 so I can make an MR,
clang format fails to run:
```
lijon@lijon-mbp kicad % git commit
YAML:11:32: error: invalid boolean
AllowShortBlocksOnASingleLine: Never
^~~~~
Error reading /Users/lijon/Coding/kicad/_clang-format: Invalid argument
error: `clang-format -style=file -lines=302:303
eeschema/dialogs/dialog_sim_settings.cpp` failed
ERROR: you need to run clang-format (e.g. using tools/check_coding.sh)
on your commit
Running clang-format on the following files:
eeschema/dialogs/dialog_sim_settings.cpp
YAML:11:32: error: invalid boolean
AllowShortBlocksOnASingleLine: Never
^~~~~
Error reading /Users/lijon/Coding/kicad/_clang-format: Invalid argument
error: `clang-format -style=file -lines=302:303
eeschema/dialogs/dialog_sim_settings.cpp` failed
Hook /Users/lijon/Coding/kicad/.githooks/pre-commit.d/50-check-format
failed with error code 1
To commit anyway, use --no-verify
```
If I change that setting to "false" instead of "Never", it fails here instead:
```
YAML:55:11: error: unknown enumerated scalar
Standard: c++11
^~~~~
Error reading /Users/lijon/Coding/kicad/_clang-format: Invalid argument
error: `clang-format -style=file -lines=302:303
eeschema/dialogs/dialog_sim_settings.cpp` failed
```
--
/Jonatan
http://kymatica.com
Follow ups