Skip to content

[BUG] bindings generation command crashes due to "not found in filtered tokens" #2780

@alexhaloETH

Description

@alexhaloETH

When running the command sozo build --unity the build process runs fine but the creation of the bindings for the unity game engine seem to error out

Although not 100% sure, I believe to reproduce this bug you would need a model with a generic type, in our case I believe TStats model can either be a i8 or u8 Link to our repo and where i think the issue generates from

The bindings should generate full without any errors

Proof
alexhalo@Legion:~/Work-Repos/blob-arena-contracts$ sozo build --unity Updating git repository https://github.com/dojoengine/dojo Compiling blob_arena v0.7.1 (/home/alexhalo/Work-Repos/blob-arena-contracts/Scarb.toml) Finished dev profile target(s) in 13 seconds thread 'main' panicked at /home/runner/.cargo/git/checkouts/cainome-971a2d0b3a80c185/5c2616c/crates/parser/src/tokens/mod.rs:161:25: Composite blob_arena::stats::TStats::<core::integer::u8> not found in filtered tokens note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

This error was was reproduced in 1.0.1 1.0.4 1.0.5 version of dojo
PS: the v0.7.1 in the naming you can ignore the project is based on dojo version 1.0.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingsozo

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions