Build failed unresolved import `tokio::task::JoinSet`, no `FirmwareImageBuilder` in `elf`
Closed this issue · 2 comments
JurajSadel commented
This commit is most likely causing build errors.
...
...
Compiling espflash v1.5.2-dev (https://github.com/esp-rs/espflash#aee5a820)
Compiling wokwi-server v0.1.0-dev (C:\Users\JurajSadel\.cargo\git\checkouts\wokwi-server-86f94bc568cd28c9\1d01f2f)
error[E0432]: unresolved import `tokio::task::JoinSet`
--> src\main.rs:11:5
|
11 | use tokio::task::JoinSet;
| ^^^^^^^^^^^^^^^^^^^^ no `JoinSet` in `task`
error[E0432]: unresolved import `espflash::elf::FirmwareImageBuilder`
--> src\main.rs:15:5
|
15 | use espflash::elf::FirmwareImageBuilder;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `FirmwareImageBuilder` in `elf`
error[E0061]: this function takes 8 arguments but 5 arguments were supplied
--> src\main.rs:155:27
|
155 | let image = opts.chip.get_flash_image(&firmware, b, p, None, None)?;
| ^^^^^^^^^^^^^^^----------------------------- three arguments of type `Option<FlashMode>`, `Option<FlashSize>`, and `Option<FlashFrequency>` are missing
|
note: associated function defined here
--> C:\Users\JurajSadel\.cargo\git\checkouts\espflash-85399b032e8bdfe6\aee5a82\espflash\src\chip\mod.rs:193:12
|
193 | pub fn get_flash_image<'a>(
| ^^^^^^^^^^^^^^^
help: provide the arguments
|
155 | let image = opts.chip.get_flash_image(&firmware, b, p, None, None, {Option<FlashMode>}, {Option<FlashSize>}, {Option<FlashFrequency>})?;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Some errors have detailed explanations: E0061, E0432.
For more information about an error, try `rustc --explain E0061`.
error: could not compile `wokwi-server` due to 3 previous errors
MabezDev commented
I've updated the install instructions section to temporarily fix this, I will fix the underlying issues once there is an espflash release.
mortenhauan commented
This issue in esp-idf-template is also related to here.