Skip to content

Cross-namespace references use bare names #94

Open

Description

@Kinflou
  • The TypeScript generator emits bare names for references across schemas; the Rust generator was fixed to qualify them.
  • Wrong generated code when two schemas define the same name.

Activity

  1. added
    bugSomething isn't working
    P3Eventually
    codegenCode generation
    on Oct 31, 2026
  2. Kinflou commented on Nov 15, 2026

    @Kinflou
    MemberAuthor

    Audit note, issue left open. This looks done: the TypeScript generator resolves cross-schema names through the symbol table (generation codegen/src/symbols.rs, whose header records that comline-typescript#32 fixed it) and writes an import header with 'declared as bound' aliasing (golden import_alias/typescript/api.ts: import type { Shared as Aliased }), and comline-typescript#119 and #169 followed. What is missing is proof for the exact case in the title: no fixture has two schemas declaring the same name. A fixture like that would settle it and let this be closed.

  3. Kinflou commented on Nov 15, 2026

    @Kinflou
    MemberAuthor

    A fixture that settles this is filed as ComlineProject/generation#156: two schemas declaring the same type name, with goldens for both generators.

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

    P3EventuallybugSomething isn't workingcodegenCode generation

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions