-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wip: Docs/sync en/cn readme workaround files (IEP-1019) #813
wip: Docs/sync en/cn readme workaround files (IEP-1019) #813
Conversation
WalkthroughThis pull request primarily focuses on documentation updates and build error resolutions for the ESP-IDF Eclipse Plugin. It includes changes to README files, workarounds for Clang toolchain issues, and modifications to CMakeLists.txt files. Changes
TipsChat with CodeRabbit Bot (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review Status
Actionable comments generated: 2
Files selected for processing (4)
- README.md (33 hunks)
- README_CN.md (34 hunks)
- WORKAROUNDS.md (4 hunks)
- WORKAROUNDS__CN.md (1 hunks)
Files skipped from review due to trivial changes (2)
- README.md
- README_CN.md
Additional comments (Suppressed): 7
WORKAROUNDS__CN.md (3)
1-3: The link to the English version of the document is a good addition for non-Chinese readers who may stumble upon this page.
7-23: This change adds exception specifications to
__cxa_guard_release
and__cxa_guard_abort
. Ensure that these changes are compatible with all parts of the codebase where these functions are used.46-60: Switching from
clang++
toclang
might have implications on how C++ code is handled. Verify that this change doesn't introduce any issues.WORKAROUNDS.md (4)
1-9: The link to the Chinese version of the document is a good addition for non-English speakers. However, ensure that the linked document (
WORKAROUNDS_CN.md
) exists and is accessible.14-20: The change in function signature for
__cxa_guard_abort
seems to be addressing the error mentioned. Ensure that this change doesn't affect other parts of the codebase where this function is used.33-35: Suppressing warnings can sometimes hide potential issues. Make sure these warnings are not indicative of underlying problems before suppressing them.
57-60: Switching from
clang++
toclang
might have implications on how C++ code is handled. Verify that this change does not introduce any build or runtime errors.
2. `error: variable 'usec' set but not used [-Werror,-Wunused-but-set-variable] int sec, usec`。编辑文件 `esp-idf/CMakeLists.txt`. | ||
|
||
```diff | ||
list(APPEND compile_options "-Wno-atomic-alignment") | ||
# Clang also produces many -Wunused-function warnings which GCC doesn't. | ||
# However these aren't treated as errors. | ||
|
||
+ list(APPEND compile_options "-Wno-unused-but-set-variable") | ||
+ list(APPEND compile_options "-Wno-unused-command-line-argument") | ||
+ list(APPEND compile_options "-Wno-unknown-warning-option") | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suppressing warnings can sometimes hide potential issues in your code. Make sure you understand why these warnings are being generated before suppressing them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review Status
Actionable comments generated: 0
Files selected for processing (2)
- README.md (32 hunks)
- README_CN.md (31 hunks)
Files not summarized due to errors (2)
- README.md: Error: Message exceeds token limit
- README_CN.md: Error: Message exceeds token limit
Additional comments (Suppressed): 19
README_CN.md (7)
1-11: The changes in this hunk are mostly formatting and do not affect the content or meaning of the text. The changes improve readability by adding more line breaks.
19-51: The changes in this hunk reorganize the table of contents and add collapsible sections for better organization and readability. Ensure that all the links work correctly after these changes.
54-81: > Note: This review was outside of the patch, so it was mapped to the patch with the greatest overlap. Original lines [54-100]
No significant issues found in this hunk. The changes are mostly formatting and do not affect the content or meaning of the text.
- 140-162: > Note: This review was outside of the patch, so it was mapped to the patch with the greatest overlap. Original lines [121-162]
This hunk updates the instructions for installing ESP-IDF tools and creating a new project. It also adds a note about unresolved include errors. Make sure to update any related documentation or tutorials to reflect these changes.
168-174: No significant issues found in this hunk. The changes are mostly formatting and do not affect the content or meaning of the text.
179-185: No significant issues found in this hunk. The changes are mostly formatting and do not affect the content or meaning of the text.
188-195: This hunk updates the instructions for viewing serial output. It also adds a link to more information about the IDF monitor. Make sure to update any related documentation or tutorials to reflect these changes.
README.md (12)
1-11: The changes in this hunk are mostly formatting and do not affect the content or readability of the README. The changes look good.
19-44: The Table of Contents has been updated to include a collapsible format for better organization and readability. Ensure that all the links work correctly and point to the correct sections.
57-76: The prerequisites have been updated, specifically the Java version requirement has been increased from 11 to 17 and the Eclipse IDE version has been updated. Make sure these new requirements are accurate and necessary.
83-89: No significant changes detected in this hunk. The changes look good.
94-108: No significant changes detected in this hunk. The changes look good.
121-127: No significant changes detected in this hunk. The changes look good.
140-162: The order of some sections has been changed and some sections have been removed (like "Tools Installation Wizard"). Ensure that the removal of these sections does not leave out important information.
168-174: No significant changes detected in this hunk. The changes look good.
179-185: No significant changes detected in this hunk. The changes look good.
188-195: No significant changes detected in this hunk. The changes look good.
200-257: The order of some sections has been changed and some sections have been added (like "Create a new project using ESP-IDF Templates" and "Tools Installation Wizard"). Ensure that the addition of these sections provides useful information and is formatted correctly.
271-277: No significant changes detected in this hunk. The changes look good.
83f8ff0
to
ca450a9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review Status
Actionable comments generated: 0
Files selected for processing (2)
- README.md (29 hunks)
- README_CN.md (32 hunks)
Files not summarized due to errors (2)
- README.md: Error: Message exceeds token limit
- README_CN.md: Error: Message exceeds token limit
Additional comments (Suppressed): 18
README_CN.md (7)
1-11: The changes in this hunk are mostly formatting and do not affect the content or meaning of the text. The changes improve readability by adding more line breaks.
19-51: The changes in this hunk reorganize the table of contents into collapsible sections, which improves readability and navigation. However, please verify that all the links work correctly after these changes.
54-82: > Note: This review was outside of the patch, so it was mapped to the patch with the greatest overlap. Original lines [54-101]
The changes in this hunk are mostly formatting and do not affect the content or meaning of the text. The changes improve readability by adding more line breaks.
- 141-163: > Note: This review was outside of the patch, so it was mapped to the patch with the greatest overlap. Original lines [122-163]
The changes in this hunk are mostly formatting and do not affect the content or meaning of the text. The changes improve readability by adding more line breaks.
169-174: The changes in this hunk are mostly formatting and do not affect the content or meaning of the text. The changes improve readability by adding more line breaks.
180-186: The changes in this hunk are mostly formatting and do not affect the content or meaning of the text. The changes improve readability by adding more line breaks.
189-196: The changes in this hunk are mostly formatting and do not affect the content or meaning of the text. The changes improve readability by adding more line breaks.
README.md (11)
1-11: The changes in this hunk are mostly formatting and do not affect the content or readability of the README. The changes improve the overall look of the document.
19-44: The Table of Contents has been updated to include a dropdown feature for better organization and navigation. This is a good improvement as it makes the document more user-friendly.
57-77: The prerequisites have been updated, specifically the Java version requirement has been increased from 11 to 17 and the Eclipse IDE for C/C++ Developers version has been updated. Ensure that these new requirements are accurate and necessary.
84-90: No significant changes were made in this hunk. The changes are mainly formatting and do not affect the content or readability of the README.
95-109: No significant changes were made in this hunk. The changes are mainly formatting and do not affect the content or readability of the README.
122-128: No significant changes were made in this hunk. The changes are mainly formatting and do not affect the content or readability of the README.
141-163: The order of some sections has been changed. The "Tools Installation Wizard" section has been moved down. This doesn't seem to affect the flow of the document.
169-175: > Note: This review was outside of the patch, so it was mapped to the patch with the greatest overlap. Original lines [169-186]
No significant changes were made in this hunk. The changes are mainly formatting and do not affect the content or readability of the README.
189-196: No significant changes were made in this hunk. The changes are mainly formatting and do not affect the content or readability of the README.
201-258: The order of some sections has been changed. The "Tools Installation Wizard" section has been moved down. This doesn't seem to affect the flow of the document.
259-278: No significant changes were made in this hunk. The changes are mainly formatting and do not affect the content or readability of the README.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review Status
Actionable comments generated: 1
Files selected for processing (4)
- README.md (29 hunks)
- README_CN.md (32 hunks)
- WORKAROUNDS.md (4 hunks)
- WORKAROUNDS__CN.md (1 hunks)
Files not summarized due to errors (2)
- README.md: Error: Message exceeds token limit
- README_CN.md: Error: Message exceeds token limit
Additional comments (Suppressed): 28
WORKAROUNDS__CN.md (5)
1-3: The link to the English version of the document is a good addition for non-Chinese readers who might stumble upon this page.
7-23: The changes made to the exception specification in
__cxa_guard_release
and__cxa_guard_abort
functions are significant. Ensure that these changes do not introduce any unexpected behavior or compatibility issues with other parts of the codebase.25-35: Suppressing warnings can sometimes hide potential issues in the code. Make sure that these warnings are not indicative of underlying problems before suppressing them.
37-45: Similar to the previous comment, ensure that the warning being suppressed here is not hiding a potential issue.
46-60: Switching from
clang++
toclang
could have implications on how C++ code is handled. Verify that this change does not affect the build process or result in any errors when compiling C++ code.WORKAROUNDS.md (3)
1-9: The link to the Chinese version of the document is a good addition for non-English speakers. However, ensure that the linked document (
WORKAROUNDS_CN.md
) exists and is accessible.14-20: This change correctly adds an exception specification to the
__cxa_guard_abort
function. This should resolve the build error related to missing exception specification.57-60: Switching from
clang++
toclang
as the C++ compiler might have implications on the build process and the resulting binary. Ensure that this change doesn't introduce any new issues or errors.README_CN.md (9)
1-11: The changes in this hunk are mostly formatting and do not affect the content or meaning of the text. The markdown syntax is correct and the links are working as expected.
19-51: The changes in this hunk improve the readability of the document by organizing the content into collapsible sections. This makes it easier for users to navigate the document and find the information they need. However, please verify that all the anchor tags (e.g.,
#Prerequisites
,#NewProjectUsingDefault
) correspond to the correct sections in the document.54-82: This hunk updates the required versions of Java, Python, and Eclipse IDE C/C++ Development Tools. Please ensure that these new requirements have been communicated to all relevant stakeholders and that any associated documentation has been updated accordingly.
95-101: No significant issues found in this hunk. The instructions provided are clear and concise.
122-128: No significant issues found in this hunk. The instructions provided are clear and concise.
141-163: This hunk provides detailed instructions on how to create a new project. However, there seems to be a missing link to the section on creating a new project using existing ESP-IDF templates (
[这里](#NewProjectUsingTemplates)
). Please verify that this link is working correctly.169-175: No significant issues found in this hunk. The instructions provided are clear and concise.
180-186: No significant issues found in this hunk. The instructions provided are clear and concise.
189-196: No significant issues found in this hunk. The instructions provided are clear and concise.
README.md (11)
1-11: The changes in this hunk are mostly formatting and do not affect the content or readability of the README. The changes are acceptable.
19-44: The Table of Contents has been updated to reflect the new structure of the README. Ensure that all the links in the Table of Contents are working correctly and pointing to the correct sections.
57-77: The prerequisites for running the IDF Eclipse plug-ins have been updated. Make sure these changes are reflected in the actual software requirements and installation instructions.
- * **Java 11 and above** : Download and install Java SE from <a href= "https://www.oracle.com/technetwork/java/javase/downloads/index.html">here</a> + * **Java 17 and above** : Download and install Java SE from <a href= "https://www.oracle.com/technetwork/java/javase/downloads/index.html">here</a>
84-90: No significant changes detected in this hunk. The changes are acceptable.
95-109: No significant changes detected in this hunk. The changes are acceptable.
122-128: No significant changes detected in this hunk. The changes are acceptable.
141-163: The order of some sections has been changed, but the content remains the same. Ensure that the flow of information is logical and easy to follow.
169-175: No significant changes detected in this hunk. The changes are acceptable.
180-186: No significant changes detected in this hunk. The changes are acceptable.
189-196: No significant changes detected in this hunk. The changes are acceptable.
201-278: The order of some sections has been changed, but the content remains the same. Ensure that the flow of information is logical and easy to follow.
+ list(APPEND compile_options "-Wno-unused-command-line-argument") | ||
+ list(APPEND compile_options "-Wno-unknown-warning-option") | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suppressing warnings can be useful in some cases, but it's important to understand why these warnings are being generated in the first place. If they're due to issues in the code, it would be better to fix those issues rather than suppressing the warnings.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review Status
Actionable comments generated: 0
Files selected for processing (2)
- README.md (27 hunks)
- README_CN.md (28 hunks)
Files not summarized due to errors (2)
- README.md: Error: Message exceeds token limit
- README_CN.md: Error: Message exceeds token limit
Additional comments (Suppressed): 16
README_CN.md (5)
1-11: The changes in this hunk are mostly formatting and do not affect the content or meaning of the text. The changes improve readability by adding more line breaks.
19-51: The changes in this hunk are significant as they reorganize the table of contents, add new sections, and remove some old ones. Ensure that all the links work correctly and point to the correct sections.
54-82: > Note: This review was outside of the patch, so it was mapped to the patch with the greatest overlap. Original lines [54-101]
The changes in this hunk are mostly formatting and do not affect the content or meaning of the text. The changes improve readability by adding more line breaks.
- 141-163: > Note: This review was outside of the patch, so it was mapped to the patch with the greatest overlap. Original lines [122-174]
The changes in this hunk are mostly formatting and do not affect the content or meaning of the text. The changes improve readability by adding more line breaks.
- 180-196: The changes in this hunk are mostly formatting and do not affect the content or meaning of the text. The changes improve readability by adding more line breaks.
README.md (11)
1-11: The changes in this hunk are mostly formatting and do not affect the content or readability of the README. The changes look good.
19-44: The Table of Contents has been updated to reflect the new structure of the README. Ensure that all the links work correctly and point to the correct sections.
57-77: The prerequisites for running the IDF Eclipse plug-ins have been updated. Make sure these changes are reflected in the installation instructions and other relevant documentation.
84-90: No significant changes, the instructions remain the same.
95-109: No significant changes, the instructions remain the same.
122-128: No significant changes, the instructions remain the same.
141-163: The instructions for creating a new project and configuring the launch target have been rearranged and slightly modified. Ensure that these changes are reflected in the rest of the documentation and that they don't introduce any inconsistencies.
169-175: > Note: This review was outside of the patch, so it was mapped to the patch with the greatest overlap. Original lines [169-186]
No significant changes, the instructions remain the same.
189-196: No significant changes, the instructions remain the same.
201-258: This hunk introduces several new sections and updates existing ones. Each of these changes should be verified individually to ensure that they are accurate and consistent with the rest of the documentation.
259-278: The instructions for using the SDK Configuration editor and CMake Editor have been updated. Ensure that these changes are reflected in the rest of the documentation and that they don't introduce any inconsistencies.
b005257
to
7224648
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review Status
Actionable comments generated: 1
Files selected for processing (4)
- README.md (27 hunks)
- README_CN.md (28 hunks)
- WORKAROUNDS.md (4 hunks)
- WORKAROUNDS__CN.md (1 hunks)
Files not summarized due to errors (2)
- README.md: Error: Message exceeds token limit
- README_CN.md: Error: Message exceeds token limit
Additional comments (Suppressed): 28
WORKAROUNDS__CN.md (4)
1-3: The link to the English version of the document is a good addition for non-Chinese readers.
7-23: Ensure that the changes made to
__cxa_guard_release
and__cxa_guard_abort
functions incxx_guards.cpp
do not break any existing functionality. Also, verify if these changes are compatible with other compilers as well.25-35: Adding compile options to suppress unused variable warnings is a good practice. However, ensure that this does not hide any potential issues related to unused variables in the code.
46-60: Switching from
clang++
toclang
might have implications on the compilation of C++ code. Ensure that this change doesn't affect the build process or the functionality of the C++ components in the project.WORKAROUNDS.md (4)
1-9: The link to the Chinese version of the document is a good addition for accessibility. However, ensure that the linked document (
WORKAROUNDS_CN.md
) exists and is up-to-date with the changes made in this document.14-20: This change seems to be addressing the error mentioned above it. Ensure that this change doesn't introduce any other issues or side effects elsewhere in the codebase.
33-35: Suppressing warnings can sometimes hide potential issues. Make sure these suppressed warnings are not hiding any significant problems in the code.
57-60: Changing the compiler from
clang++
toclang
might have implications on the rest of the codebase. Ensure all C++ code is still compiling and working as expected after this change.README.md (12)
1-11:
19-44: Ensure that all the links in the Table of Contents are updated and working correctly. Also, verify if the sections linked in the Table of Contents are present in the document.
57-77: The Java version requirement has been updated from 11 to 17 (line 72). Ensure that this change is compatible with the rest of the system and that all calls to Java functions throughout the codebase have been updated to match the new version.
84-90:
95-109:
122-128:
141-163:
169-175:
180-186:
189-196:
201-257: Ensure that all the links in this section are updated and working correctly. Also, verify if the sections linked in this part of the document are present in the document.
259-278: Ensure that all the images linked in this section are present and displayed correctly.
README_CN.md (8)
1-11: The changes in this hunk are mostly formatting and do not affect the content or meaning of the text. The changes improve readability by adding more whitespace and line breaks.
19-51: The changes in this hunk reorganize the table of contents into collapsible sections, which improves readability and navigation. However, please verify that all the links work correctly after these changes.
54-82: This hunk updates the required versions of Java and Eclipse IDE C/C++ Development Tools. Please ensure that these new requirements are compatible with the rest of the system and that all references to these requirements throughout the codebase have been updated accordingly.
95-101: No significant issues found in this hunk. The changes are minor and do not affect the functionality or readability of the code.
122-128: No significant issues found in this hunk. The changes are minor and do not affect the functionality or readability of the code.
141-163: No significant issues found in this hunk. The changes are minor and do not affect the functionality or readability of the code.
169-175: No significant issues found in this hunk. The changes are minor and do not affect the functionality or readability of the code.
180-196: No significant issues found in this hunk. The changes are minor and do not affect the functionality or readability of the code.
3. `error: equality comparison with extraneous parentheses [-Werror,-Wparentheses-equality]`。编辑文件 `esp-idf/CMakeLists.txt`. | ||
|
||
```diff | ||
list(APPEND compile_options "-Wno-unused-but-set-variable") | ||
list(APPEND compile_options "-Wno-unused-command-line-argument") | ||
list(APPEND compile_options "-Wno-unknown-warning-option") | ||
+ list(APPEND compile_options "-Wno-parentheses-equality") | ||
endif() | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suppressing warnings for equality comparison with extraneous parentheses can potentially hide logical errors in the code. It would be better to fix the code causing these warnings instead of suppressing them.
@alirana01 @kolipakakondal pls review and let me know if anything needs to be done on my side. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review Status
Actionable comments generated: 0
Files selected for processing (3)
- README.md (13 hunks)
- README_CN.md (26 hunks)
- WORKAROUNDS.md (4 hunks)
Files not summarized due to errors (2)
- README.md: Error: Message exceeds token limit
- README_CN.md: Error: Message exceeds token limit
Files skipped from review due to trivial changes (1)
- WORKAROUNDS.md
Additional comments (Suppressed): 9
README.md (5)
1-11:
16-26:
60-77:
82-137:
141-184:
README_CN.md (4)
1-11: The changes in this hunk are mostly formatting and do not affect the content or meaning of the text. The changes improve readability by adding more whitespace and line breaks.
19-50: The changes in this hunk reorganize the table of contents into collapsible sections, which improves the document's navigability and readability. However, please verify that all the anchor links (
#anchor
) correctly correspond to the respective sections in the document.53-80: > Note: This review was outside of the patch, so it was mapped to the patch with the greatest overlap. Original lines [53-99]
This hunk introduces a new installation guide for the ESP-IDF Eclipse plugin. Please ensure that the provided URLs for the stable, beta, and nightly builds are correct and accessible.
- 139-173: > Note: This review was outside of the patch, so it was mapped to the patch with the greatest overlap. Original lines [120-172]
The changes in this hunk update the instructions for creating a new project and configuring the launch target. Please verify that these instructions are accurate and up-to-date with the current version of the ESP-IDF Eclipse plugin.
Description
This PR:
Summary by CodeRabbit
cxx_guards.cpp
and adding compile options to suppress warnings. This is documented in both WORKAROUNDS.md and WORKAROUNDS__CN.md.clang++
toclang
in the CMakeLists file to resolve a Windows-specific issue.