Skip to content

fix: skip Antigravity IDE install roots during discovery#468

Open
rudi193-cmd wants to merge 1 commit into
DeusData:mainfrom
rudi193-cmd:fix/exclude-ide-install-dirs
Open

fix: skip Antigravity IDE install roots during discovery#468
rudi193-cmd wants to merge 1 commit into
DeusData:mainfrom
rudi193-cmd:fix/exclude-ide-install-dirs

Conversation

@rudi193-cmd

Copy link
Copy Markdown

Summary

Fixes #403 by treating Antigravity IDE install directories under AppData/Local/Programs as non-project roots during discovery.

When auto-index passes the IDE installation directory itself as repo_path, basename-only directory skips do not help because the walker starts inside that root. This adds a normalized full-path guard before the walk so discovery succeeds with an empty file list instead of indexing IDE runtime assets/binaries.

Changes

  • Add looks_like_ide_install_root() path normalization (\\ -> /, ASCII lowercase)
  • Short-circuit cbm_discover_ex() for AppData/Local/Programs/Antigravity* roots
  • Add regression coverage with a synthetic AppData/Local/Programs/Antigravity IDE tree containing source-like files

Test plan

  • Discover-only regression runner: 75 passed
  • Full make -f Makefile.cbm test could not compile in this environment because system zlib.h is missing:
tests/test_cli.c:23:10: fatal error: zlib.h: No such file or directory
src/cli/cli.c:87:10: fatal error: zlib.h: No such file or directory

Made with Cursor

Auto-index integrations can pass the IDE installation directory itself as a
repo root. Treat Antigravity installs under AppData/Local/Programs as
non-project roots so discovery returns an empty file list instead of indexing
runtime assets and binaries.

Fixes DeusData#403

Co-authored-by: Cursor <cursoragent@cursor.com>
Signed-off-by: rudi193-cmd <rudi193@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
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.

The IDE's installation directory is unnecessarily indexed.

1 participant