Add a Godot 4.6 symbol DB and report when the project is newer than the DB

Aperta
#120 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
55/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
godot, typescript
Ambito
devtools

Direzione di ricerca

Start with scripts/generate-symbol-db.ts, docs/symbol-db.md, src/capabilities.ts, and src/project/godot-version.ts to understand DB generation and version selection; then trace the lint payload and pretty output from src/lint/rules/removed-api-usage.ts. Generate and register the 4.6 DB, and report unsupported newer or different-major project versions. Done means 4.6 lookups use the new DB and newer versions are reported instead of silently falling back.

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

Descrizione

enhancement severity: high

Summary

The symbol DB is pinned to Godot 4.4 and 4.5. A project that declares 4.6 is silently checked against 4.5, and the api_* tools cannot answer 4.6 questions. Add a 4.6 DB, and tell users when their project is newer than the newest DB.

Where

  • src/capabilities.ts:8 (PINNED_GODOT_VERSIONS = ["4.4", "4.5"])
  • src/project/godot-version.ts:36-40 (pinnedVersionFor falls back to the newest pinned version not newer than the project's)
  • src/lint/rules/removed-api-usage.ts:98

Proposal

  • Generate a 4.6 DB with scripts/generate-symbol-db.ts against 4.6-stable, add "4.6" to PINNED_GODOT_VERSIONS, and run npm run generate:tools.
  • When the declared version is newer than the newest DB (or is a different major, for example 5.x), report it rather than falling back silently. For example, add an effectiveGodotVersion / godotVersionFallback field to the lint_project payload and an info note in pretty output.

Who benefits

Anyone on current Godot. This is the main path for removed-api-usage and the API lookup tools.

Open questions

  • Package size with a third DB (each is about 280 KB). Whether to drop 4.4.

Getting started

  • Relevant files: scripts/generate-symbol-db.ts, docs/symbol-db.md, src/capabilities.ts, src/project/godot-version.ts

Filed by repo-audit/full-audit at e836036. Severity: high. Effort: M. audit-key: enhancement|src/capabilities.ts|PINNED_GODOT_VERSIONS

Lingua principale
TypeScript
Stelle
0
Fork
6
Merge medio
1g 21h
PR unite (30g)
8

Preparare l'ambiente

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 TMHSDigital/godot-correctness-mcp

Tutte le issue di TMHSDigital/godot-correctness-mcp

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.