Node-path and connection checks resolve scripts by path only, ignoring uid

Đang mở
#110 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 2 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
76/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
godot, node.js, typescript
Lĩnh vực
backend, testing

Hướng nghiên cứu

Read src/scenes/validate.ts to understand how resolveReference prefers uid over path, then trace scriptViews in src/scenes/node-paths.ts and checkConnections in src/scenes/scene-graph.ts. Run the UID tests in test/uids.test.ts and add coverage for a script resource with a stale path and valid uid. Done means node-path and connection checks still inspect that script; the issue lists npm run build && npm test.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

severity: low tech-debt

Summary

#66 unified uid:// resolution for ext_resources, autoloads, the main scene and registry scripts, but the node-path and signal-connection checks still map ext_resource ids to scripts by their path attribute only.

Where

  • src/scenes/node-paths.ts:57-61 (scriptViews)
  • src/scenes/scene-graph.ts:177-182, src/scenes/scene-graph.ts:191-194 (checkConnections)
  • Compare src/scenes/validate.ts:97-127 (resolveReference: uid first, then path)

Impact

When an ext_resource has a stale path but a valid uid (the case scene-ext-resource-path-stale describes), Godot loads the uid's script. The node-path and connection checks silently skip that script, so they miss findings. A third resolution strategy is left to drift.

Suggested fix

Add one per-scene helper, "ext id -> loaded script absolute path", built on resolveReference, and use it in validate.ts, node-paths.ts and scene-graph.ts.

Acceptance criteria

  • A scene whose script ext_resource has a stale path and a valid uid still gets node-path and connection checks.

Getting started

  • Relevant files: src/scenes/node-paths.ts, src/scenes/scene-graph.ts, src/scenes/validate.ts, test/uids.test.ts
  • How to run tests: npm run build && npm test

Related: #66


Filed by repo-audit/full-audit at e836036. Severity: low. Effort: S. audit-key: tech-debt|src/scenes/scene-graph.ts|checkConnections

Ngôn ngữ chính
TypeScript
Star
0
Fork
6
Merge trung bình
1 ngày 21 giờ
Pull request đã merge (30 ngày)
8

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của TMHSDigital/godot-correctness-mcp

Tất cả issue của TMHSDigital/godot-correctness-mcp

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.