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

Abierto
#120 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 2 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
55/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
godot, typescript
Área
devtools

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

Lenguaje dominante
TypeScript
Estrellas
0
Forks
6
Merge medio
1 d 21 h
PR fusionados (30 d)
8

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de TMHSDigital/godot-correctness-mcp

Todos los issues de TMHSDigital/godot-correctness-mcp

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.