Dune 1.11 silently stopping during build?
@ionpot wrote: Hi guys, new user here I have an OCaml project that I’ve been working on for 3 years. It’s using ocamlbuild at the moment, and I decided to give dune a whirl over the weekend. But...
View ArticleAdvanced C binding using ocaml-ctypes and dune
@toots wrote: Hi there! I worked on a socket.h binding last summer and had a great experience integrating ocaml-ctypes with dune, I thought that might be of interest to other developers so I wrote...
View ArticleHave dune produce the .exe in the directory where the (executable ...)...
@mbacarella wrote: When dune runs it keeps things nice and tidy by putting build artifacts in the _build directory. Probably the biggest obstacle when converting a codebase from, say, omake, is that...
View ArticleMore converting project from omake to dune questions
@mbacarella wrote: Two-parter. I’m converting a large-ish codebase from omake to dune. PART ONE Is it possible to tell dune, from the toplevel of a big tree with many sub-dirs that contain dune files...
View ArticleSanity check: omake vs dune progress counters report different number of...
@mbacarella wrote: At the top-level of my project I run omake, which provides status of compilation: [==== ] 00803 / 04960 (then a git clean -fx happens to eliminate all build artifacts) When I do the...
View ArticleDependency problem when modules have the same name
@ghuysmans wrote: Hi, I ran into what looks like a bug to me: an executable depends on a library including a module with the same name as another executable that gets linked to the main program even...
View ArticleRebuilding a "build-info" module every time an exe is produced
@mbacarella wrote: If you use Jane’s Core.Command for command line parsing (and if not, why aren’t you?), it can take arguments like -version and -build-info which are super useful if you want to bake...
View ArticleDune run external command without targets
@mariopereira wrote: Hi all, For an opam package of mine, that I have pinned, after building the sources I need to run an external program. I was think about using the (action (run ...)) stanza, but...
View ArticleCompile issues trying to install dune, ocamlfind, etc
@ygutfreund wrote: The compiler install and opam switch seemed to work fine, , but the opam install of dune, utop, etc. is having issues (see below) $ opam switch create ....
View ArticleExample of how to use depopts with dune
@carlosdagos wrote: Hello! I’m trying to learn how to use the depopts stanza in dune. I haven’t been able to find any examples of that. One such example I did find was for the logs package. I don’t...
View ArticleVery basic dune question
@threepwood wrote: Hi, sorry for the basic question but I’m having a very hard time finding my way through the dune documentation. From time to time I write a one-file binary to process corpus data...
View ArticleWeak pointers in dune
@olafhering wrote: In the virt-top project, the author used some sort of “weak pointers”. If an external library like csv is available at build time, it will be used also at runtime (ocamlfind...
View ArticleMerlin: Goto definition inside installed libraries
@ddickstein wrote: I raised an issue on GitHub a little while ago about not being able to use MerlinLocate from inside installed libraries (I can jump to them from my project but then I hit a dead end...
View ArticleSummary of the Dune retreat 2020
@diml wrote: Hi everyone, We recently organised the second Dune retreat. If you’d like to see what is happening in the Dune world at the moment, please find a summary of what we discussed and work on...
View ArticleNon opam workflows
@prometheansacrifice wrote: Very recently, I learnt that there is a significant chunk of users in the OCaml community that does not use opam to install packages. As a small initiative to contribute to...
View ArticleDune problems using Dynlink plugins
@talex5 wrote: Hi, I’m trying to migrate an OCamlbuild project to Dune, but I’m having trouble building a plugin (for Dynlink). The idea is that the plugin adds a GTK UI, using lablgtk. This must not...
View ArticleDoes dune support findlib aliasing?
@olafhering wrote: camlzip installs its META file both as zip and camlzip. In the projects I packaged only zip was required, so my attempt to build the thing with dune will create just a package named...
View Article[ANN] Dune 2.4.0
@rgrinberg wrote: On behalf of the dune team, I’m pleased to announce the release of dune 2.4.0. This releases features support for mdx, an interesting take on the notebook paradigm by the RWO team....
View ArticleHow to fill dune file to compile pgocaml ppx syntax code?
@ruyblast wrote: Hi ! I am intended to build with dune this small piece of code: open Os_db include Type let post_wish user_id wish = full_transaction_block (fun dbh -> [%pgsql dbh "UPDATE...
View ArticleIntroducing dune describe
@diml wrote: Hi everybody, Just a quick post to introduce the new dune describe command in Dune 2.4.0. If you’d like to write a tool that needs to understand the structure of a dune project, figure...
View Article