@@ -549,7 +549,10 @@ Querying Merlin configuration
549549Since version 2.8 Dune does not promote ``.merlin `` files to the source
550550directories any more. Instead these configurations are stored in the `_build `
551551folder and Merlin communicates directly with Dune to obtain its configuration
552- via the `ocaml-merlin ` subcommand.
552+ via the `ocaml-merlin ` subcommand. The Merlin configuration is now stanza
553+ specific allowing finer control. The following commands are not needed for
554+ normal use of Dune and Merlin but can provide insightful informations when
555+ debugging or configuring non-standard projects.
553556
554557Printing the configuration
555558--------------------------
@@ -574,14 +577,16 @@ Merlin configuration syntax by running the following command:
574577
575578::
576579
577- $ dune ocaml-merlin -- dump-dot-merlin > .merlin
580+ $ dune ocaml dump-dot-merlin > .merlin
578581
579582In that case only one configuration will be printed which is the result of a
580583coarse merge of the configurations of the various modules present in the current
581584folder. This folder must be in a Dune workspace and the project must be already
582585built. Preprocessing directives and other flags will be commented out and must
583- be un-commented afterward.
586+ be un-commented afterward. This feature does not aim at writing exact or correct
587+ ``.merlin `` files, its sole purpose is to lessen the burden of writing the
588+ configuration from scratch.
584589
585- Both these commands also support an optional argument to specify the target
586- directory. This directory must be in a Dune workspace and the project must be
587- already built.
590+ Both these commands also support an optional path to specify the target
591+ directory. This directory must be in a Dune workspace and the project must have
592+ already been built.
0 commit comments