Skip to content

Enabling auto-completion in zsh will result in errors. (ESPTOOL-1228) #1138

@TinyuZhao

Description

@TinyuZhao

Operating System

macOS 15.4.1 (24E263)

Esptool Version

esptool v5.1.0

Python Version

Python 3.13.3

More Information

When I followed the documentation to add autocompletion for esptool, it threw a bunch of errors.

(eval):2: no matches found: [OPTIONS]
                                                                                
 Usage: esptool [OPTIONS] COMMAND [ARGS]...                                     
                                                                                
 Try 'esptool -h' for help                                                      
╭─ Error ──────────────────────────────────────────────────────────────────────╮
│ No such command 'v5.1.0'.                                                    │
╰──────────────────────────────────────────────────────────────────────────────╯
                                                                                
(eval):5: command not found: with
(eval):7: command not found: ╭─
(eval):8: bad pattern: [auto
(eval):8: command not found: esp8266
(eval):8: command not found: esp32
(eval):8: command not found: esp3
(eval):9: command not found: │
(eval):9: command not found: esp32s3
(eval):9: command not found: esp32c3
(eval):9: command not found: esp3
(eval):10: command not found: │
(eval):10: command not found: esp32c6
(eval):10: command not found: esp32c61
(eval):10: command not found: esp
(eval):11: command not found: │
(eval):11: command not found: esp32h2
(eval):11: command not found: esp32h21
(eval):11: command not found: es
(eval):12: command not found: │
(eval):12: command not found: esp32h4]
(eval):13: command not found: │
(eval):14: command not found: │
(eval):15: command not found: │
(eval):16: no matches found: [TEXT]
(eval):17: command not found: │
(eval):18: command not found: │
(eval):19: command not found: │
(eval):20: command not found: │
(eval):21: bad pattern: [default-reset
(eval):21: command not found: usb-reset
(eval):22: command not found: │
(eval):22: command not found: no-reset
(eval):22: command not found: no-reset-no-sy
(eval):23: command not found: │
(eval):24: bad pattern: [hard-reset
(eval):24: command not found: soft-reset
(eval):24: command not found: n
(eval):25: command not found: │
(eval):25: command not found: no-reset-stub
(eval):25: command not found: wa
(eval):26: command not found: │
(eval):27: command not found: │
(eval):28: command not found: │
(eval):29: command not found: │
(eval):30: command not found: │
(eval):31: command not found: │
(eval):32: command not found: │
(eval):33: command not found: │
(eval):34: command not found: │
(eval):35: command not found: │
(eval):36: command not found: │
(eval):37: command not found: │
(eval):38: bad pattern: [1.8V
(eval):38: command not found: 1.9V
(eval):38: command not found: OFF]
(eval):39: command not found: │
(eval):40: no matches found: (use with care).
(eval):41: command not found: │
(eval):42: command not found: │
(eval):43: command not found: │
(eval):44: command not found: │
(eval):45: command not found: │
(eval):46: command not found: ╰──────────────────────────────────────────────────────────────────────────────╯
(eval):47: command not found: ╭─
(eval):48: command not found: │
(eval):49: command not found: │
(eval):50: command not found: │
(eval):51: command not found: │
(eval):52: command not found: │
(eval):53: command not found: │
(eval):54: command not found: │
(eval):55: command not found: │
(eval):56: no matches found: (bootloader or  │\n│                     application).
(eval):58: command not found: │
(eval):59: command not found: │
(eval):60: command not found: │
(eval):61: command not found: ╰──────────────────────────────────────────────────────────────────────────────╯
(eval):62: command not found: ╭─
(eval):63: command not found: │
(eval):64: command not found: │
(eval):65: command not found: │
(eval):66: command not found: │
(eval):67: command not found: │
(eval):68: command not found: │
(eval):69: command not found: │
(eval):70: no matches found: (Serial Flash Discoverable           │\n│                     Parameters).
(eval):72: command not found: │
(eval):73: command not found: │
(eval):74: command not found: │
(eval):75: command not found: ╰──────────────────────────────────────────────────────────────────────────────╯
(eval):2: no matches found: [OPTIONS]
[4] 21171
(eval):4: command not found: Flash
(eval):6: command not found: ╭─
(eval):7: command not found: │
(eval):8: command not found: ╰──────────────────────────────────────────────────────────────────────────────╯
(eval):9: command not found: ╭─
(eval):10: no matches found: (using known │\n│                     key).
(eval):12: command not found: │
(eval):13: command not found: │
(eval):14: no matches found: [deprecated]
(eval):15: command not found: │
(eval):16: command not found: │
(eval):17: command not found: │
(eval):18: command not found: │
(eval):19: no matches found: (using    │\n│                     known key).
(eval):21: command not found: │
(eval):22: command not found: │
(eval):23: command not found: │
(eval):24: command not found: │
(eval):25: command not found: │
(eval):26: command not found: │
(eval):27: command not found: │
(eval):28: command not found: │
(eval):29: command not found: │
(eval):30: command not found: │
(eval):31: command not found: │
(eval):32: command not found: ╰──────────────────────────────────────────────────────────────────────────────╯
                                                                                
 Usage: espsecure [OPTIONS] COMMAND [ARGS]...                                   
                                                                                
 Try 'espsecure -h' for help                                                    
╭─ Error ──────────────────────────────────────────────────────────────────────╮
│ No such command 'v5.1.0'.                                                    │
╰──────────────────────────────────────────────────────────────────────────────╯
                                                                                
[4]  + exit 2     espsecure v5.1.0 - ESP32 Secure Boot
(eval):1: bad pattern: ^[[1

Steps to Reproduce

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions