Skip to content

Fix #535: re-add Godot .gd script file detection - #667

Closed
azizur100389 wants to merge 1 commit into
Graphify-Labs:v3from
azizur100389:fix/issue-535-godot-gd-detection
Closed

Fix #535: re-add Godot .gd script file detection#667
azizur100389 wants to merge 1 commit into
Graphify-Labs:v3from
azizur100389:fix/issue-535-godot-gd-detection

Conversation

@azizur100389

Copy link
Copy Markdown
Contributor

Summary

Regression fix: .gd files were detected in v0.4.26 but silently dropped after upgrade, causing Godot users to see "No code files found - nothing to rebuild" even when .gd files were present in their project.

Add .gd to:

  • CODE_EXTENSIONS in detect.py so detect() classifies Godot scripts as code
  • _EXTENSIONS in extract.collect_files() so recursive directory scans pick them up

GDScript has no tree-sitter binding on PyPI, so AST extraction silently skips .gd files (existing behavior for unmapped extensions). The files now appear in detect output again and are processed by the LLM-based semantic extraction subagents as code, restoring the pre-regression behavior.

Closes #535

Test plan

  • tests/test_detect.py::test_classify_godot_gd — verifies classify_file() returns FileType.CODE for .gd paths
  • tests/test_extract.py::test_collect_files_picks_up_godot_gd — verifies collect_files() finds .gd files in a directory scan
  • Updated test_collect_files_from_dir supported set to include .gd
  • No regressions in existing tests

Regression: .gd files were detected in v0.4.26 but stopped being
recognized in newer versions. Users with Godot projects saw
"No code files found - nothing to rebuild" even when .gd files
were present.

Add .gd to:
- CODE_EXTENSIONS in detect.py so detect() classifies them as code
- _EXTENSIONS in extract.collect_files() so directory scans find them

GDScript has no tree-sitter binding on PyPI, so AST extraction
silently skips .gd files (existing behavior for unmapped extensions).
The files still appear in detect output and are processed by the
LLM-based semantic extraction subagents as code, restoring the
pre-regression behavior.
@azizur100389

Copy link
Copy Markdown
Contributor Author

Closing in favor of #NEW which targets the v6 default branch instead of stale v3. (Same fix, retargeted.)

@azizur100389

Copy link
Copy Markdown
Contributor Author

Replaced by #669 (same fix, retargeted to v6).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant