Skip to content

Fuzzy suggestions for tasks no longer work #2192

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
gregtatum opened this issue Apr 21, 2025 · 1 comment · Fixed by #2200
Closed

Fuzzy suggestions for tasks no longer work #2192

gregtatum opened this issue Apr 21, 2025 · 1 comment · Fixed by #2200
Labels
area: ui Changes related to the UI of Task.

Comments

@gregtatum
Copy link

Description

Our task file is getting kind of long (not in a bad way). I typed in a task incorrectly and thought it would be quite nice to suggest the closest task when the spelling is slightly off. I've had other tools automatically run the command it thinks you wanted, but just offering a sugestion would improve the ergonomics here.

For instance, something like this:

➤ task line-pyright
task: Available tasks for this project:
[...]
* lint:                        Run all available linting tools.
* lint-black:                  Checks the styling of the Python code with Black.
* lint-black-fix:              Fixes the styling of the Python code with Black.
* lint-eslint:                 Checks the styling of the JS code with eslint.
* lint-eslint-fix:             Fixes the styling of the JS code with eslint.
* lint-fix:                    Fix all automatically fixable errors. This is useful to run before pushing.
* lint-pyright:                Runs type checking on python files.
* lint-ruff:                   Lints the Python code with the ruff linter.
* lint-ruff-fix:               Fixes Python code lint errors with the ruff linter.
[...]
task: Task "line-pyright" does not exist.
Did you mean `task lint-pyright`?

I searched through the issues and didn't see this feature request anywhere.

@task-bot task-bot added the state: needs triage Waiting to be triaged by a maintainer. label Apr 21, 2025
@vmaerten vmaerten added area: ui Changes related to the UI of Task. and removed state: needs triage Waiting to be triaged by a maintainer. labels Apr 21, 2025
@pd93
Copy link
Member

pd93 commented Apr 22, 2025

@gregtatum Thanks for the report. This request is actually a duplicate of #867 which was implemented in #880 and released in v3.17.0 in Oct 2022.

However. It looks like it regressed immediately in v3.18.0 and no-one ever reported it. Strange that I never noticed as I remember really liking the feature at the time. I'm going to reclassify this as a bug as the code already exists. Just something not working correctly.

@pd93 pd93 changed the title Suggest the correct task for mispellings Fuzzy suggestions for tasks no longer work Apr 22, 2025
@vmaerten vmaerten linked a pull request Apr 23, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: ui Changes related to the UI of Task.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants