Using Merlin + merlin-locate to navigate libraries in a Dune project
@brocaml wrote: I’m rather new to OCaml so not sure if this is a solved problem that I’ve missed, however I’m having some issues making my way around libraries to be able to inspect interfaces /...
View ArticleWhere to write `env` stanza in a dune file to modify environment variables
@ruyblast wrote: Hi ! I need to modify environment variables to compile a project. I work with dune and I saw there and there that one can modify environment variables during dune building process,...
View ArticleOpam install fails : sources cannot be obtained
@nico_toll wrote: Hi, I am trying to package my application and install it locally. I more or less followed the instruction on this page : https://opam.ocaml.org/doc/Packaging.html (I say more or less...
View ArticleDune runtest does not seem to work
@Tie_Cheng wrote: Hello, I want to install and test this code: https://github.com/astahfrom/prettiest. After downloading the source code, I did 1) dune upgrade, 2) replaced ~cmp by ~compare in one...
View ArticleStructure the code in modules
@sebbes wrote: Hello, I have troubles in splitting my app into modules & submodules using dune. Here is my current project tree (following this SO answer:...
View ArticleHow to use BER MetaOCaml with dune (cleanly)?
@ale wrote: I’m trying to use BER MetaOCaml in a dune project. I was reading through several posts and github issues and didn’t manage to find any concrete examples. After trying many things, the...
View ArticleTrouble with Z3 on OCaml 4.10 on Linux and OCaml 4.x on macOS
@mgree wrote: I’m having trouble getting a project to work using Z3. The project, KMT uses the Z3 SMT solver to generate Kleene algebras with tests (KATs) and decide equivalences between them. Some...
View ArticleViewing an internal dependency graph for a dune project
@mjambon wrote: Is there already a good way to view a dependency graph between components of a dune/jbuilder project? I’m looking for something that would illustrate the dependencies between...
View ArticleAnnouncing dune-deps: produces a project-centric dependency graph
@mjambon wrote: I’m happy to announce the availability of dune-deps, a command-line tool that scans a dune project and gathers the dependencies into a graph. The output is in the dot format, supported...
View ArticleBuild fails after running dune subst
@Danielo_Rodriguez wrote: Hello. I have a project I created using spin, which uses esy which uses dune under the hood. Everything works fantastically, tests passes and even the CI is always on green....
View ArticleDune build for multiple linux distribution
@GabrieleMaurina wrote: If I build an Ocaml Dune project on a Linux distribution, will it work on the others? For example if I do: “dune build util.exe” on my Ubuntu machine, will it work on Fedora?...
View Article[ANN] Dune 2.5.0
@rgrinberg wrote: The dune team is pleased to announce the release of dune 2.5.0. This release has been brewing for a while and contains a few interesting features. I’ll highlight some of the bigger...
View ArticleDune: disable build on non-linux platforms
@suttonshire wrote: Hi there, I’m building a package for bindings to a c library that can only be used on Linux systems. Does dune provide a way to check the OS version and stop the build and print a...
View ArticleDebugging A Dune Exe In VSCode
I’m trying to debug my dune executable in VS Code, but I’m running into issues. It worked about a month ago, but now it doesn’t I’ve compiled to byte code and set breakpoints in my editor, but when I...
View ArticleDune library variants poll: keep or drop support?
Hi everyone, Dune has had experimental support for library variants for about a year. We would now like to decide whether to commit to long term support or drop support and make room in the codebase...
View ArticleDune and camlp4/camlp5 (actually, "dune and the -pp flag to ocamlc"
[up front: I’m not -complaining; rather, I’m just -verifying- that this is the current state of affairs.] Hi, I’ve been digging around, and I can’t find any indication of support for camlp4/camlp5 in...
View ArticleMaking my library thread-agnostic
I have a library that requires some thread-local state for correctness in the presence of threading, currently implemented as a Map from thread ids to the current value. This introduces a dependency...
View ArticleMac - Compile program with dune
I got this program prog.ml : open Base;; open Batteries;; let st = String.slice ~first:(1) ~last:(3) "ABCD";; print_string st;; ... My file dune : (executable (name prog) (libraries...
View ArticleDigital signatures in ocaml
Which libraries in OCaml can be used for creating digital signatures? 3 posts - 3 participants Read full topic
View ArticleIs it possible to build with shared libraries included?
I try to build OCaml project via dune. I want to let contain “libissl.so” and “libcrypto.so” in OCaml binary.(main.exe) My dune file is following: (executable (public_name sample_pj) (name main)...
View Article