fix:修复浮点交互输入示例并稳定 Windows 分卷构建 - #169
Open
xiaoshuaijie wants to merge 2 commits into
Open
Conversation
Contributor
Author
|
Linux 不会触发重试逻辑:重试次数仅在 所有平台都会采用“并行构建、串行缓存与合并”的时序。产物内容不变,VitePress 分卷仍并行;Linux 可能只是在构建末尾少量文件复制不再与其他分卷渲染交叠,通常影响很小,并且合并顺序更确定。 对 Windows,这是概率性的瞬态文件系统问题,不是每位用户都会遇到。并发数高、磁盘较忙、实时防护/同步软件介入、目录文件很多时更容易出现;无法在没有大量运行数据的情况下给出具体概率。此次修复会降低触发条件,并在仍出现短暂路径不可见时自动重试。我在执行git push时遇到了这个问题,这是ai给出的总结,老师有时间看一下 |
Member
OKOK,我看看哈后续 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
修复说明
本 PR 包含两项缺陷修复:
修复
float_bits示例的运行方式。printf ... | ./float_bits固定传入-3.14,读者无法在终端中自行输入其他float值。./float_bits,保留程序原有的fgets与sscanf输入校验流程。fputs(input, stdout);交互终端本身会回显用户输入,避免重复显示。修复 Windows 下分卷并行构建时缓存复制偶发
ESRCH的问题。dist。ESRCH/ENOENT时,最多重试 3 次,每次间隔 100ms;其他平台保持单次复制行为。修复类型
影响范围
documents/vol1-fundamentals/c_tutorials/13-union-enum-bitfield-typedef.mdfloat_bits的交互式运行命令与输出行为。scripts/build.tsdist合并时序。验证方式
环境:Windows、Node.js
v24.12.0、pnpm11.18.0、MinGW GCC。pnpm check:linksgcc -std=c17 -Wall -Wextra -Wpedanticfloat_bits示例编译通过。-3.14输入验证,输出的 IEEE 754 binary32 位模式与文档一致。BUILD_CONCURRENCY=4 pnpm build -- --forceESRCH。BUILD_CONCURRENCY=4 pnpm buildgit diff --check origin/main...HEAD关联 Issue / Discussion
无。