Quantcast
Channel: OCaml - Topics tagged dune
Browsing all 517 articles
Browse latest View live

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 Article


Where 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 Article


Opam 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 Article

Dune 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 Article

Structure 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 Article


How 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 Article

Trouble 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 Article

Viewing 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 Article


Image may be NSFW.
Clik here to view.

Announcing 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 Article


Image may be NSFW.
Clik here to view.

Build 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 Article

Dune 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 Article

Dune: 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 Article


Image may be NSFW.
Clik here to view.

Debugging 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 Article

Dune 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 Article


Dune 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 Article

Making 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 Article


Mac - 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 Article

Digital signatures in ocaml

Which libraries in OCaml can be used for creating digital signatures? 3 posts - 3 participants Read full topic

View Article

Is 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
Browsing all 517 articles
Browse latest View live