I just did something my AI agents couldn't
说明与用途
作者尝试将 ESP‑IDF 项目重构为 components 文件夹,但 AI 工具未能正确更新 include 路径和 CMake 依赖。手动修正 REQUIRES 行后项目成功构建。
问题
Automating the organization of an ESP-IDF project into a components folder failed when relying solely on AI tools.
结果
Manual inspection of include paths and CMake REQUIRES entries resolved build errors that AI tools could not detect.
工作流
- 1. Copied project files using ReptClip.
- 2. Asked Gemini (various free/paid versions) to suggest files to move and new code.
- 3. Followed AI instructions blindly, resulting in widespread syntax errors.
- 4. Repeated the process with Gemini Pro, Gemini Flash Extended, Gemini Pro Extended, DeepSeek v4 Flash, DeepSeek v4 Pro, and GitHub Copilot, all failing to resolve errors.
- 5. Took a break, then returned with a new plan: manually edit #include lines and CMakeLists.txt.
- 6. Identified that incorrect REQUIRES/PRIV_REQUIRES names caused header resolution failures.
- 7. Searched Google for the correct REQUIRES entry, updated the line, and rebuilt successfully.
证据
I realized right away that the #include paths were the real issue.
Adding those fixed a few headers, but some specific headers still failed.
- 记录日期: 2026-09-17T05:45:33.391Z