Stale comments after the dict and JSX representation changes
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 半日
- 初心者へのやさしさ
- 55/100
- issue の種類
- ドキュメント
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- javascript, ocaml
- 領域
- compilers
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- OCaml
- スター
- 7.5k
- フォーク
- 484
- 平均マージ
- 22時間 10分
- マージ済み PR(30日)
- 70
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
rescript-lang/rescript のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
rescript-lang/rescript#8765 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
rescript-lang/rescript#8763 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
rescript-lang/rescript#8761 ·
メンテナーはふだん 1 日以内に返信
-
Issues from differential semantic drift analysis (ece8b148 to a7721303)対応中かも @cknitt が今日担当しました。 オープン
rescript-lang/rescript#8768 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 半日 初心者へのやさしさ 72/100
rescript-lang/rescript#8766 ·
メンテナーはふだん 1 日以内に返信
rescript-lang/rescript の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
メンテナーはふだん 5 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
SciML/ModelingToolkitStandardLibrary.jl#529 ·
メンテナーはふだん 1 日以内に返信
-
ExprQuerySet.getChildren() omits WITH clause対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
partiql/partiql-lang-kotlin#1972 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
liquid-java/liquidjava#388 ·
メンテナーはふだん 1 日以内に返信