Native printer panics when printing JSDoc AST nodes

オープン
#65,057 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@el-j がすでに取り組んでいます。

2026年10月30日 から。

  • #65058 @el-j による — オープン

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
72/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
go, typescript
領域
compilers

調査の方向性

Start in tsc/internal/printer/printer.go by reading Printer.emitJSDocNode and tracing how JSDoc nodes reach it. Reproduce the panic with an AST-factory JSDoc node passed to api.printer.printNode; done means it prints a formatted JSDoc comment with text and tags instead of panicking.

索引モデルが issue の本文から書いたものです。

説明

Bug\nThe TypeScript 7 native printer panics when asked to print a JSDoc AST node directly. The printer dispatches JSDoc kinds to Printer.emitJSDocNode, which currently panics with not implemented.\n\n## Reproduction\nCreate a JSDoc node with the AST factory and call api.printer.printNode(jsdocNode).\n\n## Expected\nThe printer emits a formatted JSDoc comment (including text and tags).\n\n## Actual\nPrinting the node panics in tsc/internal/printer/printer.go.

主要言語
Go
スター
112k
フォーク
15.4k
平均マージ
2日 21時間
マージ済み PR(30日)
126

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

microsoft/TypeScript のほかの issue

microsoft/TypeScript の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。