Skip to content

fix(erlang): 12 parser tests failing (include_lib, records, imports) #1477

@carlos-alm

Description

@carlos-alm

Summary

Running npx vitest run tests/parsers/erlang.test.ts shows 12 failures, e.g.:

FAIL  tests/parsers/erlang.test.ts > Erlang parser > records -include_lib with kind "include_lib" so consumers resolve against OTP paths
AssertionError: expected undefined to be defined

Context

Discovered during the deps-audit security remediation (removing the malicious `tree-sitter-erlang` devDep). The WASM file, extractor, and test code are untouched — these failures are pre-existing.

Investigation needed

  • Check whether the WASM was rebuilt from a grammar version that changed node kinds/field names
  • Compare expected AST shapes in the failing tests against what the committed grammars/tree-sitter-erlang.wasm actually produces
  • Either fix the extractor in src/domain/parser.ts or regenerate the WASM from a compatible source

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions