You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
std help -f errors when there are no results #13143
(Note: I should be able to fix this - Just filing it as a TODO for myself. If someone beats me to it, I won't be disappointed, but I should get to it soon).
I recently shifted over to running use std help by default. I was just searching the help for the word "else" and got an error. Retested with the builtin help and it works fine, albeit there are no results (so I need to add a search term to if, at the least).
How to reproduce
>help-f else
╭────────────╮
│ empty list │
╰────────────╯
> use std help>help-f elseError: × std::help::item_not_found
╭─[entry #54:1:1]1 │ help-f else
· ──┬─
· ╰── item not found
╰────
Expected behavior
std help -f should return an empty list when there are no results.
switching to std help is a good dogfooding exercise. One of the reasons why we never made this the permanent solution is because it was so much slower. It would be good to be able to use the stdlib to do this if we can keep up with performance and all new commands are discoverable without having to change the stdlib code.
Activity
fdncred commentedon Jun 13, 2024
switching to
std helpis a good dogfooding exercise. One of the reasons why we never made this the permanent solution is because it was so much slower. It would be good to be able to use the stdlib to do this if we can keep up with performance and all new commands are discoverable without having to change the stdlib code.Added search terms to `if` (#13145)
Return an empty list when no `std help --find` results are found (nus…
Return an empty list when no `std help --find` results are found (nus…