prompt-toolkit / prompt-toolkit/python-prompt-toolkit
Is it possible to display errors raised in completer in the validator bar?
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 10.6k
- Forks
- 815
- PR merge metrics
- No merged PRs in 30d
Description
I have a completer object, and it raises some exceptions.
I would like to display the errors raised in it, in the validator bottom bar.
And I do have a custom validator enabled in my prompt session object.
So, any idea on how to do it?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing how the completer object reports exceptions and how the custom validator is connected to the prompt session. Then inspect the validator bottom bar entry point and determine whether completer errors can be surfaced there; done means the behavior is defined and covered for the reported completer and validator setup.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100