Build system CLI: behavior that disagrees with the help text
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 43/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- ocaml
- Lĩnh vực
- cli
Hướng nghiên cứu
Start with the listed entry points in rewatch-ocaml/: build.ml, build_report.ml, rescript_ocaml.ml, after_build.ml, project_context.ml, cli.ml, and compiler_args_command.ml. Reproduce each behavior with ReScript 13.0.0-alpha.8 and trace its command handling and diagnostics. Done means the reported mismatches are corrected consistently; the issue does not name tests to run.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
CLI behavior that disagrees with the help text or with common conventions. All reproduce with rescript 13.0.0-alpha.8 (found while reviewing #9238); paths are in rewatch-ocaml/.
-
--no-timingprints zero timings instead of none. In a terminal,rescript build -nprintsParsed 1 source files in 0.00s…Finished compilation in 0.00s. The times are zeroed (build.ml:305,build_report.ml:79,:108) instead of left out. -
watchexits 0 when interrupted.rescript watch, then SIGINT or SIGTERM: printsExiting..., exit 0.rescript watch --helpsays129-143 when interrupted by a signal.rescript_ocaml.ml:84mapsWatcher.Stopto 0. -
--after-builddoes not use a shell.rescript build --after-build 'echo hi; exit 3'printshi; exit 3and exits 0; quotes are passed literally ('echo "a b" c'prints"a b" c).after_build.ml:5splits on whitespace. Either run the command through the shell or document that it is split on whitespace. - A missing dependency is a usage error and blocks
clean. With"dependencies": ["missing-dep"]and nothing installed, bothrescript buildandrescript cleanprintCould not build package tree reading dependency 'missing-dep' at path '<project root>'. Error: Could not resolve dependency missing-depand exit 2, the code for command-line usage errors.cleandeletes nothing. The "at path" is the requesting project, not the dependency. (project_context.ml:169-173,rescript_ocaml.ml:73-76) - An unknown subcommand is reported as a lockfile problem.
rescript bogusprintsCould not start Rescript build: Could not write lockfile because the specified project folder does not exist: bogus, exit 1. A bare word is taken as the build folder (normalize_argvincli.ml); the message should say that neither a command nor a folder of that name exists. - Invalid
--featuresand--warn-errorvalues are accepted silently.rescript build --features nopeandrescript build --warn-error zzzexit 0 without a diagnostic;zzzis ignored (cli.ml:63-80and the--warn-erroroption). - Some usage errors lack the
Usage:line.rescript -v -q(rescript: --verbose cannot be used together with --quiet) andrescript format -c -s .res(rescript: --stdin conflicts with --check) exit 2 without it, unlikerescript build --unknown-option; they useTerm.term_resultwithout~usage:true(cli.ml:42-47,:192-196).rescript compiler-args rescript.jsonprintscompiler-args expects a .res or .resi source filewithout therescript:prefix and exits 1 (compiler_args_command.ml:50). -
-hand-Vare undocumented. Both work, butrescript --helplists only--help[=FMT]and--version:cli.ml:286-336rewrites them before Cmdliner sees them.
- Ngôn ngữ chính
- OCaml
- Star
- 7.5k
- Fork
- 485
- Merge trung bình
- 16 giờ 51 phút
- Pull request đã merge (30 ngày)
- 268
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của rescript-lang/rescript
-
Exception analysis does not know the Temporal `fromStringOrThrow` functionsCó thể đã có người làm @cknitt đã nhận 3 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
rescript-lang/rescript#9182 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Build system: make output wording and labels consistentCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
rescript-lang/rescript#9244 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
rescript format: aborts on a syntax error, unstable output, raw compiler errorsCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 56/100
rescript-lang/rescript#9243 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Build system: a failed first build forces full rebuilds, and clean breaks a running watchCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 52/100
rescript-lang/rescript#9241 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 54/100
rescript-lang/rescript#9239 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của rescript-lang/rescript
Issue tương tự
-
bug good first issue priority: low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
TMHSDigital/Free-Game-Dev-Assets#250 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
fish-shell/fish-shell#13084 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
http-party/http-server#982 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
hardikverma22/sandfit#20 ·
Maintainer thường phản hồi trong vòng 1 ngày