Repository navigation
fix(remote): restore fl/stl/cstdio.h include in transport/serial.h (teensy CI red) - #2686
Conversation
PR #2685 removed the direct #include "fl/stl/cstdio.h" from src/fl/remote/transport/serial.h based on a transitive-include chain ("strstream.h -> ostream.h -> cstdio.h") that does not exist — strstream.h does NOT include ostream.h, so the symbols fl::available, fl::read, fl::readLine, and fl::println are not in scope on any non-PCH build. CI symptom on the post-#2685 master sha (1a347e9), every teensy variant fails on every example with: fl/remote/transport/serial.h:68:40: error: 'available' is not a member of 'fl' fl/remote/transport/serial.h:69:29: error: 'read' is not a member of 'fl' fl/remote/transport/serial.h:80:16: error: 'readLine' is not a member of 'fl' The Windows PCH path-spelling dedup issue PR #2685 was working around is already handled by the meson.build path-normalization change that shipped in the same PR (replacing meson's `/` operator with literal `'+ '/' +'` concatenation). Dropping the direct include was an incorrect additional belt-and-suspenders that broke every non-PCH build. Verified locally on Windows: bash compile teensy41 --examples Apa102 -> build succeeded in 129.6s -> SUCCESS: Apa102 Co-Authored-By: Claude Opus 4.7 <[email protected]>
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe serial transport header is updated to explicitly include the ChangesInclude Dependency Fix
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
#include \"fl/stl/cstdio.h\"insrc/fl/remote/transport/serial.hthat PR fix(build,windows): work around zccache#619 PCH path-spelling drift #2685 removed.strstream.h → ostream.h → cstdio.h) that doesn't exist —strstream.hnever includesostream.h, sofl::available,fl::read,fl::readLine,fl::printlnare out of scope on every non-PCH build (all teensy variants, every Arduino ARM/AVR target).CI symptom (post-#2685, master sha
1a347e9c0e)Every teensy variant fails on every example with:
Confirmed across
teensy30/31/32/35/36/40/41/41_ofled/LC/octoWS2811runs.Why the workaround was wrong
The Windows PCH path-spelling dedup issue is genuinely fixed by the
meson.buildpath-normalization in PR #2685 (replacing meson's/join with literal'+ '/' +'). Removing the direct include was unnecessary belt-and-suspenders that traded the Windows host-build failure for an all-teensy CI failure.Test plan
bash compile teensy41 --examples Apa102— build succeeded in 129.6s (no errors, ELF + HEX produced)🤖 Generated with Claude Code
Summary by CodeRabbit