Stale comments after the dict and JSX representation changes
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- Nửa ngày
- Mức phù hợp với người mới
- 55/100
- Loại issue
- Tài liệu
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- javascript, ocaml
- Lĩnh vực
- compilers
Hướng nghiên cứu
Start with the three comments named in the issue: compiler/ml/translcore.ml around line 1453, analysis/reanalyze/src/side_effects.ml around line 63, and compiler/ml/lambda.ml lines 292-294. Check them against compiler/core/lam_compile_primitive.ml, which now compiles Pdict_spread to an object literal. Done when the dict and side-effect comments describe the current output, and the lambda.ml comment is either corrected or backed by the constructor-ordering practice. That last part needs a maintainer decision, so ask before changing it.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Found by differential semantic drift analysis from ece8b148 to a7721303.
What is broken
Comments still describe representations that the dict and JSX changes replaced:
translcore.mlL1453 says dict spreads compile toObject.assignviaPrimitive_dict.spread. Since #8747Pdict_spreadcompiles to an object literal with spreads (lam_compile_primitive.ml).analysis/reanalyze/src/side_effects.mlL63 says "Object.assign reads the spread dicts". The logic (a spread may have side effects) still holds; the wording does not.compiler/ml/lambda.mlL292-L294 says.cmjfiles marshalLambda.twithout a version check, so constructors must not be inserted where they shift existing tags. #8754 then insertedPjsxamong the non-constant constructors and changedPjs_call. Rebuilds after a compiler change probably make this harmless, but the comment and the practice disagree: either the comment overstates the constraint, or the constraint was broken.
Possible cause (speculation only)
A guess: each PR updated the code paths it changed and their tests, while comments elsewhere that describe the same mechanism were not searched for.
- Ngôn ngữ chính
- OCaml
- Star
- 7.5k
- Fork
- 484
- Merge trung bình
- 22 giờ 10 phút
- Pull request đã merge (30 ngày)
- 70
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
- Không 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
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
rescript-lang/rescript#8765 ·
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 78/100
rescript-lang/rescript#8763 ·
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 82/100
rescript-lang/rescript#8761 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Issues from differential semantic drift analysis (ece8b148 to a7721303)Có thể đã có người làm @cknitt đã nhận hôm nay. Đang mở
rescript-lang/rescript#8768 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 Nửa ngày Mức phù hợp với người mới 72/100
rescript-lang/rescript#8766 ·
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ự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
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 66/100
Maintainer thường phản hồi trong vòng 5 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
partiql/partiql-lang-kotlin#1972 ·
-
area:protocol bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area:backend bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Chelis-Lang/chelis#3500 ·
Maintainer thường phản hồi trong vòng 1 ngày