Skip to content

fix(erlang): -include_lib import extraction not returning source/names correctly #1508

@carlos-alm

Description

@carlos-alm

Pre-existing failure on feat/parity-skill branch discovered during #1471 work.

tests/parsers/erlang.test.ts line 140 fails:

records -include_lib with kind "include_lib" so consumers resolve against OTP paths
AssertionError: expected undefined to be defined

The test expects that -include_lib("kernel/include/file.hrl") produces an import with source === 'kernel/include/file.hrl' and names === ['include_lib'], but the extractor returns undefined.

This is unrelated to #1471 (node parity for jelly-micro fixture) and predates that fix.

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