<discocaml>
<hannes6838> according to https://github.com/ocaml/opam-repository/pull/26585#issuecomment-2358644559 this shouldn't trigger a rebuild. but there are several opam versions in the wild, so it is frustrating, and the question is how to move there (maybe a question for the opam-repository maintainers -- maybe compiler packages shouldn't be updated unless e.g. dune is released (which triggers recompilations anyways)?
toastal has joined #ocaml
<reynir>
Oh cool they actually do a lot of checks to see if it's necessary
<discocaml>
<peuk> Is there any way to put `ocamlformat` in opt-out mode? In the sense that, by default, it does nothing (or say, only indent) so that we can progressively opt-in new actions.
<discocaml>
<peuk> I tried to apply it on an existing project and I see more places where it makes the code harder to read than before than the opposite.
kotrcka has joined #ocaml
<discocaml>
<emiletrotignon> It is not possible to use `ocamlformat` only to indent because it does not indent, it parses the code into an extended ast which it then prints from scratch.
hsw__ has quit [Quit: Leaving]
hsw has joined #ocaml
toastal has left #ocaml [Disconnected: Hibernating too long]
toastal has joined #ocaml
<discocaml>
<andrew.02907> I’ll help 20 people on how to earn $70k or more within 72hours from the Crypto Market, but you’ll pay me a 10% of your profit when you receive it. Ask me how!!
<discocaml>
<andrew.02907> If interested, send me a direct message. For more information…contact via.. WhatsApp
<discocaml>
<andrew.02907> +1 (424) 424‑6672
<discocaml>
<Kali> @admin
<discocaml>
<reynir1396> Oh, is spam the reason why I get unread channels and then there's nothing new when I open them??
<discocaml>
<reynir1396> It's been driving me crazy
theblatte has quit [Ping timeout: 244 seconds]
<discocaml>
<octachron> Indeed, unfortunately I don't know any options to ban spams and restore channel state to unread.
euphores has quit [Quit: Leaving.]
toastal has left #ocaml [Error from remote client]
<discocaml>
<reynir1396> No worries. I'm just glad to have an explanation (discord gas lighting me)
theblatte has joined #ocaml
myrkraverk_ has joined #ocaml
myrkraverk has quit [Read error: Connection reset by peer]
<companion_cube>
It's probably a discord bug because they don't want to recompute the notification status for every channel or something
pi3ce has quit [Read error: Connection reset by peer]
pi3ce has joined #ocaml
<discocaml>
<pmetzger> It’s not a bug, it’s a feature! But you can always report this as an unwanted feature to them.
<companion_cube>
:D heh
alexherbo2 has joined #ocaml
malte has quit [Ping timeout: 252 seconds]
eilvelia has joined #ocaml
malte has joined #ocaml
toastal has joined #ocaml
<discocaml>
<peuk> There is a bot named Not a Bot that can stop spammers before it reaches too many channels.
<discocaml>
<eduardorfs> There is any good way for a ppx to inject an error on the LSP and the compiler?
softmoth__ has joined #ocaml
<discocaml>
<eduardorfs> Such as a node with an attribute and a proper error message?
<companion_cube>
[%error "ohno"] works iirc
<discocaml>
<eduardorfs> right, it's in the compiler, but I couldn't find the docs for it tho
alexherbo2 has quit [Remote host closed the connection]
alexherbo2 has joined #ocaml
<discocaml>
<peuk> Sad 😦
<discocaml>
<peuk> Thanks for the answer
<discocaml>
<emiletrotignon> There is ocp-indent though to do indentation !
<discocaml>
<peuk> Yes, this is what we use currently. But :
<discocaml>
<peuk> - it does not integrate well with `dune` so we ended up with a dedicated script to call it on the entire project,
<discocaml>
<peuk> - there are other formatting actions that are interesting (for example spaces around `:` in signatures, etc).
<discocaml>
<peuk> Reason why I had a look to ocamlformat but I am pretty sure that I cannot convince all the team to move to ocamlformat since it removes blank lines in MLIs, sometimes change the code to oneliners, etc.
<companion_cube>
after some years of not using ocamlformat I eventually found a config I liked enough
<companion_cube>
but it's a pain for sure
<discocaml>
<emiletrotignon> It is going to do things like that indeed. It gives a huge benefit of not having to care about formatting. Most people I have heard who do not like it already care about formatting so ocamlformat is never going to be exactly like what they would want.
<discocaml>
<emiletrotignon> I started using ocamlformat before having strong tastes in formatting so I think its great (then I got to look at the codebase a little and I do not think it is great anymore but thats another story)
<companion_cube>
I'd hate to have to change my config, but with it ocamlformat is good enough for me
<companion_cube>
and I care less about things that used to upset me
spew has joined #ocaml
euphores has joined #ocaml
alexherbo2 has quit [Remote host closed the connection]
alexherbo2 has joined #ocaml
alexherbo2 has quit [Remote host closed the connection]
<discocaml>
<darrenldl> i just worry ocamlformat will stop supporting some options should i rely on it
<discocaml>
<darrenldl> i still call ocp-indent after dune via a makefile
kotrcka has left #ocaml [ERC 5.5.0.29.1 (IRC client for GNU Emacs 29.4)]
pi3ce has quit [Read error: Connection reset by peer]
pi3ce has joined #ocaml
Anarchos has joined #ocaml
Tuplanolla has joined #ocaml
YuGiOhJCJ has quit [Quit: YuGiOhJCJ]
Anarchos has quit [Ping timeout: 244 seconds]
<discocaml>
<deepspacejohn> For new projects I just use the default ocamlformat. Sometimes I end up changing a couple of rules if there's something specific that bugs me (usually whatever rule that puts line breaks after ; sequences) but only if that thing comes up often enough to warrant me caring about it.
<companion_cube>
is the default one the one that puts `;` at the beginning of lines?
<discocaml>
<deepspacejohn> no, not the default profile.