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

未关闭
#120 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 2 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
55/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
godot, typescript
领域
devtools

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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

主要语言
TypeScript
星标
0
派生
6
平均合并
1 天 21 小时
30 天内合并 PR
8

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

TMHSDigital/godot-correctness-mcp 的其他 Issue

查看 TMHSDigital/godot-correctness-mcp 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。