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

Include_subdirs qualified + menhir produces unbound module

TL;DR I am working with dune and have the option (include_subdirs qualified). I’m trying to move the files related to parsing (Syntax.mly, Ast.ml, Tokens.mll) to a subdirectory Parsing. Unfortunately...

View Article


Dune build error on macOS

May I ask the Dune experts for assistance in tackling a build error on macOS. After a large commit, my project stopped building with the following error: File "appkit/dune", line 1, characters 0-82: 1...

View Article


Image may be NSFW.
Clik here to view.

Stdune fails to compile

Output of opam install stdune : #=== ERROR while compiling stdune.3.15.0 ======================================# # context 2.1.5 | linux/x86_64 | ocaml.5.1.1 | https://opam.ocaml.org#f2df0b10 # path...

View Article

[BLOG] OCaml linting tools and techniques

Recently, I started wondering about linting tools for OCaml, so I went looking. This ended up being a quite extensive survey. Therefore, I decided to publish my findings in a blog post: OCaml linting...

View Article

`(enabled_if (installed package))` in Dune?

Hi! Is there a booleans syntax to check for installed packages? To have an enabled_if test that mirrors a select stanza in a library. Thanks! 8 posts - 4 participants Read full topic

View Article


What's possible with Melange

Hi Since dune got the integration with Melange (and Ahrefs migrated to Melange Ahrefs is now built with Melange) I wanted to write about the benefits of using it. I wrote a blog post comparing Melange...

View Article

Access opam package variable in dune rule

I have a dune rule that needs to be conditionally enabled based on the value of an opam package variable. I’ve tried the following setup, but it results in a dependency cycle: (rule (with-stdout-to...

View Article

Image may be NSFW.
Clik here to view.

Dune Developer Experience Feedback Form

Hello everyone! The Dune team at Tarides is looking to get inputs from all of you to improve the Dune DX (developer experience), so we’ve opened a small, anonymous, unstructured feedback form to hear...

View Article


How does one use `ocamloptp` from Dune?

Since the -p flag is no longer supported but with the ocamloptp tool being available, which does about the same thing, how does one invoke that from within Dune? 4 posts - 2 participants Read full topic

View Article


Generating files from ppx with dune

I’m attempting to develop a ppx that consumes code in an extension point (i.e. [%txt "foobar"]) and puts a result in a file somewhere. I’ve written the ppx part which seems to work fine, but I’m...

View Article

Unbound module and module type in dune build

Hi. Wanted to try out dune today with a basic project, but couldn’t get it working. Here is my project structure test/ ├── dune-project ├── test.opam ├── lib/ │ ├── dune │ ├── greeter.ml │ └──...

View Article

Linking OCaml for Godot 4.2

Hi there – first time poster. Short question: I’d like to link a .ml library program to a standalone C program into a shared library. (If it helps, I would happy to start with just gcc on linux). Is...

View Article

Embedding a toplevel

I’m looking to embed an ocaml Toplevel within my application. To wit, I’m writing Godot 4.2 bindings and looking to add the ability to stop the world and execute code from the toplevel. That is,...

View Article


Can dune keep the dune-project file updated?

Suppose I have a dune project and therein an executable. Now suppose I add a new library as a dependency, eg fmt: (executable (name foo) (libraries fmt)) Theoretically, dune should be able to tell...

View Article

Image may be NSFW.
Clik here to view.

Help with cryptic dependency cycle compile errors using `dune build`

Hi all, I am working on writing a library for large chunked & compressed multidimensional arrays. I was working on a adding a feature to support sharding of array “chunks”. The way this works is...

View Article


No config found for file... Try calling `dune build`

For posterity, hoping somebody in the future finds this when they hit the same problem: I just spent a painful ~hour trying to figure out why emacs wasn’t happy with my .ml files in a new project. I...

View Article

[ANN] dune 3.16

We’re happy to announce the release of Dune 3.16.0. Among the list of chances, this release contains improvements to melange support and a way to look for references in a whole project using merlin...

View Article


Corrupted compiled interface after `dune build`

Hey, I’m using VSCode and seeing an error when using the OCaml extension on my files: I’m trying to run the OCaml version into v5.1.1. Corrupted compiled interface ~/.opam/5.1.1/lib/ocaml/stdlib.cmi...

View Article

Error with "opam install dune utop ocaml-lsp-server"

C:\Users\omerk>opam install dune utop ocaml-lsp-server The following actions will be performed: === install 44 packages ✶ astring 0.8.5 [required by ocaml-lsp-server] ✶ base-bytes base [required by...

View Article

Image may be NSFW.
Clik here to view.

[ANN] Dune dev meeting

Hi We are organizing a new public Dune dev meeting on Wednesday, July, 24th at 10am CET. It will be one hour long. Whether you are a maintainer, a regular contributor, a new joiner or just curious,...

View Article
Browsing all 517 articles
Browse latest View live