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/
Soni has quit [Ping timeout: 252 seconds]
John_Ivan has joined #ocaml
perrierjouet has quit [Quit: WeeChat 3.7.1]
perrierjouet has joined #ocaml
waleee has quit [Ping timeout: 256 seconds]
waleee has joined #ocaml
mjs22 has quit [Quit: Ping timeout (120 seconds)]
waleee has quit [Ping timeout: 255 seconds]
jao has quit [Ping timeout: 260 seconds]
brettgilio has quit [Quit: The Lounge - https://thelounge.chat]
brettgilio has joined #ocaml
xd1le has joined #ocaml
Soni has joined #ocaml
waleee has joined #ocaml
gentauro has quit [Read error: Connection reset by peer]
terrorjack has quit [Quit: The Lounge - https://thelounge.chat]
gentauro has joined #ocaml
waleee has quit [Ping timeout: 260 seconds]
terrorjack has joined #ocaml
chrisz has quit [Ping timeout: 264 seconds]
chrisz has joined #ocaml
mbuf has joined #ocaml
Haudegen has joined #ocaml
mro has joined #ocaml
mro has quit [Remote host closed the connection]
mro has joined #ocaml
bgs has quit [Remote host closed the connection]
bartholin has joined #ocaml
podge has joined #ocaml
mro has quit [Remote host closed the connection]
mro has joined #ocaml
mjs22 has joined #ocaml
azimut has quit [Ping timeout: 255 seconds]
mro has quit [Remote host closed the connection]
mro has joined #ocaml
bartholin has quit [Quit: Leaving]
mjs22 has quit [Remote host closed the connection]
jlrnick has joined #ocaml
jlrnick has quit [Killed (NickServ (GHOST command used by jlrnick-))]
mro has quit [Remote host closed the connection]
mro has joined #ocaml
mro has quit [Remote host closed the connection]
mro has joined #ocaml
mro has quit [Remote host closed the connection]
olle has joined #ocaml
perrierjouet has quit [Quit: WeeChat 3.7.1]
perrierjouet has joined #ocaml
spip has joined #ocaml
wingsorc has quit [Ping timeout: 260 seconds]
pflanze has joined #ocaml
<pflanze> Hello. I'm following https://ocaml.org/docs/up-and-running and "dune build" says "The current project defines some public elements, but no opam packages are defined. Please add a <package>.opam file at the project root ...", but there *is* a chj_ocamlbin.opam in the current directory,
<pflanze> although it is empty.
<pflanze> I also had an error first that (lang dune 2.9) in "bin/dune-project" was not supported, only up to 2.7, so I changed that to 2.7.
<pflanze> (I don't understand how "dune build" complains about files that "dune init" created..)
Haudegen has quit [Quit: Bin weg.]
<vsiles> mismatch version ? are you in the right opam switch ?
<vsiles> for the .opam file, I'd use https://dune.readthedocs.io/en/stable/opam.html and `generate_opam_files`
<pflanze> It's the same env I set up via the tutorial
<pflanze> I have filled in my opam file now via the example at https://ocaml.org/docs/best-practices, and "opam build" still complains
<pflanze> Is there a way to have opam tell me what it thinks the project root is?
<pflanze> I did move the files, if that's relevant: I was in ~/chj-ocamlbin/ when I ran "dune init project chj_ocamlbin",
<pflanze> and already had a git repo with README, so I did "mv chj_ocamlbin/* ."
<vsiles> the project root is where the top most `dune-project` or `dune-workspace` file will be
<pflanze> and have now also renamed ~/chj-ocamlbin to ~/chj_ocamlbin
<vsiles> maybe create a pastebin with the result of `tree` ?
<pflanze> ~/chj_ocamlbin$ dune build
<pflanze> ^ this is what I run
<pflanze> (and from where)
<pflanze> tree?
<vsiles> it's a nice little program that displays your filesystem layout in a terminal :)
jao has joined #ocaml
<pflanze> k, installing it
<vsiles> (apt install or whatever your distro is)
<pflanze> yes; which paste site is preferred here?
<vsiles> dunno. I use pastebin
<pflanze> the page has messed up graphical characters
<pflanze> I hope you still see the relevant info
<vsiles> yes ;)
<vsiles> the odd things I see is the content of bin: why do you have dune-projects in there ?
<pflanze> dune init created it, I think
<pflanze> Maybe I should just start over
<vsiles> I would, since it's quite small
<vsiles> easiest setup is a dune-project at the root, dune files in other directories
<vsiles> a .opam at the root too if necessary
<pflanze> First odd thing is that "~$ dune init project chj_ocamlbin" also creates a ~/_build/log
<pflanze> Now it works.
nd__ has quit [Ping timeout: 260 seconds]
<vsiles> _build/log is fine
<pflanze> Too much magic?
<vsiles> I think most dune command will create it
<pflanze> It built stuff even though chj_ocamlbin.opam is still empty. I'm slightly amazed.
<pflanze> Diffing to see what changed, really
<vsiles> I never needed a .opam file
<vsiles> I would say some of your library might had a `public_name`
<vsiles> without `public_name`, dune doesn't care about opam
<pflanze> Am I supposed to track .merlin files in Git?
<pflanze> What about dune-project?
<vsiles> recent dune no longer use .merlin files
<vsiles> merlin directly connects to dune, no more intermediate file. You shouldn't even see one
<vsiles> dune-project should be versioned, yes
<pflanze> OK
<pflanze> Using dune and ocaml from Debian stable.
<vsiles> you can run `dune build @check` to only generating stuff for merlin
<vsiles> what version is that ? I don't have a debian stable for years
<pflanze> What I don't understand is that according to Git, my directory now was identical to before.
<vsiles> ¯\_(ツ)_/¯
<pflanze> Aha, when I ran "dune build" the first time, I hadn't renamed ~/chj-ocamlbin to ~/chj_ocamlbin yet. And then I changed the version number.
<pflanze> Too much magic.
<vsiles> Not that much. The doc is quite extensive (but sometimes badly written :p)
<vsiles> (won't complain, I'm bad at writing doc too)
<pflanze> Either it stored meta-information somewhere else (non-transparent state), or it did accessed "../chj_ocamlbin" and couldn't find it and didn't report that precisely.
nd__ has joined #ocaml
Haudegen has joined #ocaml
TakinOver has quit [Ping timeout: 252 seconds]
TakinOver has joined #ocaml
rgrinberg has joined #ocaml
troydm has quit [Ping timeout: 260 seconds]
bgs has joined #ocaml
trev has joined #ocaml
alexherbo2 has joined #ocaml
<pflanze> Thanks for your help, vsiles!
sparogy has quit [Remote host closed the connection]
sparogy has joined #ocaml
sparogy has quit [Remote host closed the connection]
wonko has joined #ocaml
sparogy has joined #ocaml
wonko has quit [Read error: Connection reset by peer]
<vsiles> pflanze: you're welcome ;)
mro has joined #ocaml
azimut has joined #ocaml
mro has quit [Remote host closed the connection]
nd__ has quit [Ping timeout: 252 seconds]
Serpent7776 has joined #ocaml
waleee has joined #ocaml
alexherbo2 has quit [Remote host closed the connection]
waleee has quit [Quit: WeeChat 3.7.1]
nd__ has joined #ocaml
olle has quit [Remote host closed the connection]
nd__ has quit [Ping timeout: 252 seconds]
nd__ has joined #ocaml
Haudegen has quit [Quit: Bin weg.]
troydm has joined #ocaml
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mro has joined #ocaml
mro has quit [Remote host closed the connection]
mro has joined #ocaml
mro has quit [Remote host closed the connection]
mro has joined #ocaml
rgrinberg has joined #ocaml
mbuf has quit [Quit: Leaving]
mro has quit [Remote host closed the connection]
podge has quit [Ping timeout: 256 seconds]
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Tuplanolla has joined #ocaml
bartholin has joined #ocaml
rgrinberg has joined #ocaml
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
calvnce has joined #ocaml
mro has joined #ocaml
nikitalocalhost has joined #ocaml
nlocalhost has quit [Ping timeout: 248 seconds]
Haudegen has joined #ocaml
podge has joined #ocaml
olle has joined #ocaml
podge has quit [Ping timeout: 268 seconds]
xd1le has quit [Quit: xd1le]
mro has quit [Remote host closed the connection]
rgrinberg has joined #ocaml
mro has joined #ocaml
podge has joined #ocaml
rgrinberg has quit [Read error: Connection reset by peer]
waleee has joined #ocaml
trev has quit [Remote host closed the connection]
origintopleft has left #ocaml [Leaving]
bgs has quit [Remote host closed the connection]
mro has quit [Remote host closed the connection]
mro has joined #ocaml
Anarchos has joined #ocaml
Anarchos has quit [Quit: Vision[]: i've been blurred!]
Anarchos has joined #ocaml
rgrinberg has joined #ocaml
mro has quit [Ping timeout: 252 seconds]
Stumpfenstiel has joined #ocaml
mro has joined #ocaml
troydm has quit [Ping timeout: 260 seconds]
waleee has quit [Ping timeout: 252 seconds]
waleee has joined #ocaml
mro has quit [Remote host closed the connection]
mro has joined #ocaml
bgs has joined #ocaml
bgs has quit [Remote host closed the connection]
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rgrinberg has joined #ocaml
Anarchos has quit [Quit: Vision[]: i've been blurred!]
wingsorc has joined #ocaml
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
podge has quit [Quit: Konversation terminated!]
mro has quit [Quit: Leaving...]
kurfen has quit [Quit: ZNC 1.8.2 - https://znc.in]
kurfen has joined #ocaml
rgrinberg has joined #ocaml
olle has quit [Ping timeout: 268 seconds]
bartholin has quit [Quit: Leaving]
calvnce has quit [Ping timeout: 260 seconds]
calvnce has joined #ocaml
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
calvnce has quit [Client Quit]
rgrinberg has joined #ocaml
Haudegen has quit [Quit: No Ping reply in 180 seconds.]
Haudegen has joined #ocaml
Tuplanolla has quit [Quit: Leaving.]
Serpent7776 has quit [Ping timeout: 246 seconds]
Stumpfenstiel has quit [Ping timeout: 260 seconds]
spip has quit [Quit: Konversation terminated!]
Haudegen has quit [Ping timeout: 260 seconds]