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

Error installing ocamlfind and dune using opam

I’m getting the following error when installing core using opam install core in openSUSE Leap 15.2: <><> Processing actions...

View Article


Using dune verbose for resolution

What is a practical use case for dune resolution? I want to use it to compile a part of a project with ocaml@4.06.1 and another with ocaml@4.12.0 and use them together. An example would using the...

View Article


[ANN] Dune 2.9.1

Dear all, on behalf of the Dune team I’m pleased to announce the release of Dune 2.9.1. This is a minor release, fixing an important problem with opam file generation when (lang dune 2.9) was set, and...

View Article

Dune build error with version >= 2

Hi, I noticed a strange behaviour with, for instance, GitHub - sanette/tsdl-image: OCaml SDL2_image bindings to go with Tsdl $ dune build ocamlc test/test.bc (exit 2) (cd _build/default &&...

View Article

Locating .cmt files when using dune

Hi, When using dune, is there a simple way to locate the .cmt[i] file for a given .ml[i] file ? (Parsing output of dune describe is not a simple way) 6 posts - 3 participants Read full topic

View Article


Bad .cmt files using dune multipackage installation process

Hi, I have a repository with various packages, let’s says A and B. B depends on A. A and B have their own opam file in the repository. When I use dune build @install && dune install everything...

View Article

Troubleshooting LSP server & VS Code extension

Is there some guide on how to troubleshoot LSP server with VS code extension? In one of my projects (ppx), vs code is unable to show most of the types, complains about ppxlib.metaquot extension points...

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


Use Dune to compile a specific file, in memory (stdin?)

Suppose I have a dune project with such a basic structure: dune-project src/ dune main.ml lib/ dune myFile.ml If I have a different version of myFile (or main.ml) in-memory only, I want to use dune to...

View Article


Dune configurator and MULTIPLES pkg-config libs

Hello folks! I’m new to dune configurator using pkg-config queries. I’m wondering how to fetch configuration for multiples libraries using pkg-config, the example...

View Article

Opam packages: be honest with your dependencies

I made a new release of the rresult package for OCaml >= 4.08 which drops the result shim package dependency. Expectedly it broke around 80 packages in opam who were getting their result dependency...

View Article

Dune and -opaque

Hello, It seems that dune always add -opaque in development mode. I really do not see why I can not customize this behavior from the (env ...) while -opaque could be within :standard. I have a piece...

View Article

Beginner issue: `ocamlc` not found in tree or in `PATH`

I just installed OCaml on my computer (macOS Monterrey, M1, which seems to be the cause of lots of issues). Following this guide, I ran: brew install opam opam init eval `opam env` opam switch create...

View Article


FreeBSD: "opam install dune" fails

Dear All, I am trying to setup ocaml on FreeBSD13.0-RELEASE-p4 and as a part of it was installing dune using ‘opam install dune’. However this command fails with the following error message. Kindly...

View Article

Problem with building with dune: Unbound module

Hi! I’m having a problem with dune, when building and running tests on it. I’m using dune 2.9.1. Here is the brief structure of my project. ├── dune-project ├── src │ ├── dune │ ├── lexer.mll │ ├──...

View Article


How to make dune include version number in a library module

Hello, sorry if this is obvious but I could not find the way to achieve this. I would like to include the version number of my library in a module of this library, so that it can be accessed for...

View Article

Image may be NSFW.
Clik here to view.

Diagnosing and preventing slow builds (especially in Dune)

Aside from running dune's internal profiler, are there any other ways to get insight into which bits of an OCaml build are slowing down a particularly long build, and why they do? Anything from a list...

View Article


Image may be NSFW.
Clik here to view.

(Unit) testing module internals (aka ignoring .mli files)

Newly faced with the prospect of testing what will be a public library with a defined interface, I struggled for a bit with how to test the library internals (i.e. those bits not included in what...

View Article

Js_of_ocaml output performs considerably worse when built with...

Hi everyone! I have been using js_of_ocaml (via the Brr toolkit) to run my pure OCaml Game Boy emulator in the browser. I am now trying to minify the JS bundle, and one thing I noticed is that the JS...

View Article

In dune-project: how to declare packages with same version?

Hello, with a dune-project file like this one: (lang dune 2.9) (name toto) (version 0.7.0) (generate_opam_files true) (source ...) ;... other opam related fields ... (documentation ...) (package (name...

View Article
Browsing all 517 articles
Browse latest View live