Skip to content

IDL generation fails for workspace defined Shank #113

@tonton-sol

Description

@tonton-sol

When using shank defined in the workspace cargo.toml, with shank = { workspace = true } in the crate cargo.toml. The script fails to generate IDLs.

$ pnpm generate:idls

> @ generate:idls /Users/<USER>/my-program
> zx ./scripts/generate-idls.mjs

/Users/<USER>/my-program/node_modules/.pnpm/[email protected]/node_modules/text-table/index.js:59
    return m ? m.index + 1 : c.length;
                               ^

TypeError: Cannot read properties of undefined (reading 'length')
    at dotindex (/Users/<USER>/my-program/node_modules/.pnpm/[email protected]/node_modules/text-table/index.js:59:32)
    at /Users/<USER>/my-program/node_modules/.pnpm/[email protected]/node_modules/text-table/index.js:11:21
    at Array.forEach (<anonymous>)
    at forEach (/Users/<USER>/my-program/node_modules/.pnpm/[email protected]/node_modules/text-table/index.js:73:31)
    at /Users/<USER>/my-program/node_modules/.pnpm/[email protected]/node_modules/text-table/index.js:10:9
    at Array.reduce (<anonymous>)
    at reduce (/Users/<USER>/my-program/node_modules/.pnpm/[email protected]/node_modules/text-table/index.js:63:30)
    at module.exports (/Users/<USER>/my-program/node_modules/.pnpm/[email protected]/node_modules/text-table/index.js:9:20)
    at Rustbin.check (/Users/<USER>/my-program/node_modules/.pnpm/@[email protected]/node_modules/@metaplex-foundation/rustbin/dist/src/rustbin.js:51:55)
    at async rustbinMatch (/Users/<USER>/my-program/node_modules/.pnpm/@[email protected]/node_modules/@metaplex-foundation/rustbin/dist/src/rustbin.js:146:51)

Node.js v23.5.0
 ELIFECYCLE  Command failed with exit code 1.

Is this the intended behavior?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions