Skip to content

feat(extractor): add Erlang language extractor - #3714

Closed
Abdul535 wants to merge 1 commit into
Graphify-Labs:v8from
Abdul535:codex/erlang-extractor
Closed

Abdul535 wants to merge 1 commit into
Graphify-Labs:v8from
Abdul535:codex/erlang-extractor

Conversation

@Abdul535

Copy link
Copy Markdown
Contributor

What does this PR do?

  • add an Erlang extractor for modules, name/arity functions, exports, records, types, macros, and behaviours
  • wire .erl, .hrl, and .escript discovery plus include and remote-call resolution
  • add the optional Erlang parser extra with fixtures and malformed-input coverage

Type of change

  • Bug fix
  • New feature
  • Documentation
  • Tests or CI
  • Refactor
  • Security fix

How was this tested?

  • 5 passed in the focused Erlang suite
  • Ruff passed
  • Pyright passed with 0 errors
  • graphify update . completed

Graphify-specific checklist

  • I added or updated tests for behavior changes.
  • I updated documentation or confirmed that no documentation is needed.
  • I updated generated skill artifacts when changing their source fragments.
  • I considered compatibility across supported Python versions.
  • I confirmed that no API keys, generated graph data, or local-only files are included.

safishamsi added a commit that referenced this pull request Sep 22, 2026
…3719, #3714 follow-ups)

- #3716 (Solidity): non-callable members (struct/enum/event/error/state-var) had
  no signature and fell back to the LINE NUMBER for their node id, churning ids on
  incremental rebuilds. Use the member name (unique per kind in a contract scope)
  as the discriminator instead.
- #3719 (method-ghost dedup): gate the candidate index on a method-shaped label
  (leading '.' AND '()' suffix) so a dotfile label like '.env' is never treated as
  a method; normalize the index/lookup key via make_id for parity with the alias
  path. Adds a negative test proving two same-named methods in one file are left
  unmerged (the len==1 ambiguity guard).
- #3714 (Erlang): the remote-call resolver reads module/name/arity off node
  metadata, which the incremental context builders stripped for non-Ruby langs,
  so foo:bar() silently failed to resolve on 'graphify update'. Forward the Erlang
  resolution metadata keys through the watch.py/cli.py allow-lists (same fix shape
  as the elixir _elixir_module marker).

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@safishamsi

Copy link
Copy Markdown
Member

Shipped in v0.9.66 (on PyPI). Cherry-picked with authorship preserved so it shows under your GitHub contributions. Thanks @Abdul535! (New Erlang extractor; on merge I added incremental-metadata forwarding so remote foo:bar() calls resolve on graphify update.)

@safishamsi safishamsi closed this Sep 22, 2026
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.

2 participants