companion_cube changed the topic of #ocaml to: Discussion about the OCaml programming language | http://www.ocaml.org | OCaml 4.12 released: https://ocaml.org/releases/4.12.0.html | Try OCaml in your browser: https://try.ocamlpro.com | Public channel logs at https://libera.irclog.whitequark.org/ocaml/
Tuplanolla has quit [Quit: Leaving.]
favonia has quit [Ping timeout: 245 seconds]
radiopotin[m] has quit [Ping timeout: 245 seconds]
oriba has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
radiopotin[m] has joined #ocaml
dhil has quit [Ping timeout: 252 seconds]
drakonis has quit [*.net *.split]
drakonis has joined #ocaml
drakonis has quit [*.net *.split]
Haudegen has quit [Ping timeout: 268 seconds]
drakonis has joined #ocaml
zebrag has quit [Quit: Konversation terminated!]
berberman_ has joined #ocaml
berberman has quit [Ping timeout: 264 seconds]
favonia has joined #ocaml
mbuf has joined #ocaml
unyu has joined #ocaml
favonia has quit [Quit: Leaving]
eight has joined #ocaml
joniibou has quit [Quit: joniibou]
mbuf has quit [Quit: Leaving]
eight has quit [Quit: leaving]
eight has joined #ocaml
favonia has joined #ocaml
theglass has joined #ocaml
favonia has quit [Ping timeout: 268 seconds]
favonia has joined #ocaml
favonia has quit [Ping timeout: 268 seconds]
favonia has joined #ocaml
hex0punk has joined #ocaml
favonia has quit [Ping timeout: 268 seconds]
hex0punk has quit [Ping timeout: 268 seconds]
favonia has joined #ocaml
<d_bot> <Cyclomatic Complexity> Would it be possible to get, in some way, where an equality constraint from the typer comes from? Very often, when type debugging, I get `x had type woo, but I expected wee`. And I very very often want to ask "But why did you expect wee???" or "What could possibly make you think it has type woo???"
favonia has quit [Ping timeout: 268 seconds]
favonia has joined #ocaml
Tuplanolla has joined #ocaml
wonko has joined #ocaml
favonia has quit [Ping timeout: 268 seconds]
wonko has quit [Ping timeout: 268 seconds]
favonia has joined #ocaml
<d_bot> <ggole> Not really, the usual way to approach that kind of problem is to add some annotations
<d_bot> <Cyclomatic Complexity> sad
Serpent7776 has joined #ocaml
gzj has joined #ocaml
waleee has joined #ocaml
TheLemonMan has joined #ocaml
gzj has quit [Read error: Connection reset by peer]
gzj has joined #ocaml
waleee has quit [Ping timeout: 268 seconds]
mbuf has joined #ocaml
gzj has quit [Remote host closed the connection]
gzj has joined #ocaml
krnkktz has joined #ocaml
gzj has quit [Remote host closed the connection]
gzj has joined #ocaml
Chouhartem has joined #ocaml
dy is now known as lol
lol is now known as dy
gzj has quit [Ping timeout: 264 seconds]
Haudegen has joined #ocaml
favonia has quit [Ping timeout: 268 seconds]
favonia has joined #ocaml
favonia has quit [Ping timeout: 268 seconds]
favonia has joined #ocaml
toppler has joined #ocaml
favonia has quit [Ping timeout: 268 seconds]
serpent has joined #ocaml
Serpent7776 has quit [Ping timeout: 268 seconds]
dhil has joined #ocaml
zebrag has joined #ocaml
TheRuralJuror has joined #ocaml
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
Haudegen has quit [Ping timeout: 268 seconds]
dhil has joined #ocaml
dhil has quit [Ping timeout: 268 seconds]
farn has joined #ocaml
farn has quit [Client Quit]
farn has joined #ocaml
farn has quit [Client Quit]
farn has joined #ocaml
serpent is now known as Serpent7776
farn has quit [Remote host closed the connection]
farn has joined #ocaml
farn has quit [Remote host closed the connection]
farn has joined #ocaml
dhil has quit [Ping timeout: 268 seconds]
oriba has joined #ocaml
farn has quit [Remote host closed the connection]
farn has joined #ocaml
TheLemonMan has joined #ocaml
berberman has joined #ocaml
berberman_ has quit [Ping timeout: 268 seconds]
mariari has quit [Quit: WeeChat 3.1]
mariari has joined #ocaml
TheRuralJuror has quit [Quit: No Ping reply in 180 seconds.]
Haudegen has joined #ocaml
gareppa has joined #ocaml
gareppa has quit [Remote host closed the connection]
dwt_ has joined #ocaml
mbuf has quit [Quit: Leaving]
drakonis1 has joined #ocaml
drakonis1 has quit [Quit: WeeChat 3.1]
drakonis1 has joined #ocaml
drakonis1 has quit [Client Quit]
unyu is now known as lolcathost
lolcathost has quit [Quit: WeeChat 3.1]
paolo has joined #ocaml
paolo has quit [Client Quit]
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
unyu has joined #ocaml
dhil has joined #ocaml
ewanas has joined #ocaml
ewanas is now known as foocraft
foocraft is now known as ewanas
ewanas is now known as foocraft
foocraft is now known as foo303
foo303 is now known as ewanas
ewanas has quit [Client Quit]
ewanas has joined #ocaml
hex0punk has joined #ocaml
<d_bot> <stab> yeah annotations are really the only way... the only thing a type checker can guarantee is predictable error messages. It's very hard to get guaranteed good error messages for humans with unification
<d_bot> <stab> adding annotations always solves it for me tho
<d_bot> <soilih> hello guys
<d_bot> <soilih> Hope you are doing well !!
<d_bot> <soilih> I have a problem with ocaml, basically, i'm doing a server, and i want to show logs in the client
<d_bot> <soilih> then, I want to use the module Logs which i can find here : https://erratique.ch/software/logs/doc/Logs/index.html
<d_bot> <soilih> it said that I should setup a reporter here : https://erratique.ch/software/logs/doc/Logs/index.html#setupreporter
<d_bot> <soilih> so my main function was :
<d_bot> <soilih> `let run () =
<d_bot> <soilih> ignore (Arg.Set Log.lsp_enabled);
<d_bot> <soilih> let s = new lsp_server in
<d_bot> <soilih> let server = Linol_lwt.Jsonrpc2.create_stdio s in
<d_bot> <soilih> let task = Linol_lwt.Jsonrpc2.run server in
<d_bot> <soilih> match Linol_lwt.run task with
<d_bot> <soilih> | () -> ()
<d_bot> <soilih> | exception e ->
<d_bot> <soilih> let e = Printexc.to_string e in
<d_bot> <soilih> Printf.eprintf "error: %s\n%!" e;
<d_bot> <soilih> exit 1`
<d_bot> <soilih> then, i change it to :
<d_bot> <soilih> `let run () =
<d_bot> <soilih> ignore (Arg.Set Log.lsp_enabled);
<d_bot> <soilih> Logs.set_reporter (Logs_fmt.reporter ());
<d_bot> <soilih> let s = new lsp_server in
<d_bot> <soilih> let server = Linol_lwt.Jsonrpc2.create_stdio s in
<d_bot> <soilih> let task = Linol_lwt.Jsonrpc2.run server in
<d_bot> <soilih> match Linol_lwt.run task with
<d_bot> <soilih> | () -> ()
<d_bot> <soilih> | exception e ->
<d_bot> <soilih> let e = Printexc.to_string e in
<d_bot> <soilih> Printf.eprintf "error: %s\n%!" e;
<d_bot> <soilih> exit (if Logs.err_count () > 0 then 1 else 0)`
<d_bot> <soilih> And tried to print a log in this way : `Logs.err (fun k->k " %s" @@ "TEST TEST TEST")`
<d_bot> <soilih> But, it's not working...
<d_bot> <soilih> Anyone to help me how to show logs with the MODULE Logs please?
<d_bot> <soilih> Thank you !!!
<d_bot> <Et7f3> > Bridged to IRC: please don't paste code.
<d_bot> <Et7f3> next time post in #beginners
<d_bot> <Et7f3> and you can use 3 backtick for high light all block at once
waleee has joined #ocaml
<d_bot> <soilih> Sorry, most of the time, i post in beginner because i'm actually a beginner, but this one, i didn't know where it fits
<d_bot> <soilih> I'm moving it
mro has joined #ocaml
hex0punk has quit [Ping timeout: 272 seconds]
hex0punk has joined #ocaml
ruffy_ has joined #ocaml
waleee has quit [Ping timeout: 268 seconds]
waleee has joined #ocaml
hex0punk has quit [Ping timeout: 268 seconds]
hex0punk has joined #ocaml
Tuplanolla has quit [Quit: Leaving.]
Anarchos has joined #ocaml
cedric has joined #ocaml
Anarchos has quit [Quit: Vision[0.10.3]: i've been blurred!]
hex0punk has quit [Ping timeout: 268 seconds]
cedric has quit [Quit: Konversation terminated!]
mro has quit [Quit: Leaving...]
oriba has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
hex0punk has joined #ocaml
manicennui has quit [Quit: Connection closed for inactivity]
hex0punk has quit [Ping timeout: 252 seconds]
Haudegen has quit [Quit: Bin weg.]
jbrown has quit [Ping timeout: 264 seconds]
vicfred has joined #ocaml
hex0punk has joined #ocaml
waleee has quit [Ping timeout: 268 seconds]
ewanas has quit [Quit: Leaving]