bytecodealliance / bytecodealliance/wasm-tools

Support multiple packages with deps that have the same versions

Open
#1,996 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
1.8k
Forks
351
Avg merge
16h 57m
Merged PRs (30d)
38

Description

I mis-configured wit-bingen macro and got the error message:

```
proc macro panicked
message: assertion failed: prev.is_none()
```

When trying to debug it I tried using `cargo expand` and `cargo docs` to track down what I did wrong but the gave the same error.

After some digging and forking the various repositories, I eventually tracked the error message to this repo which has a bunch of asserts: https://github.com/search?q=repo%3Abytecodealliance%2Fwasm-tools%20%20prev.is_none&type=code

As a developer it would be nice to have a better error message for these asserts to improve the debugging experience.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.