Closed dandrestor closed 4 years ago
I think this is what happens with an older pyyaml. Can you try upgrading your pyyaml and see if that fixes the issue?
Upgrading to pyyaml 5.3.1 fixes the issue
Ok cool. Did you follow the installation instructions to install with the optional YAML dependency? I'd like to know if pyyaml didn't update on it's own (it should have).
If you wish to use a configuration file in YAML format you’ll want to install with the optional YAML feature, e.g.:
pip install cmake_format[YAML]
I installed with pip install cmake-format
. So I didn't install the optional feature. I never got as far as reading the detailed docs you linked, I just briefly looked at the README on the GitHub repo landing page.
(Note I used a minus, not an underscore - is that a typo in the docs?)
is that a typo in the docs?
The minus/underscore are treated the same by pypi, so it's not exactly a typo... though I think they prefer us to use minus these days so it's probably worth making it consistent.
Anyway, sounds like you've got this worked out so I'll close the issue. Feel free to add another comment if you have more to discuss.
cmake-format 0.6.10, default config