Skip to content

[BUG] PromptBase.on_validate_error should explicitly enable markup #3881

@mgedmin

Description

@mgedmin

Describe the bug

I create a console with Console(markup=False) and then pass it to Confirm.ask(..., console=console). If the user doesn't pick a valid choice, they get an error that says [prompt.invalid]Please enter Y or N.

I think PromptBase.on_validate_error() should explicitly pass markup=true to self.console.print(error).

Platform

Every platform, it's a logic bug. (I'm on Ubuntu 25.10 with gnome-terminal, which doesn't matter.)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions