Build system: make output wording and labels consistent
維護者通常 1 天內回覆
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 48/100
- Issue 類型
- 缺陷
- 描述清晰度
- 描述清楚
- 活躍度
- 活躍
- 技術堆疊
- ocaml
研究方向
Reproduce the listed output issues with ReScript 13.0.0-alpha.8 and inspect the named files under rewatch-ocaml/, starting with build_report.ml and output.ml. The report names specific locations for build, clean, diagnostics, scheduling, and compiler output. Done means correcting the listed wording, labels, ordering, and color behavior across terminal and redirected output, then checking each reproduction.
由索引模型根據 Issue 內容生成。
描述
The build system's messages still follow the Rust implementation's output, which the OCaml one had to match exactly. Now that #9238 removes it, they can be made consistent. All reproduce with rescript 13.0.0-alpha.8; paths are in rewatch-ocaml/.
Progress and results
- Wrong plurals:
Parsed 1 source files,Compiled 1 modules, in plain and terminal output (build_report.ml:52-54,output.ml). - A failed one-shot build ends with
Incremental build failed. Error: \e[2K\r Failed to Compile. See Errors Above(parse errors:Could not parse Source Files): "Incremental", theError:in mid-sentence, Title Case, and a line-clear sequence even when redirected (build.ml:317-330). -
Cleaned 0/0on every fresh build; a no-op build printsCleaned 0/1,Parsed 0 source files,Compiled 0 modules(build_report.ml:50-53). The counts are stale ASTs out of previous ASTs, which the line does not say. - A redirected one-shot build prints no completion line, while
watchprintsFinished initial compilation(build_report.ml:89). - Redirected
rescript cleanprints onlyCleaning <pkg>(clean.ml:98). In a terminal with"in-source": false, it printsCleaning files.../Cleaned fileswith an empty suffix list (clean.ml:102-110).
Diagnostics
-
ERROR:with exit 0: a dependency source folder that is missing or is a file printsERROR:/Could not read folder: "nosuch". Specified in dependency: dep, located "<path>"..., and the build succeeds. The root package is also called "dependency", and a file is called a folder (package_diagnostics.ml:87-91). -
The field 'ignored-dirs' … is not supported by ReScript 12's new build system.(config.ml:410-415). -
Could not start Rescript buildnext toA ReScript build is already running(build_lock.ml:14,:174,project_context.ml:8). - Labels:
ERROR:,WARN:,DEBUG:andTRACE:sit on their own line before the message (package_diagnostics.ml:88,:96,output.ml:5-7), while other warnings have none:Duplicated package: a ./node_modules/a (chosen) vs … in ./node_modules/b(package_resolution.ml:76),No implementation file found for interface file (skipping): src/B.resi, which also starts with a line-clear sequence when redirected (package_graph.ml:111). - Config diagnostics (deprecated
bsc-flags, unknown fields) are printed after theParsed/Compiledlines and after compiler warnings, with three blank lines before the first and one between the others (build_report.ml:64-73,config.ml:313). - Parse errors get an
Error in <pkg>:header; type errors do not (package_parse.ml:103).
Verbose output
-
-vvprintscompile dirty: Awithout a label (compiler_scheduler.ml:117), andTRACE:/Compiled 2 out of 2 in the universe(compiler_scheduler.ml:404).
Colors
- With
NO_COLOR=1, progress lines lose their colors, but compiler errors and warnings keep them; compiler output is also colored when redirected. bsc is always run with-color always(compiler_process.ml:240-241and the compile arguments), while progress output followsoutput.ml:102-119.
- 主要語言
- OCaml
- 星號
- 7.5k
- 分支
- 485
- 平均合併
- 16 小時 51 分鐘
- 30 天內合併 PR
- 268
環境準備
在瀏覽器裡用你自己的 GitHub 帳號啟動這個專案的開發容器。
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
rescript-lang/rescript 的其他 Issue
-
Exception analysis does not know the Temporal `fromStringOrThrow` functions可能已有人在做 @cknitt 於 3 天前認領。 未關閉
難度 2/5 1-3 小時 新手友好度 72/100
rescript-lang/rescript#9182 ·
維護者通常 1 天內回覆
-
rescript format: aborts on a syntax error, unstable output, raw compiler errors可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉
難度 4/5 3-5 天 新手友好度 56/100
rescript-lang/rescript#9243 ·
維護者通常 1 天內回覆
-
Build system CLI: behavior that disagrees with the help text可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉
難度 4/5 3-5 天 新手友好度 43/100
rescript-lang/rescript#9242 ·
維護者通常 1 天內回覆
-
Build system: a failed first build forces full rebuilds, and clean breaks a running watch可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉
難度 4/5 3-5 天 新手友好度 52/100
rescript-lang/rescript#9241 ·
維護者通常 1 天內回覆
-
難度 4/5 3-5 天 新手友好度 54/100
rescript-lang/rescript#9239 ·
維護者通常 1 天內回覆
查看 rescript-lang/rescript 的全部 Issue
相似的 Issue
-
cleanup documentation
難度 2/5 1-3 小時 新手友好度 72/100
維護者通常 2 天內回覆
-
難度 1/5 1 小時以內 新手友好度 92/100
crossbario/crossbar#2383 ·
維護者通常 1 天內回覆
-
check-typing: ty 0.0.98+ fails on the renamed rule `unresolved-import` (now `import-not-found`)可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉
難度 1/5 1 小時以內 新手友好度 94/100
crossbario/autobahn-python#2046 ·
維護者通常 1 天內回覆
-
Fresh comstockpostproc install fails on import: PyAthena 4.x requires SQLAlchemy 2 (AttributeError: sqlalchemy.types has no attribute DOUBLE)可能已有人在做 @JanghyunJK 今天認領。 未關閉postprocessing
難度 2/5 1-3 小時 新手友好度 82/100
NatLabRockies/ComStock#473 ·
-
難度 2/5 1-3 小時 新手友好度 66/100
transitmatters/stripmap#45 ·
維護者通常 3 天內回覆