Skip to content

--non-interactive not working correctly #902

@MabezDev

Description

@MabezDev

I'm trying to debug save-image_write-bin.sh test for #901, but I noticed that even if I supply --chip espflash still tries to open a port selection dialogue. Even worse, it tries to open it but fails because of the --non-interactive flag, which is bad because I'm literally in a terminal that can do the dialogue.

[2025-06-24T13:41:49Z INFO ] Image successfully saved!
Writing binary
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.09s
     Running `target/debug/espflash write-bin --chip esp32s3 --monitor 0x0 app.bin --non-interactive`
[2025-06-24T13:41:49Z INFO ] Detected 2 serial ports
[2025-06-24T13:41:49Z INFO ] Ports which match a known common dev board are highlighted
[2025-06-24T13:41:49Z INFO ] Please select a port
Error: espflash::dialoguer_error

  × IO error: not a terminal
  ╰─▶ not a terminal

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

Todo

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions