companion_cube changed the topic of #ocaml to: Discussion about the OCaml programming language | http://www.ocaml.org | OCaml 4.14.0 released: https://ocaml.org/releases/4.14.0.html | Try OCaml in your browser: https://try.ocamlpro.com | Public channel logs at https://libera.irclog.whitequark.org/ocaml/
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kaph has quit [Read error: Connection reset by peer]
waleee has quit [Ping timeout: 248 seconds]
spip has joined #ocaml
bobo has quit [Ping timeout: 248 seconds]
zebrag has quit [Quit: Konversation terminated!]
Sankalp has quit [Ping timeout: 240 seconds]
Sankalp has joined #ocaml
rgrinberg has joined #ocaml
rgrinberg has quit [Client Quit]
kaph has joined #ocaml
mbuf has joined #ocaml
mro has joined #ocaml
mro has quit [Ping timeout: 276 seconds]
<d_bot> <cod1r> I would try and help out but I don't know anything about anything
<d_bot> <cod1r> 😭
Anarchos has joined #ocaml
gravicappa has joined #ocaml
<d_bot> <Bluddy> it's ok, this is a huge milestone and it's not expected to be done quickly
random-jellyfish has joined #ocaml
<imode> anybody have any guidance on setting up OCaml's LSP with Kate?
kaph has quit [Ping timeout: 260 seconds]
<d_bot> <Continuation Calculus> I'm trying to find where Unix.map_file is implemented, but in ocaml/lib, there is only a unix.mli, no .ml
<sim642> Looks like it's in unix_unix.ml
<sim642> Where it essentially just delegates to a C implementation
<sim642> Which is in mmap_unix.c
<d_bot> <Continuation Calculus> sim642: I don't see unix_unix.ml, in which folder do you have it? (I grepped the whole ocaml/lib)
<d_bot> <Continuation Calculus> ye, I'm trying to find the ml to find the C implementation, and do map_anonymous
<sim642> It's in otherlibs/unix/
<d_bot> <Continuation Calculus> ae
<d_bot> <Continuation Calculus> thanks
<d_bot> <Continuation Calculus> i guess this doesn't use dune
<d_bot> <Continuation Calculus> so hard to see where things are defined
<d_bot> <Continuation Calculus> hmmm, i'm on version 4.14 and can't see an other libs. grepping for map_file
<d_bot> <octachron> In 4.14 the function is in `otherlibs/unix/mmap.c`
<d_bot> <Continuation Calculus> hmmm. let me dig deeper
<d_bot> <Continuation Calculus> yup, i was not where i thought i was: esy's ocaml folder is not the ocaml repo (i thought it was like opam, where it clones the repo and then builds)
<d_bot> <Continuation Calculus> @octachron simpler thing, not requiring me to dig into any C, would be to use /dev/zero, right?
Anarchos has quit [Remote host closed the connection]
<d_bot> <Continuation Calculus> https://stackoverflow.com/a/39945292/8735904 says it's another way to do anonymous mapping, and writes on /dev/zero should be effect free
<d_bot> <octachron> That sounds like it could work indeed (and it would be definitively simpler).
Serpent7776 has joined #ocaml
Anarchos has joined #ocaml
<d_bot> <Continuation Calculus> function + test nearly done, just need to cast genarray to array1 so that it is more practical. but it works!
<d_bot> <Continuation Calculus> thx @octachron
tiferrei has quit [Ping timeout: 240 seconds]
Tuplanolla has joined #ocaml
tiferrei has joined #ocaml
amk has joined #ocaml
<d_bot> <Continuation Calculus> in case anyone is interested: https://pastebin.com/7TptrSDw
mro has joined #ocaml
mro has quit [Remote host closed the connection]
mro has joined #ocaml
Haudegen has joined #ocaml
bartholin has joined #ocaml
mro has quit [Remote host closed the connection]
mro has joined #ocaml
jpds has quit [Remote host closed the connection]
jpds has joined #ocaml
Anarchos has quit [Quit: Vision[]: i've been blurred!]
mro has quit [Remote host closed the connection]
mro has joined #ocaml
bartholin has quit [Read error: Connection reset by peer]
mro has quit [Remote host closed the connection]
bartholin has joined #ocaml
mro has joined #ocaml
mro has quit [Remote host closed the connection]
gravicappa has quit [Ping timeout: 246 seconds]
kaph has joined #ocaml
gravicappa has joined #ocaml
bartholin has quit [Ping timeout: 276 seconds]
bartholin has joined #ocaml
dextaa4 has joined #ocaml
TheLemonMan has joined #ocaml
waleee has joined #ocaml
waleee has quit [Ping timeout: 240 seconds]
Anarchos has joined #ocaml
bartholin has quit [Ping timeout: 276 seconds]
rgrinberg has joined #ocaml
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
spip has quit [Ping timeout: 246 seconds]
spip has joined #ocaml
random-jellyfish has quit [Quit: Client closed]
gopiandcode has quit [Remote host closed the connection]
gopiandcode has joined #ocaml
<d_bot> <Asimov-IV> It works fine for me when I start Kate from the command line.
mro has joined #ocaml
bartholin has joined #ocaml
bartholin has quit [Ping timeout: 256 seconds]
bartholin has joined #ocaml
<imode> I installed merlin vis opam, did `opam user-setup install`... and nothing's happening in Kate.
<imode> s/vis/via
<Anarchos> imode maybe you should relaunch it ?
<imode> did.
mro has quit [Remote host closed the connection]
<imode> am I supposed to launch something? a binary?
<Anarchos> imode can't help more, i use vim
rgrinberg has joined #ocaml
<d_bot> <Asimov-IV> I'm not using merlin. I actually use ocamllsp.
<imode> oh.
<imode> I see.
cedric has joined #ocaml
<d_bot> <Asimov-IV> If you want to you can install it with `opam install ocaml-lsp-server`.
<imode> just did.. hm.
<d_bot> <Asimov-IV> Is it working now?
mro has joined #ocaml
<imode> nope.
<imode> still nothing..
mro has quit [Ping timeout: 248 seconds]
<d_bot> <Asimov-IV> Are you inside a dune project folder?
<imode> I am not. totally new to this.
<imode> I suspect I need to enable it.
rgrinberg has quit [Ping timeout: 256 seconds]
rgrinberg has joined #ocaml
<d_bot> <Asimov-IV> OK. Did you already set up dune?
rgrinberg has quit [Client Quit]
<imode> I did not.
Anarchos has quit [Quit: Vision[]: i've been blurred!]
mbuf has quit [Quit: Leaving]
rgrinberg has joined #ocaml
<d_bot> <Asimov-IV> What do you get when you type in `dune --version`?
<imode> hm, _after_ I do the whole opam eval thing, I see it, but without it...
<imode> that's probably why this is failing.
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rgrinberg has joined #ocaml
<d_bot> <Asimov-IV> Do you mean ocamllsp is working now
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<imode> nope, but I have a feeling it's because I need to log out and log back in, or run kate in a shell where I've done the opam eval thing.
<imode> combined with the fact that I haven't generated a dune project for my stuff to go in.
<d_bot> <NULL> I didn't know Kate had LSP capabilities
<imode> it's got an LSP client. I'm just testing it. used to be just `nano` for personal and IntellIJ for work.
<d_bot> <NULL> I'm definitely looking into this soon. It's going to be useful not to have to launch VSCode every time
rgrinberg has joined #ocaml
<imode> if you get it working, let me know how you did it. :)
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bartholin has quit [Ping timeout: 248 seconds]
bartholin has joined #ocaml
<d_bot> <Asimov-IV> So I first create a new dune project
<d_bot> <Asimov-IV> ```sh
<d_bot> <Asimov-IV> dune init project hello
<d_bot> <Asimov-IV> cd ./hello
<d_bot> <Asimov-IV> kate &
<d_bot> <Asimov-IV> ```
bartholin has quit [Ping timeout: 246 seconds]
olle has joined #ocaml
mro has joined #ocaml
<d_bot> <NULL> What did you do in terms of kate setup ?
dextaa45 has joined #ocaml
dextaa4 has quit [Ping timeout: 250 seconds]
dextaa45 is now known as dextaa4
<d_bot> <Asimov-IV> No special setup, but I am using version 22.04.0 of kate with the LSP Client plugin enabled.
bartholin has joined #ocaml
dextaa49 has joined #ocaml
<d_bot> <NULL> I also have this version, but my LSP client settings file was empty for example
dextaa4 has quit [Ping timeout: 250 seconds]
dextaa49 is now known as dextaa4
mro has quit [Remote host closed the connection]
<d_bot> <Asimov-IV> Yes, mine is empty as well. Does the `output` tab at the bottom say anything?
<d_bot> <Asimov-IV> The LSP only works if you start kate from the command line that has access to ocamllsp.
<d_bot> <NULL> If your opam is well setup, any command line should have access to it
<d_bot> <NULL> Let me clear mine and look at this tab
<imode> what about just starting it from a KDE runline?
<imode> after logging out and logging in.
<d_bot> <NULL> Ok it works if I launch it from a terminal, not from the start menu
Anarchos has joined #ocaml
waleee has joined #ocaml
TheLemonMan has quit [Quit: Lost terminal]
mro has joined #ocaml
mro has quit [Ping timeout: 256 seconds]
<d_bot> <NULL> I imagine Kate uses the value for PATH Plasma got at startup and not the current value which opam has since updated
<d_bot> <NULL> I wonder how to change this (besides hardcoding the address of ocamllsp in the config file)
<Anarchos> eval $(opam env) ?
bartholin has quit [Ping timeout: 250 seconds]
<d_bot> <Asimov-IV> Not sure exactly what the problem is but I just opened an issue in the Kate repo.
<Anarchos> afrosenpa
<Anarchos> Asimov-IV such a move is often wise.
<d_bot> <Asimov-IV> If it gets resolved i'll post an update.
bartholin has joined #ocaml
gravicappa has quit [Ping timeout: 256 seconds]
<d_bot> <NULL> Anarchos: This will add ocamllsp to the path if it wasn't already *in the current terminal session*. In my case at this point the lsp already is in the path and if I launch Kate from there it picks it up fine
<d_bot> <NULL> Can you point to it please?
<d_bot> <NULL> Thank you
dextaa4 has quit [Quit: The Lounge - https://thelounge.chat]
olle has quit [Ping timeout: 256 seconds]
Anarchos has quit [Quit: Vision[]: i've been blurred!]
bartholin has quit [Quit: Leaving]
rgrinberg has joined #ocaml
wingsorc__ has joined #ocaml
wingsorc has quit [Ping timeout: 248 seconds]
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Tuplanolla has quit [Quit: Leaving.]
Haudegen has quit [Ping timeout: 248 seconds]
wingsorc__ has quit [Ping timeout: 240 seconds]
cedric has quit [Quit: Konversation terminated!]
wingsorc has joined #ocaml
Serpent7776 has quit [Read error: Connection reset by peer]
tizoc has quit [Quit: Coyote finally caught me]
tizoc has joined #ocaml