scene-node-path-missing false positive for $Path inside an inner class
Les mainteneurs répondent en général sous 2 jours
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 2/5
- Temps estimé
- 1-3 heures
- Accessibilité débutants
- 84/100
- Type d'issue
- Bug
- Clarté
- Clairement spécifiée
- Activité
- Active
- Stack technique
- typescript
- Domaine
- testing-qa
Piste de recherche
Read src/scenes/node-paths.ts around lines 31–49 to see how pathUses walks class definitions, then review the related cases in test/node-paths.test.ts. Run npm run build && npm test to check the behavior; done means the inner-class $Label repro reports no warning while a top-level $Missing still does.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Summary
scene-node-path-missing resolves $Path and get_node("...") literals inside inner classes (class Helper extends Node:) against the scene node the outer script is attached to. Those paths refer to the inner class instance's children, so the warning is a false positive.
Where
src/scenes/node-paths.ts:31-49(pathUseswalks the whole tree, includingclass_definitionbodies)
Steps to reproduce
- Create
main.tscnwith rootMain(scriptmain.gd,extends Node2D) and one child,Sprite. - In
main.gd:class Helper extends Node: func f() -> void: $Label.show() gdcorrect validate-scenes .reportsWARNING scene-node-path-missing Node path "Label" does not exist under this script's node.
Impact
Scripts that nest Node subclasses get spurious warnings, and --fail-on warning turns them into CI failures.
Suggested fix
In pathUses, do not descend into class_definition nodes. Only the top-level class body is attached to the scene node.
Acceptance criteria
- The repro reports nothing.
- A top-level
$Missingstill reports.
Getting started
- Relevant files:
src/scenes/node-paths.ts,test/node-paths.test.ts - How to run tests:
npm run build && npm test
Filed by repo-audit/full-audit at e836036. Severity: medium. Effort: S. audit-key: bug|src/scenes/node-paths.ts|pathUses
- Langage dominant
- TypeScript
- Étoiles
- 0
- Forks
- 6
- Merge moyen
- 1 j 21 h
- PR mergées (30 j)
- 8
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Aucun modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de TMHSDigital/godot-correctness-mcp
-
enhancement good first issue severity: medium
Difficulté 2/5 1-3 heures Accessibilité débutants 85/100
TMHSDigital/godot-correctness-mcp#123 ·
Les mainteneurs répondent en général sous 2 jours
-
dependencies good first issue severity: low
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
TMHSDigital/godot-correctness-mcp#116 ·
Les mainteneurs répondent en général sous 2 jours
-
bug good first issue severity: low
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100
TMHSDigital/godot-correctness-mcp#107 ·
Les mainteneurs répondent en général sous 2 jours
-
bug good first issue severity: low
Difficulté 2/5 1-3 heures Accessibilité débutants 85/100
TMHSDigital/godot-correctness-mcp#106 ·
Les mainteneurs répondent en général sous 2 jours
-
bug good first issue severity: medium
Difficulté 2/5 1-3 heures Accessibilité débutants 86/100
TMHSDigital/godot-correctness-mcp#104 ·
Les mainteneurs répondent en général sous 2 jours
Toutes les issues de TMHSDigital/godot-correctness-mcp
Issues similaires
-
clawsweeper:needs-maintainer-review clawsweeper:needs-product-decision clawsweeper:no-new-fix-pr clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster P3
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
openclaw/openclaw#203385 · 1 commentaire · 1 réaction ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
nwverse/persona#12800 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 80/100
Les mainteneurs répondent en général sous 1 jour
-
[MCP]: page snapshots in .playwright-mcp/ are not git-ignored (.playwright-cli/ is, since #42318)Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
microsoft/playwright#44289 ·
Les mainteneurs répondent en général sous 1 jour
-
good first issue
Difficulté 2/5 Une demi-journée Accessibilité débutants 65/100
Les mainteneurs répondent en général sous 1 jour