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

Custom tests template dune

Could anyone give a template of OCaml custom tests, there is no resource on any websites for how to give custom tests, I basically need three components: Dune file, tests.ml, tests.expected. The...

View Article


Image may be NSFW.
Clik here to view.

[ANN] release 0.3.0 of drom, the OCaml project creator

Hi, We are pleased to release version 0.3.0 of drom, the OCaml project creator. drom is born from a simple observation: every time you create a new OCaml project, you spend time searching and...

View Article


Use system libraries with dune runtest

Is there a way to let dune runtest --verbose --for-release-of-packages=gen ignore the workspace and use system libraries for dependencies it would otherwise try to satisfy by compiling them from...

View Article

Some dune questions

Hello, How do I tell dune that building the library depends on the preprocessor having been built first? (executable (name prefilter) (modules prefilter) (libraries str) (modes byte)) (library (name...

View Article

Ocamlc -i, ocamldep, and _[> `Foo of 'weak1 ] cause problems with dune...

While updating a personal project to use dune, I started to get syntax errors in the .ml files generated by menhir. The problem occurs because dune calls menhir with the --infer-read-only option,...

View Article


Dune builds in pkgsrs: variables, workspaces, and install dirs

I’m working on packaging a new version of Coq for pkgsrc system (cf. https://www.pkgsrc.org/). The system environment created by pkgsrc is slightly different from that created by e.g. a Debian or...

View Article

Dune no longer generating .merlin files?

I’m currently using Dune 2.8.2 and it seems like it won’t generate .merlin files anymore. My .merlin files for a project are several months old and if I delete them, I can’t seem to get dune to...

View Article

Running subset of alcotests / without running tests for dependencies

If I download dune-starter and run the tests like this, I get some output, as expected: $ dune runtest -f run_tests alias test/runtest Testing `proj'. This run has ID...

View Article


Dune fails to compile my library with pyml

So I was trying to use pyml in my project GitHub - thierry-martinez/pyml: OCaml bindings for Python and it turns out that just adding pyml to dune libraries makes my project crash on linking with :...

View Article


See warnings in libs when building in watch mode

Hi, I created a project based on Spin CLI template, so I have a bin module depending on lib and I noticed that when building in watch mode (dune build -p #{self.name} --watch), warnings from the lib...

View Article

Plan for Dune 3.0

The Dune team has started planning the next major release and we would like to share and discuss the current plan with the community. We expect to release Dune 3 in August 2021. Please have a look and...

View Article

Dune problems using Dynlink plugins

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 be linked into...

View Article

Cram - Tests on Short Notice

Does it seem like writing unit tests is endlessly boring and time consuming? Does your test suite require constant attention and tweaking, and yet the stream of bugs never seems to end? I feel the...

View Article


Hooking into the Dune resolution process

Is there any way to programmatically access build artefacts constructed by dune, maybe perhaps by hooking into dune directly? I’d like to access, for example, the cmi/cmo file produced by a given...

View Article

Dune what is the difference between library and tests stanza?

In the writing and running tests section of the dune docs. For ppx_inline_test the following stanza is suggested. (library (name foo) (preprocess (pps ppx_inline_test))) However, I’ve also encountered...

View Article


Dune + rewriting of typed tree + dependencies: how to do better?

I have the following setup a rewriter that does typechecking under the hood a module A in a library a module B in a library, which is preprocessed by rewriter above and which depends on A I want to...

View Article

Recursive dependencies for C stubs with dune

How does a library B express its internal dependency on library A, so that a user C can use B without knowing about A? The case at hand is ocaml-ctypes, which depends on ocaml-integers. A public...

View Article


Dynamic loading a library with Fl_dynload

I am trying to dynamically load a library (noted as A below) in my non-public application that uses dune as the build tool. I have the following modules: lib: links library A statically register:...

View Article

Creating generic rules in dune

I have a dune file where I have several rules of the form (rule (target lambda.ml) (deps lambda.sk) (action (run necro-ml -o %{target} %{deps}))) where only the name lambda changes. Is it possible to...

View Article

I can't install ocaml-windows for cross-compiling

Hello, I need your help, when I execute in my terminal : opam install ocaml-windows64 opam install ocaml-windows64 -y The following actions will be performed: ∗ install ocaml-windows64 4.11.1...

View Article
Browsing all 517 articles
Browse latest View live