`rescript-tools doc` not extracting docstrings from type definitions
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
rescript-tools doc コマンドから始め、issue にある src/Demo.res を使って動作を再現します。コマンドが型定義と /** */ コメントをどのように処理するかを追跡し、その後もう一度 npx rescript-tools doc src/Demo.res を実行します。出力に型の docstring と内容の入った items 配列が含まれていれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Environment
- ReScript version: 12.0.0
- OS: macOS
- Node version: v22.20.0
Problem
The rescript-tools doc command is not extracting docstrings from type definitions and returns an empty items array, even when using proper /** */ documentation comment syntax.
Minimal Reproducible Example
File: src/Demo.res
/**
* Test
*/
type t = {
name: string,
servings: int,
}
Command
npx rescript-tools doc src/Demo.res
Output
{
"name": "Demo",
"docstrings": [],
"source": {
"filepath": "src/Demo.res",
"line": 1,
"col": 1
},
"items": []
}
Steps to Reproduce
- Create a new ReScript project
- Create Demo.res with the content above
- Run
npx rescript-tools doc src/Demo.res - Observe empty items array and missing docstrings
Additional Context
This affects tooling that depends on rescript-tools for documentation extraction (such as codegen)
- 主要言語
- OCaml
- スター
- 7.5k
- フォーク
- 485
- 平均マージ
- 1日 3時間
- マージ済み PR(30日)
- 49
環境構築
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
rescript-lang/rescript のほかの issue
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
rescript-lang/rescript#8659 · コメント 2 件 · リアクション 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
rescript-lang/rescript#8647 ·
メンテナーはふだん 1 日以内に返信
-
Untagged variants: boolean literal/payload overlap is rejected while string, int, float and bigint overlap is allowed対応中かも @cknitt が 20 日前に担当しました。 オープン
rescript-lang/rescript#8632 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 28/100
rescript-lang/rescript#8624 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
rescript-lang/rescript#8596 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
rescript-lang/rescript の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
trailofbits/dylint#2107 ·
メンテナーはふだん 1 日以内に返信
-
bug needs triage
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
appandflow/stim#1604 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
area:cli bug good first issue priority:medium
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信