Skip to content

[MR-M1] Module resolver: circular imports silently drop symbols #45

Closed

Description

@godofecht

Description

In src/flow/module_resolver.py (lines ~50-54, 167-170), circular imports are detected but only warned — symbols from the circular dependency are never loaded. This causes mysterious "undefined function" errors later.

Fix

Either error on circular imports or implement lazy loading to resolve them.

Audit ID: MR-M1

Severity: Medium | Category: Compiler - module_resolver.py

Activity

  1. added
    bug
    on Feb 7, 2026
  2. godofecht commented on Feb 9, 2026

    @godofecht
    ContributorAuthor

    Fixed in e1ce61e. Summary: MLIR vector literal generation avoids SSA in dense<>; module resolver now errors on symbol
    collisions and circular imports.

  3. godofecht commented on Feb 9, 2026

    @godofecht
    ContributorAuthor

    Fixed in e1ce61e. Summary: MLIR vector literal generation avoids SSA in dense<>; module resolver now errors on symbol
    collisions and circular imports.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugcompilermedium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions