Fuzzy search on unrecognized keyword arguments to give suggestions #3750
Labels
Category: Internals
Related to JuMP internals
Type: Error Messages
Can be fixed with better error message
Welcome. Use this GitHub issue to suggest a new feature for JuMP.
Is your feature request related to a problem? Please describe.
When using JuMP, there are many keyword arguements.
It is sometimes hard to remember exactly how they are spelt.
E.g. casing, pluralization, typos etc.
Describe the solution you'd like
When a keyword argument is not recognized display a list of similar keyword arguments as per fuzzy string distence.
Describe alternatives you've considered
Implement this in Julia itself: JuliaLang/julia#54521
however, JuMP isn't actually hitting the usual path for this, this is a manually thrown error, so implementing it in julia itself would not work.
Additional context
Add any other context or screenshots about the feature request here.
Here is an example:
I would like the output to include:
The text was updated successfully, but these errors were encountered: