Ok, never mind. A "brew upgrade clang-format" solved it. On Mon, Mar 8, 2021 at 10:26 AM Jonatan Liljedahl <li...@kymatica.com> wrote: > > 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
-- /Jonatan http://kymatica.com _______________________________________________ Mailing list: https://launchpad.net/~kicad-developers Post to : kicad-developers@lists.launchpad.net Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp