caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Ulysse Gérard" <ulysse@u31.fr>
To: "caml-list@inria.fr" <caml-list@inria.fr>
Subject: [Caml-list] [ANN] Merlin 3.4.0 : introducing external configuration readers
Date: Fri, 18 Sep 2020 12:37:10 +0200	[thread overview]
Message-ID: <20200918103711.2BFD6E0085@sympa.inria.fr> (raw)

[-- Attachment #1: Type: text/plain, Size: 2079 bytes --]


I am glad to announce, on behalf of the Merlin team, the release of Merlin 3.4.0
which brings some major changes in the way configuration is handled.

As you might know, Merlin reads its configuration from the closest .merlin file
to the source file being edited. These files tell merlin where to find other
source files and build artifacts, but also which flags should be passed to the
compiler, which syntax extensions are enabled and which packages are used by the
project.

In this setting the configuration is the same for all the source files of a
folder, regardless of their specificities. In other words, the configuration
loaded for a single source file contains the union of the dependencies of this
file and of all its siblings which is not an optimal behavior.

Starting with version 3.4.0 merlin will ship with two packages: merlin and
dot-merlin-reader which, as the name suggests, reads configuration from .merlin
files. Both are necessary for proper function.

When a .merlin file is present in the source folder the Merlin server will start
a dot-merlin-reader process and communicate with it via standard input and
output following a simple protocol. These processes are halted with the server.

This change should not have any visible impact on users’ workflows as long as
the dot-merlin-reader binary is correctly installed and in the path. (which
should be the case in opam-based setups)

This change in itself will not solve the granularity problem mentioned earlier,
but it paves the way for such improvements: in a near-future Dune will stop
generating .merlin files and Merlin will obtain file-based configuration
directly from the build system using the same protocol as the one used by
dot-merlin-reader. 

Changelog
   + merlin binary
       - fix completion of pattern matchings with exception patterns (#1169)
       - delegate configuration reading to external programs via a simple protocol
        and create a new package dot-merlin-reader with a binary that reads
        .merlin files. (#1123, #1152)

[-- Attachment #2: Type: text/html, Size: 6162 bytes --]

                 reply	other threads:[~2020-09-18 10:37 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200918103711.2BFD6E0085@sympa.inria.fr \
    --to=ulysse@u31.fr \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).