Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

AST extraction: Svelte 5 script blocks and TypeScript export type * produce partial graphs

Aperta
#3,942 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python, typescript

Direzione di ricerca

Start with graphify.extract.extract using index.ts and Example.svelte, then reproduce the structural and code-only extraction cases. Compare the reported AST nodes and source locations for export type *, Svelte script blocks, and template {#if} blocks; done means these constructs are parsed without spurious nodes and parser gaps remain visible in the graph or report.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Version

graphify 0.9.72 (uv tool upgrade graphifyy reports Nothing to upgrade), Python 3.10, macOS.

Minimal reproduction

index.ts:

export type * from "./types.js";

types.ts:

export type FetchFn = typeof globalThis.fetch;

Example.svelte:

<script lang="ts">
  let { value = 0 }: { value?: number } = $props();
  const doubled = $derived(value * 2);
  function increment() { value += 1; }
</script>
<button onclick={increment}>{doubled}</button>

Run structural extraction using graphify.extract.extract([Path("index.ts"), Path("Example.svelte")], parallel=False) or a code-only extraction.

Observed

The TypeScript barrel reports a syntax error on export type * and no symbols. Svelte files report syntax errors at <script> (line 1), and larger Svelte 5 templates can emit spurious if() function nodes from markup. On our application the health warning listed 175 partially extracted files, mostly Svelte, plus unresolved barrel symbols. Named type exports (or removal of unused type re-exports) avoid the barrel error, but not Svelte template errors.

Expected

Support TS 5 type-star exports. Parse Svelte script blocks as TS/JS and Svelte markup with a compatible grammar, preserving original source locations; template {#if} blocks must not become functions. Parser gaps should be clearly recorded in the graph/report, since they skew cohesion and hub rankings.

Lingua principale
Python
Stelle
124k
Fork
11.9k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Graphify-Labs/graphify

Tutte le issue di Graphify-Labs/graphify

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.