-
Notifications
You must be signed in to change notification settings - Fork 697
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
Fix #6856 Make --lib
warning louder and clearer
#6857
Fix #6856 Make --lib
warning louder and clearer
#6857
Conversation
But generally. I'm not sure if this is a joke. Shouldn't we try to find and work (i.e. discuss) on proper solutions like #6481. |
It's not a joke. People consistently aren't reading the messaging and going to the internet for help. An ASCII banner would be more portable and might have enough impact on behavior to be worth considering. |
"You asked to install executables" - doesn't this come up when you just do e.g. |
@yaxu Good point, the wording itself might be more of the problem. It seems useful to re-iterate that there really is a problem and users get stuck regularly. Hopefully everyone is open to both fast and slow solutions to this issue. Proposal: A bit of word-smithing and ascii-banner to call out the message to get users on the right track. This should be faster and less contentious than colors while not impeding the alternative linked by @phadej . We currently say:
How about instead we borrow from SSH and say:
It's a fast change, can make the next release, and no one will feel like it was wasted work if the whole issue is better fixed before the release. |
Agreed that's better. Howabout rather than (I'm still unclear why it doesn't just install what's listed in the .cabal file like the old days, but understand there's some technical reason..) |
I don't like this, but I'll accept a patch which
We want to respect users and not assume that they are completely dumb and cannot read at all. It would be nicer to cut the installation early, similarly to #6832 But as I don't expect #6832 to be fixed for 3.4, I'll merge (the better version of) this PR to 3.4 branch when it's cut. |
If the library isn't usable, I'd say it absolutely hasn't been installed. I'd also say it's not the end-user that's stupid, but the software, for not installing a library when asked. Especially when this is undocumented, changed behaviour.. Well this is worse than undocumented - it seems the old (working) behaviour is documented, and the current (non-working) behaviour is not. Here's some results from a google search result for "cabal install". Some results look authoritative and up-to-date. None explain that "cabal install" doesn't install libraries, or give details of '--lib'.
Actually, I can't find any reference material that says how to install libraries with cabal. |
@yaxu, It's not like we (or myself) not trying to improve situation like I pointed in previous comments referring to other issues in this space. If it is how you think, then I'll merge this PR, but don't assume that we (well, me) will have any motivation to fix the root cause. This warning should be then enough for unforeseeable future. |
Apologies for my tone there @phadej, in my defence I hadn't yet eaten lunch. I'm super grateful for this and everything, just a little frustrated sometimes with the teething problems, but thanks a lot! |
Done. Using the banner instead, which is very SSH in appearance.
This appears to be saying really only as much as we know
Interesting and terrifying statement, @yaxu. While it's not related to this PR it is related to the issue I'm trying to solve (public education and cold-start ability re: Haskell tooling). Looking deeper:
Care to make an issue to discuss and push through a PR? |
--lib
warning red so people read--lib
warning louder and clearer
I think intro probably needs the attention of someone more expert than me, it's currently documenting v1- instructions so probably needs more updates than just adding --lib. For example it gives commands for installing packages from tarballs and URLs which as far as I know isn't supported by v2-install. |
Installing packages from tarballs is supported in |
In so far as I didn't even add a newline, just some output characters.
Any changes that could be relevant to users have been recorded in the changelog (add file to
changelog.d
directory).The documentation has been updated, if necessary.
I tested it by running the binary and observing the warning is now red on my screen. I googled and found claims the color works on windows terminals as well.