Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failed unresolved import tokio::task::JoinSet, no FirmwareImageBuilder in elf #9

Closed
JurajSadel opened this issue Jun 22, 2022 · 2 comments · Fixed by #14
Closed

Comments

@JurajSadel
Copy link

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
Copy link
Owner

I've updated the install instructions section to temporarily fix this, I will fix the underlying issues once there is an espflash release.

@mortenhauan
Copy link

This issue in esp-idf-template is also related to here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants