Add Godot language and scene graph support#364
Open
KirisamaMarisa wants to merge 20 commits into
Open
Conversation
|
+1 for this PR. Godot support would be really valuable for my workflow as well. |
i-snyder
added a commit
to i-snyder/codegraph
that referenced
this pull request
Jul 1, 2026
main added a language-family gate (applyLanguageGate/LANGUAGE_FAMILY) on `references` lookups after PR colbymchenry#364 branched. GDScript node-path refs (language: gdscript) and scene nodes (language: godot_resource) were both absent from LANGUAGE_FAMILY, so sameLanguageFamily() returned false and every cross-file `.gd` -> `.tscn` node-path reference was silently dropped post-merge, even though it built and ran without error. - name-matcher.ts: register gdscript/godot_resource as a shared 'godot' family, same pattern as the existing csharp/razor -> 'dotnet' entry. - extraction-version.ts: bump EXTRACTION_VERSION 24 -> 25 so existing indexes are prompted to re-index and pick up Godot support, per this file's own documented convention for a new language extractor. - CHANGELOG.md: add the [Unreleased] entry for GDScript/Godot support, crediting the original PR (colbymchenry#364, @KirisamaMarisa). Verified: the previously-failing resolution test now passes; targeted re-run of cross-family-sensitive tests (C/C++, C#, Objective-C, chained calls) shows no regressions. Re-indexed a real 152-file Godot 4 project: node count unchanged (extraction output identical), edge count +57 - exactly the class of edge this restores. Spot-checked a real unambiguous scene-node reference resolving correctly post-fix. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012QNbowuGFTfF78PqeE4W4T
i-snyder
added a commit
to i-snyder/codegraph
that referenced
this pull request
Jul 1, 2026
colbymchenry#364) Rebasing colbymchenry#364 onto current main pulled in applyLanguageGate, a cross-language-family gate main added to `references` lookups after colbymchenry#364 branched. GDScript node-path refs (language: gdscript) and scene nodes (language: godot_resource) were both absent from LANGUAGE_FAMILY, so sameLanguageFamily() returned false and every cross-file `.gd` -> `.tscn` node-path reference was silently dropped by the merge, even though it built and ran without error. Register gdscript/godot_resource as a shared 'godot' family, the same pattern as the existing csharp/razor -> 'dotnet' entry.
i-snyder
added a commit
to i-snyder/codegraph
that referenced
this pull request
Jul 1, 2026
i-snyder
added a commit
to i-snyder/codegraph
that referenced
this pull request
Jul 1, 2026
colbymchenry#364) Rebasing colbymchenry#364 onto current main pulled in applyLanguageGate, a cross-language-family gate main added to `references` lookups after colbymchenry#364 branched. GDScript node-path refs (language: gdscript) and scene nodes (language: godot_resource) were both absent from LANGUAGE_FAMILY, so sameLanguageFamily() returned false and every cross-file `.gd` -> `.tscn` node-path reference was silently dropped by the merge, even though it built and ran without error. Register gdscript/godot_resource as a shared 'godot' family, the same pattern as the existing csharp/razor -> 'dotnet' entry.
i-snyder
added a commit
to i-snyder/codegraph
that referenced
this pull request
Jul 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds first-class Godot project indexing for CodeGraph, covering GDScript scripts plus Godot scene/resource files.
Validation
Real project smoke result: the local Godot validation project indexed 1,203 files with 41,113 nodes and 78,824 edges; queries successfully linked scene nodes, @onready $ node paths, res:// scene references, scene instances, and signal handler relationships.