Troubleshooting Build Errors and Warnings
When build fails, a message would pop out to alert you. Such a message has two levels of severity:
Error, which indicates that the build cannot be completed and no HTML files will be generated.
Warning, which indicates that the HTML files are generated with errors.
This document provides guidelines on addressing build errors and warnings with the help of messages. Errors and warnings in this document are related to either the esp-docs package or the reStructuredText syntax.
Message Format
Messages can help you locate errors and warnings and get a hint of why they occur.
For projects using the esp-docs package, a message usually includes the following parameters in sequence:
Language
Target
[Optional] File path
[Optional] Line number
Error or warning type
Example of a package-related error:
en/esp32s3: Extension error:
en/esp32s3: Could not import extension linuxdoc.rstFlatTable (exception: No module named 'linuxdoc')
Example of a syntax-related warning:
en/esp32s3: Users/johnlee/esp/esp-idf/docs/en/api-reference/peripherals/ledc.rst:318: WARNING: undefined label: pwm-sheet
Among these parameters, file path and line number are optional. They will not be provided if an error or warning is general and does not apply to a specific file or line.
Still Have Troubles?
This document is far from comprehensive. If you still have no clue why your build fails, here are a few more support options:
Contact us by submitting documentation feedback.
For syntax-related errors and warnings, refer to Chapter Writing Documentation for the correct format.