Closed
Description
Answers checklist.
- I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
- I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
- I have searched the issue tracker for a similar issue and not found a similar issue.
General issue report
If I mistakenly violate conventional commit requirements for this repo, the resulting error code is a unicoding fault rather than something human-readable.
Ex: this commit message works:
feat: allow provided config object to extend other configs
Ex: this commit message fails:
chore: allow provided config object to extend other configs
I would expect an error like "conventional commit parser failed: 'chore' is not allowed. Use one of: feat/docs/..."
But instead I get this:
[WARNING] top-level `default_stages` uses deprecated stage names (commit) which will be removed in a future version. run: `pre-commit migrate-config` to automatically fix this.
Conventional Commit......................................................Failed
- hook id: conventional-precommit-linter
- exit code: 1
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "C:\Users\RichardAllen\.cache\pre-commit\repo5i24undo\py_env-python3.13\Scripts\conventional-precommit-linter.EXE\__main__.py", line 7, in <module>
sys.exit(main())
~~~~^^
File "C:\Users\RichardAllen\.cache\pre-commit\repo5i24undo\py_env-python3.13\Lib\site-packages\conventional_precommit_linter\hook.py", line 272, in main
print_report(commit_type, commit_scope, commit_summary, args)
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\RichardAllen\.cache\pre-commit\repo5i24undo\py_env-python3.13\Lib\site-packages\conventional_precommit_linter\hook.py", line 209, in print_report
print(full_guide_message)
~~~~~^^^^^^^^^^^^^^^^^^^^
File "C:\Users\RichardAllen\.cache\pre-commit\repo5i24undo\py_env-python3.13\Lib\site-packages\colorama\ansitowin32.py", line 47, in write
self.__convertor.write(text)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^
File "C:\Users\RichardAllen\.cache\pre-commit\repo5i24undo\py_env-python3.13\Lib\site-packages\colorama\ansitowin32.py", line 177, in write
self.write_and_convert(text)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^
File "C:\Users\RichardAllen\.cache\pre-commit\repo5i24undo\py_env-python3.13\Lib\site-packages\colorama\ansitowin32.py", line 202, in write_and_convert
self.write_plain_text(text, cursor, start)
~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\RichardAllen\.cache\pre-commit\repo5i24undo\py_env-python3.13\Lib\site-packages\colorama\ansitowin32.py", line 210, in write_plain_text
self.wrapped.write(text[start:end])
~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
File "C:\Python313\Lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
UnicodeEncodeError: 'charmap' codec can't encode character '\u274c' in position 2: character maps to <undefined>