Svelte: a call in markup (event handler, `{expression}`) produces no CALLS edge — only `<script>` calls are linked
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 56/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- c, typescript
調査の方向性
Start by tracing how Svelte files are parsed and how CALLS edges are extracted for <script> content. Use the supplied three-file reproduction, especially the markup event handler and {exportRows(rows)} expression, then compare its graph with the InScript.svelte result. Done means markup calls produce the expected caller edge in trace_path and query_graph.
索引モデルが issue の本文から書いたものです。
説明
Version
codebase-memory-mcp 0.12.1
Platform
Linux (x64)
Install channel
GitHub release archive / install.sh
Binary variant
ui
What happened, and what did you expect?
A function that a Svelte component calls only in its markup gets no CALLS edge from that component. Calls inside <script> are linked (fixed with #1807). So trace_path and "who calls X" miss every component that calls a function from an event handler or a template expression, and the function can look unused.
Expected: the component is a caller, as it is for a call in <script>.
Reproduction
- Code, a dummy project of three files:
// src/lib/export.ts
export function exportRows(rows: string[]): string {
return rows.join("\n");
}
<!-- src/lib/InScript.svelte -->
<script lang="ts">
import { exportRows } from "./export";
let rows: string[] = [];
function download() {
exportRows(rows);
}
</script>
<button onclick={download}>Export</button>
<!-- src/lib/InMarkup.svelte -->
<script lang="ts">
import { exportRows } from "./export";
let rows: string[] = [];
</script>
<button onclick={() => exportRows(rows)}>Export</button>
<p>{exportRows(rows)}</p>
package.json: {"name": "repro", "private": true, "type": "module", "devDependencies": {"svelte": "^5.0.0"}}
- MCP tool calls:
index_repository {"repo_path": "/tmp/repro-svelte", "mode": "full"}
trace_path {"project": "tmp-repro-svelte", "function_name": "exportRows", "direction": "inbound", "depth": 1}
query_graph {"project": "tmp-repro-svelte", "format": "json",
"query": "MATCH (a)-[r]->(b) WHERE b.name = 'exportRows' RETURN a.name, a.label, a.file_path, type(r)"}
- Result:
trace_pathreportscallers_total: 1, the functiondownloadinsrc/lib/InScript.svelte.query_graphreturns two rows: thatCALLSedge and theDEFINESedge ofexport.ts. Nothing points fromsrc/lib/InMarkup.sveltetoexportRows.
Expected: a caller in src/lib/InMarkup.svelte as well. The file holds two markup forms, an arrow function in an event attribute and a {…} expression. I did not test them one by one; together they produce no edge.
The index reported no gaps: not_indexed_files_count 0, parse_partial_count 0.
Project scale (if relevant)
14 nodes / 16 edges / 4 files
Confirmations
- I searched existing issues and this is not a duplicate.
- My reproduction uses shareable code (a dummy snippet or a public OSS repository), not proprietary code.
- 主要言語
- C
- スター
- 45.8k
- フォーク
- 3.8k
- 平均マージ
- 2日 18時間
- マージ済み PR(30日)
- 108
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
DeusData/codebase-memory-mcp のほかの issue
-
bug ux/behavior
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
DeusData/codebase-memory-mcp#3191 ·
メンテナーはふだん 1 日以内に返信
-
documentation enhancement parsing/quality ux/behavior
難易度 1/5 1〜3時間 初心者へのやさしさ 82/100
DeusData/codebase-memory-mcp#3131 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
hook-augment: the five-row cap keeps the first five search_graph rows, so variables and modules displace function definitions (v0.12.1)対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンbug editor/integration parsing/quality ux/behavior
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
DeusData/codebase-memory-mcp#3062 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
bug documentation editor/integration parsing/quality
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
DeusData/codebase-memory-mcp#3050 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
editor/integration parsing/quality
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
DeusData/codebase-memory-mcp#2286 ·
メンテナーはふだん 1 日以内に返信
DeusData/codebase-memory-mcp の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
NVIDIA/open-gpu-kernel-modules#1635 ·
メンテナーはふだん 1 日以内に返信
-
iOS: the "Edit controls" button never hides, even with a controller connected, and covers the gameオープンgame: 010065A014024000 ios
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
seedds/nxnative#3714 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信