Skip to content

fix(vba): case-insensitive stub resolution and failed-reference retry on sync - #347

Merged
ardelperal merged 1 commit into
mainfrom
fix/vba-case-insensitive-retry
Nov 30, 2026
Merged

ardelperal merged 1 commit into
mainfrom
fix/vba-case-insensitive-retry

Conversation

@ardelperal

Copy link
Copy Markdown
Owner

Closes #346. Fixes part of #336 (item 1: an accessor added later now re-links on sync).

What changes (VBA only)

  • The stub resolver's qualifiedName lookup and the .bas fallback retry case-insensitively, and only when the exact lookup finds nothing. Every edge that linked before links the same way, and two or more matches still end declined-ambiguous.
  • A member-access stub that ends declined-not-found is still deleted (fix(vba): Property Get reads through member access produce no caller edges #334), but one failed row per caller, member and accessor is now kept. When the property is added to the class later, codegraph-vba sync re-links the caller without re-extracting its file. Fields, constants and library types (Recordset, Control…) are not kept.
  • The failed-reference retry also finds VBA rows by a case-insensitive name tail.
  • Other languages are unchanged (a TypeScript case mismatch stays unresolved, pinned by a test).

Evidence

  • 9 new tests: RED 3 → GREEN 9/9. The VBA and sync subsets pass (108 files, 1544 tests). tsc is clean.
  • AGEDYS (163 files), edge diff against 3.1.0: 6 lost and 27 gained, all calls function→function. The 6 lost were dead-end stubs (EXPEDIENTE.SetPropiedad, Pecal.SetPropiedad…), replaced by edges to the real procedures in Expediente.cls / PECAL.cls / suministrador.cls. The receivers are declared As EXPEDIENTE while the class is Expediente. The other 21 gained edges are property reads of the same kind.
  • The full suite timed out locally from machine contention (3 workers); CI on Node 22 is the authoritative run.

Follow-ups

… on sync

VBA names are case-insensitive, but the stub resolver and the failed
reference retry compared them case-sensitively, so a receiver declared
As EXPEDIENTE never reached class Expediente. For VBA only, the exact
lookup now falls back to a case-insensitive one (ambiguity still fails
closed).

A member-access stub that ends declined-not-found is still deleted, but
a failed row is now kept per caller/member/accessor, so a property added
to a class later re-links its callers on sync without re-extracting
them. Other languages keep their behaviour.

Closes #346
Fixes part of #336
@ardelperal
ardelperal merged commit fdcd1ed into main Nov 30, 2026
5 checks passed
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.

fix(vba): case-insensitive failed-reference retry on incremental sync

1 participant