Explore tree-sitter based structured editing

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

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

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
20/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
go
領域
devtools

調査の方向性

Start by reading the existing tree-sitter parsing and dependency graph code, then inspect how Stacklit builds and exposes stacklit.json. The issue proposes several possible editing approaches and leaves key design questions open, with no files or tests identified. Done means defining a concrete scope and deciding how node edits and cross-file updates should work.

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

説明

enhancement feature help wanted

From discussion #19 by @yunfan.

Stacklit already parses codebases with tree-sitter and builds dependency graphs. The next logical step is using those same parsed trees for structured code editing, locating a node by its tree-sitter path and replacing it with generated code.

What this could look like:

  • Target a specific function/type/export by its tree-sitter path
  • Replace or patch that node while preserving surrounding code
  • Use stacklit's dependency graph to find cross-file call sites that need updating

Open questions:

  • Tree-sitter gives syntax, not semantics. Cross-file renames need the dependency layer too.
  • How to handle edits that change the tree structure (adding params, changing return types)
  • Could work as a separate companion tool that reads stacklit.json for the graph

No timeline. Scoping for now.

主要言語
Go
スター
114
フォーク
9
平均マージ
19時間 38分
マージ済み PR(30日)
30

環境構築

はじめの一歩

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

glincker/stacklit のほかの issue

glincker/stacklit の issue をすべて見る

似ている issue

Go の issue をもっと見る

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

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