<Patch>
Currently having an issue with jbuilder for google-drive-ocamlfuse. Haven't had time to mess with it yet. Plus I don't know ocaml.
freyr69 has quit [Remote host closed the connection]
<rwmjones>
no
sagotch_ has quit [Ping timeout: 240 seconds]
malina has quit [Ping timeout: 260 seconds]
jao has joined #ocaml
aoijweg has joined #ocaml
roygbiv has quit [Quit: ™]
<aoijweg>
I'm trying to get started with jbuilder (which in the documentation is called Dune, but in OPAM is called jbuilder if I've understood this right). In the dune docs (https://jbuilder.readthedocs.io/en/latest/quick-start.html), building is `$dune build myfile.exe`. I guess it's written for Windows user - I run macos i.e. BSD unix. Trying `$jbuilder build main.o` or just `$jbuilder build` gives "Don't know how to build main.o
<aoijweg>
you mean main.ml?". How can you use Dune/Jbuilder on macos?
<yomimono>
aoijweg: even for non-windows it's main.exe
<discord>
<rgrinberg> How did you find the link to the jbuilder docs btw? You should be reading the docs here http://dune.readthedocs.io/
<Armael>
@rgrinberg could you setup a redirection?
<aoijweg>
yomimono: thanks for replying. Doing that gives `Don't know how to build main.exe`. Using `ocamlbuild` works, but it does not help Tuareg mode understand the different modules (which is why I'm trying Dune/Jbuilder out). I've tried adding `-v` flags and googling but am failing to solve it.
dhil has quit [Ping timeout: 256 seconds]
<aoijweg>
discord: searched the web. The domain says `jbuilder.readthedocs.io` but the HTML says "Dune"
<discord>
<rgrinberg> Could you paste the contents of your dune file (or jbuild file) and the output of $ ls
jaar has quit [Ping timeout: 260 seconds]
<discord>
<rgrinberg> Armael: Let me try. I'm not entirely sure because those are hosted. We could just delete that page btw
<aoijweg>
discord: http://ix.io/1gRi thank you for helping me troubleshoot
<discord>
<rgrinberg> Armael: actually, the jbuilder.readthedocs.io is entirely up to date and identical to dune.readthedocs.io
<Armael>
ah :D
<discord>
<rgrinberg> so I'm not sure how much harm it's causing
<Armael>
probably not very much
<discord>
<rgrinberg> It's jbuild not jbuilder for the filename
<Armael>
I guess morally it would be nice to tell google that the older one shouldn't be used anymore
<discord>
<rgrinberg> Also, you should really be using dune as the filename and $ dune as the binary
FreeBirdLjj has quit [Remote host closed the connection]
<aoijweg>
discord: oh lord... thank you! Yeah, I'd like to use dune instead (I understand it's the latest version of the same program). But it appears not to be in OPAM. `$cd ~;opam install dune \n [ERROR] No package named dune found.`
<discord>
<rgrinberg> $ opam update should solve that problem
yomimono has quit [Ping timeout: 244 seconds]
pierpal has quit [Quit: Poof]
pierpal has joined #ocaml
<aoijweg>
Ah! Thank you all for helping this newbie out. Whoever is running the Dune projects documentation, I'd suggest adding installation instructions to the README and Quickstart page - so you won't have to be annoyed by noobs like myself asking simple questions here... Again many thanks to you all
ziyourenxiang has quit [Ping timeout: 268 seconds]
coventry has joined #ocaml
<kakadu>
It's my mistake. I have a big project where dune doesn't compile by default anything. So I manually specified cma and it started to compile .cma without C files, then I created helloworld and still passing .cma explicitly as a target
<discord>
<rgrinberg> I see.
<kakadu>
btw, do we have (cxx_names ... ) or something for C++?
<discord>
<rgrinberg> if you have a library that is contained in a dir
<discord>
<rgrinberg> we have exactly that field 😃
<coventry>
How can I determine the version of ppx_deriving_yojson eliom is using? I seem to be getting a version which does not provide the `_of_yjson_exn` functions.
<discord>
<rgrinberg> if you have your library in that field, you can just build it with $ dune build @dir/install
<discord>
<rgrinberg> or just $ dune build lib.install
dhil has joined #ocaml
<discord>
<rgrinberg> this will build a few extra things like META files and other artifacts. But those are quite fast to build anyway
pierpal has quit [Quit: Poof]
pierpal has joined #ocaml
ryyppy has quit [Ping timeout: 240 seconds]
<dhil>
After migrating from jbuilder to dune I get build errors that are seemingly related to ppx, e.g. "Error: No ppx driver were found." I am using ppx_deriving.std and ppx_deriving_yojson, does anybody know whether these are incompatible with dune, or what cause of action I must take to use them with dune?
hdon has joined #ocaml
hdon has quit [Ping timeout: 240 seconds]
kleimkuhler has quit [Quit: kleimkuhler]
JimmyRcom has joined #ocaml
<ZirconiumX>
dhil: I think it needs a `pps` section
<dhil>
ZirconiumX, yes, I currently have (preprocess (pps ppx_deriving.std ppx_deriving_yojson)). Beforehand I had an additional pair of parentheses enclosing the arguments to pps.
kleimkuhler has joined #ocaml
kakadu has quit [Quit: Konversation terminated!]
<dhil>
just to clear it worked with the latest version of jbuilder. I noticed that the syntax of configuration files changed slightly between jbuilder and dune, thus I suspected the preprocess system might have changed too. I have been unable to confirm/refute this suspicion (checking both the documentation and changelog).
<companion_cube>
Bluddy: yes, i have to update containers for retrocompat (it will be ugly tho)
lostman has joined #ocaml
pierpal has quit [Quit: Poof]
pierpal has joined #ocaml
muratiku_ has quit [Remote host closed the connection]
<discord>
<Bluddy> yeah for sure.
jao has quit [Ping timeout: 256 seconds]
jbrown has quit [Ping timeout: 264 seconds]
hdon has joined #ocaml
<discord>
<rgrinberg> dhil: try reinstalling omp and ppxlib
<discord>
<rgrinberg> Or upgrading - if they aren't the latest version
hdon has quit [Changing host]
hdon has joined #ocaml
groovy2shoes has quit [Quit: moritura te salutat]
kakadu has joined #ocaml
kleimkuhler has quit [Quit: kleimkuhler]
dhil has quit [Ping timeout: 244 seconds]
kleimkuhler has joined #ocaml
ryyppy has joined #ocaml
kleimkuhler has quit [Quit: kleimkuhler]
kleimkuhler has joined #ocaml
groovy2shoes has joined #ocaml
mk9 has joined #ocaml
mk9 has quit [Client Quit]
mk9 has joined #ocaml
jbrown has joined #ocaml
yomimono has quit [Ping timeout: 268 seconds]
yomimono has joined #ocaml
octarin has joined #ocaml
mk9 has quit [Quit: mk9]
kleimkuhler has quit [Ping timeout: 265 seconds]
kleimkuhler has joined #ocaml
kakadu has quit [Remote host closed the connection]
asdf123 has quit [Remote host closed the connection]
kakadu has joined #ocaml
kakadu has quit [Remote host closed the connection]
kakadu has joined #ocaml
kakadu has quit [Remote host closed the connection]
kakadu has joined #ocaml
ygrek has joined #ocaml
asdf123 has joined #ocaml
kakadu has quit [Remote host closed the connection]
mk9 has joined #ocaml
pierpal has quit [Quit: Poof]
pierpal has joined #ocaml
kleimkuhler has quit [Quit: kleimkuhler]
kleimkuhler has joined #ocaml
ryyppy has quit [Ping timeout: 244 seconds]
pierpal has quit [Quit: Poof]
pierpal has joined #ocaml
_whitelogger has joined #ocaml
pierpal has quit [Quit: Poof]
pierpal has joined #ocaml
unyu has joined #ocaml
<coventry>
In js_of_ocaml, what might be the best way to convert a javascript object to an ocaml yojson object?
<coventry>
I can stringify it and parse it with yojson, but that seems inefficient.
jbrown has quit [Ping timeout: 260 seconds]
warriors has quit [Ping timeout: 252 seconds]
pierpal has quit [Remote host closed the connection]
letoh has quit [Ping timeout: 256 seconds]
Haudegen has joined #ocaml
mk9 has quit [Quit: mk9]
Haudegen has quit [Ping timeout: 244 seconds]
Haudegen has joined #ocaml
pierpa has joined #ocaml
_andre has quit [Quit: leaving]
muratiku has joined #ocaml
neatonk has quit [Remote host closed the connection]
neatonk has joined #ocaml
kleimkuhler has quit [Quit: kleimkuhler]
malina has joined #ocaml
jbrown has joined #ocaml
kleimkuhler has joined #ocaml
argent_smith has quit [Quit: Leaving.]
malina has quit [Ping timeout: 256 seconds]
tane has quit [Quit: Leaving]
unyu has quit [Quit: Reboot.]
muratiku has quit [Remote host closed the connection]
Jesin has joined #ocaml
shinnya has joined #ocaml
unyu has joined #ocaml
octarin has quit [Quit: leaving]
orbifx has joined #ocaml
jao has joined #ocaml
malina has joined #ocaml
kleimkuhler has quit [Ping timeout: 240 seconds]
kleimkuhler has joined #ocaml
coventry has quit [Ping timeout: 240 seconds]
kleimkuhler has quit [Read error: Connection reset by peer]
kleimkuhler_ has joined #ocaml
Jesin has quit [Quit: Leaving]
kleimkuhler_ has quit [Ping timeout: 240 seconds]
Haudegen has quit [Remote host closed the connection]
tokomak has joined #ocaml
kleimkuhler has joined #ocaml
kleimkuhler has quit [Client Quit]
ygrek has quit [Ping timeout: 264 seconds]
al-damiri has quit [Quit: Connection closed for inactivity]
zolk3ri has quit [Remote host closed the connection]
JimmyRcom_ has joined #ocaml
JimmyRcom_ has quit [Ping timeout: 244 seconds]
BitPuffin has quit [Remote host closed the connection]