Skip to content

espup install fails with unsupported_file_extension: 'part' during Xtensa Rust installation #560

@markhaehnel

Description

@markhaehnel

Bug description

Running espup install fails while installing the Xtensa Rust toolchain.

The error reported is:

Error: espup::toolchain::unsupported_file_extension

  × Unsuported file extension: 'part'

This appears to happen because espup downloads the Xtensa Rust archive to a temporary *.part file and then tries to extract that temporary file, so the extractor sees the extension part instead of the real archive type.

I think this is a regression that came up with 0.17.0 as 0.16.0 is working fine.

  • Would you like to work on a fix? [n]

To Reproduce

Steps to reproduce the behavior:

  1. Install the latest espup
  2. Run espup install
  3. Wait for the Xtensa Rust installation step
  4. Observe the failure with unsupported_file_extension: 'part'

Expected behavior

espup install should complete successfully and extract the downloaded Xtensa Rust archive instead of failing on the temporary .part file.

Screenshots

Not applicable.

Environment

  • OS: Linux (Ubuntu 24.04.4)
  • espup version: v0.17.0

Additional context

Full output:

[info]: Installing the Espressif Rust ecosystem
[info]: Checking Rust installation
[info]: Installing Xtensa Rust 1.93.0.0 toolchain
[info]: Installing Xtensa LLVM
[info]: Installing RISC-V Rust targets ('riscv32imc-unknown-none-elf', 'riscv32imac-unknown-none-elf' and 'riscv32imafc-unknown-none-elf') for 'stable' toolchain
[info]: Installing GCC (xtensa-esp-elf)
[warn]: Installation for 'Xtensa Rust' failed, retrying. Error: Unsuported file extension: 'part'
[warn]: Failed to detect version of Xtensa Rust, reinstalling it
[info]: Uninstalling Xtensa Rust toolchain
[info]: Installing Xtensa Rust 1.93.0.0 toolchain
[warn]: Installation for 'Xtensa Rust' failed, retrying. Error: Unsuported file extension: 'part'
[warn]: Failed to detect version of Xtensa Rust, reinstalling it
[info]: Uninstalling Xtensa Rust toolchain
[info]: Installing Xtensa Rust 1.93.0.0 toolchain
[warn]: Installation for 'Xtensa Rust' failed, retrying. Error: Unsuported file extension: 'part'
[warn]: Failed to detect version of Xtensa Rust, reinstalling it
[info]: Uninstalling Xtensa Rust toolchain
[info]: Installing Xtensa Rust 1.93.0.0 toolchain
[warn]: Installation for 'Xtensa Rust' failed, retrying. Error: Unsuported file extension: 'part'
[00:00:00] ######################################## 4047448/4047448 rust-src.tar.xz download complete
[00:00:00] ######################################## 4047448/4047448 rust-src.tar.xz download complete
[00:00:00] ######################################## 4047448/4047448 rust-src.tar.xz download complete
[00:00:00] ######################################## 4047448/4047448 rust-src.tar.xz download complete                                     Error: espup::toolchain::unsupported_file_extension

  × Unsuported file extension: 'part'

From reviewing the current install flow, this looks like a regression in espup rather than an environment issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions