-
-
Notifications
You must be signed in to change notification settings - Fork 648
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
raco install
is a common beginner error with a confusing error message
#3437
Comments
I sympathize but disagree with the proposed solution. "Did you mean" works great for correcting queries like Personally, I think the current hint (Frequently used commands) works great already. Is it the case that you saw people still confused after reading the hint? |
Yes, because the current hint doesn't list |
Would it help to reorder "Frequently used commands" to have "planet" probably should be removed from the list. It's no longer a frequently used command, and having too many items could make users disinterested in reading the hint. |
I think revisiting the contents and order of the list could help, but I'm not sure I understand the argument against the kind of error message I'm proposing. What would be the harm? |
Maybe |
I definitely like that approach in the long term. I don't have bandwidth to design something like that anytime soon though. In the short term, is there a simple special case fix we could do that wouldn't require designing a general approach? The two options I can think of are: 1) Make a
|
The first step is to extend Also note that in the current list of length 4, the "prominence" field is practically optional (though it's technically not). So we might as well really make it optional in the new interface. One possible interface is:
We could also go all-in:
Another possibility is:
For the latter two, the list of 4 values must still supported for backward compatibility. |
I think a hash makes the most sense here. |
I'll just note that this strategy seems different from what I had in mind. If you annotate existing commands with I had in mind adding a separate There's the usual trade-off here between a DSL for commands (and having |
What version of Racket are you using?
e.g., 7.8 [3m]
What program did you run?
What should have happened?
New users do this often enough when trying to install a package for the first time that I think there should be a special case error message like the following:
If you got an error message, please include it here.
The text was updated successfully, but these errors were encountered: