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

Dune build @doc producing empty index

EDIT: solved it right after posting. I forgot the (public_name ...) field in the dune file. Hi, when I run dune build @doc locally I get a empty index, as can be seen here:...

View Article


Dune test error: 'Fatal error: exception Sys_error("data/abs.decTest: No such...

Hi, running dune test in CI ( https://opam.ci.ocaml.org/github/ocaml/opam-repository/commit/22cd4fd03c1642202eb2f4c2097c190285b9e91c/variant/compilers,4.08,decimal.0.1.0,tests ) is failing with the...

View Article


THANK YOU for dune-release!

Just putting it out there. It makes releasing on opam super simple. 1 post - 1 participant Read full topic

View Article

OPAM Packaging for large project

I’m after some help and advice on packaging a large OCaml project up for OPAM. I’m working on a native OCaml project for AWSinhabitedtype/ocaml-aws. The project uses the service defintions published...

View Article

Image may be NSFW.
Clik here to view.

Merlin: Goto definition inside installed libraries

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 from there)....

View Article


Viewing generated assembly from OCaml source files

When trying to about the performance of my programs or the overhead of various design decisions (for example, choosing a immutable vs mutable representation of data), I often find that I don’t have a...

View Article

How to compile and link a Fortran library component with dune

I’m wondering if I am compiling and linking a simple one-file Fortran sublibrary correctly into my OCaml library. Ideally I would like to be able to make my library installable on linux and macos with...

View Article

Dune utop limitations

I was excited to see that dune utop would launch me into utop with my application under development loaded. But then discovered that it actually didn’t do that because currently my app is just a...

View Article


Dune rule depending on profile

Hello, I’m wondering whether it’s possible to have a dune stanza or rule depend on the profile being used. The use case is as follows: I want to introduce some automatic checks in my build process...

View Article


Image may be NSFW.
Clik here to view.

What could be typical OCaml projects?

drom is able to create full projects in one command. There are currently templates/skeletons, called library, program, mini-lib, mini-prg and ppx_deriver. For example, drom new ppx_mine --skeleton...

View Article

Is it possible to restrict inline tests to a specific package in a...

If I have a dune runtest alias, I can include a package field to only use the alias when building that package. For example, if I have a package aplus that depends on package a in the same repo, I...

View Article

[ANN] opam-dune-lint - keep opam and dune dependencies in sync

We’re pleased to announce the first release of opam-dune-lint. This little tool checks that every ocamlfind dependency listed in your dune files has the corresponding opam package listed as a...

View Article

Dune+tests+ocamllsp: extension is disabled because the tests would be ignored

From time to time I get and issue with OCaml language server when it gives an error message like: ppx_inline_test: extension is disabled because the tests would be ignored (the build system didn’t...

View Article


Building coq with dune leads to OOM

Is anyone able to build coq 8.13 with dune 2.8 and ocaml 4.10/4.11/4.12? For me the dune process triggers the OOM killer. I requested up to 24G for the build VM, and reduced the number of jobs to two...

View Article

How to force a custom version string into META files generated by dune?

Is there a way to force a custom version = mystring into the findlib META files generated by dune? I think a long time ago it was possible to do echo mystring > VERSION in the toplevel directory of...

View Article


Dune built executable killed by zsh on macOS

I can compile this simple test.ml: let () = at_exit (fun () -> print_endline "Exiting.") ; let _ = Sys.(signal sigint (Signal_handle (fun _ -> print_endline "Received SIGINT." ; exit 100))) in...

View Article

How to get pleasant documentation for a library using Dune?

I’m working to publish a small library using Dune. The documentation automatically generated by dune build @doc looks fairly unpleasant to me, as I don’t see an easy way to explain what the library is...

View Article


Replacing dune-release delegates

The plan is described in detail in this issue but I’ll try to summarize it here. Natively, dune-release only knows how to publish documentation and distribution tarballs to github. It offers a...

View Article

Image may be NSFW.
Clik here to view.

Asterix in function signature reported by the compiler?

Hey all, I’m working through some OCaml learning resources and bumped into a compiler error I don’t know how to interpret. I’m sure my code’s doing all kindsa silly things but I’m not here to ask for...

View Article

How to set arch in dune-project?

I am using dune-project to generate an opam file for a project. How to get it to generate the available: clause? See e.g. opam-repository/opam at a78d7fa13785cc738a8dab82014f49ec6040608c ·...

View Article
Browsing all 517 articles
Browse latest View live