Skip to content

log global dependencies breaks with opaque error message #3193

@lastmjs

Description

@lastmjs

If you haven't installed one or more of the Rust dependencies that are installed by running npx azle dev setup, then if you try to run npx azle dev template --all (the flag probably doesn't matter) then you will get this error:

Azle BuildError: Error: Could not parse cargo-deny version

It seems like the source of this issue is here: src/stable/build/utils/versions/get_cargo_version.ts

Look at this line:

const cargoOutput = execSyncPretty('cargo install --list').toString();

So if you haven't installed a cargo global dependency yet, then it will just fail to parse. It seems like we should at least have a better error for this case, so detect that the package hasn't been installed and explain that the dev should run npx azle dev setup.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions