-
Notifications
You must be signed in to change notification settings - Fork 63
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
Update postinstall message to prevent new user confusion #325
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 🚀
Co-authored-by: Nicolás Ojeda Bär <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks.
Could we go back to why the message is confusing ? |
If you indent your file with
I think clarifying that |
I wasn't aware of that. The
I don't think so, it's quite clear that one handles indentation while the other handles formatting. You can do your indentation with a formatter if you want, or your formatting with an indenter, but I don't see the point in making people think they don't need both of them when they have different and complementary purposes. |
Is this an actual workflow that you use? My understanding is that
I don't have a horse in this race (I am a happy Cheers! |
Ah, so the issue is that this message is shown to people who have not explicitly asked for The message isn't displayed if you also install |
You can use filters on messsages. So you could perhaps show the message only if |
Yes, I use
My supposition is that |
I like @dbuenzli's suggestion best: it's approximative, but should avoid the confusion described here. Ideally we could write Or just a rewording, as initially proposed. maybe just starting the message with As for the usage: indeed ocp-indent is mostly useful as an inline tool, while ocamlformat is focused on whole-file processing. I am curious how the base VScode+LSP experience does the indentation (eg when on an empty line), by the way... |
I've updated the message to:
|
The postinstall message is quite confusing for new OCaml devs nowadays who typically by default have
ocaml-lsp-server
andocamlformat
installed.This adds some messaging to clear that up.