Using the latest formatting files copied from OpenCPN:
.cmake-format.yaml
.clang-format
Edit->Advanced->Format Document
Stops with "Error reading ....lang-format: invalid argument.
This has happened a number of times. Need to turn off formatting using these files.