this repo has no description

[new release] merlin (4.2-411)

CHANGES:

Tue Apr 12 11:44:22 AM CET 2021

+ merlin binary
- external configuration reading:
+ use relative paths to communicate with Dune when possible. This solves
issues related to symlinks on Unix and improve Windows support (ocaml/merlin#1271,
fixes ocaml/merlin#1288)
+ make the `workdir` configuration value when using the
`dune ocaml-merlin` configuration provider the same as when using
`dot-merlin-reader` so that ppxes behaves in the same way as before
(ocaml/merlin#1284, fixes ocaml/dune#4479, discussion in ocaml/merlin#1292)
- destruct:
+ improve prefixing of generated constructors in Destruct by filtering
opened modules (ocaml/merlin#1277)
+ make the destruct command more resilient to ill-typed expressions and
when called without nodes (ocaml/merlin#1304, fixes ocaml/merlin#1300)
- reintroduce some record recovery and improve completion (ocaml/merlin#1276)
- introduce a new AST node for holes (`_`), allow correct typing of these
holes and add a new `holes` command that returns the locations of all
holes in the current file along with their types (ocaml/merlin#1242, ocaml/merlin#1289)
- Mppx: don't restore cookies after invocation. Ppx are invoked only once
so there is no need to manage cookies. This small change should increase
performance and should not change any other behavior (ocaml/merlin#1309)
- Windows: system command variant: do not open a window console when
launching a ppx (ocaml/merlin#1270, fixes ocaml/merlin#714)
- fix same file documentation bug (ocaml/merlin#1265 by @ulugbekna, fixes ocaml/merlin#1261)
+ editor modes
- vim: Add `MerlinNextHole` and `MerlinPreviousHole` commands to navigate
between holes. Jump to the first hole after destruct (ocaml/merlin#1287, ocaml/merlin#1303)
- emacs: Add `merlin-next-hole` and `merlin-previous-hole` commands to
navigate holes. Jump to the first hole after calling destruct. (ocaml/merlin#1291)
- emacs: modernization of the elisp code and conformance with coding
guidelines (ocaml/merlin#1247, ocaml/merlin#1310 by Steve Purcell )
- vim & emacs : new client-side "merlin use package" commands, restoring
previous behavior (ocaml/merlin#1272, fixes ocaml/merlin#1191)
+ test suite
- cover constructor disambiguation and record fields (ocaml/merlin#1276)
- cover the new `holes` command and AST node (ocaml/merlin#1242, ocaml/merlin#1289)
- cover the document fix (ocaml/merlin#1265, ocaml/merlin#1315)

Changed files
+76
packages
merlin
merlin.4.2-411
+76
packages/merlin/merlin.4.2-411/opam
···
···
+
opam-version: "2.0"
+
maintainer: "defree@gmail.com"
+
authors: "The Merlin team"
+
homepage: "https://github.com/ocaml/merlin"
+
bug-reports: "https://github.com/ocaml/merlin/issues"
+
dev-repo: "git+https://github.com/ocaml/merlin.git"
+
build: [
+
["dune" "subst"] {pinned}
+
["dune" "build" "-p" name "-j" jobs]
+
["dune" "runtest" "-p" "merlin,dot-merlin-reader" "-j" "1"] {with-test}
+
]
+
depends: [
+
"ocaml" {>= "4.11.0" & < "4.12"}
+
"dune" {>= "2.7.0"}
+
"dot-merlin-reader" {>= "4.0"}
+
"yojson" {>= "1.6.0"}
+
"conf-jq" {with-test}
+
"csexp" {>= "1.2.3"}
+
"result" {>= "1.5"}
+
"menhir" {dev}
+
"menhirLib" {dev}
+
"menhirSdk" {dev}
+
]
+
synopsis:
+
"Editor helper, provides completion, typing and source browsing in Vim and Emacs"
+
description:
+
"Merlin is an assistant for editing OCaml code. It aims to provide the features available in modern IDEs: error reporting, auto completion, source browsing and much more."
+
post-messages: [
+
"merlin installed.
+
+
Quick setup for VIM
+
-------------------
+
Append this to your .vimrc to add merlin to vim's runtime-path:
+
let g:opamshare = substitute(system('opam var share'),'\\n$','','''')
+
execute \"set rtp+=\" . g:opamshare . \"/merlin/vim\"
+
+
Also run the following line in vim to index the documentation:
+
:execute \"helptags \" . g:opamshare . \"/merlin/vim/doc\"
+
+
Quick setup for EMACS
+
-------------------
+
Add opam emacs directory to your load-path by appending this to your .emacs:
+
(let ((opam-share (ignore-errors (car (process-lines \"opam\" \"config\" \"var\" \"share\")))))
+
(when (and opam-share (file-directory-p opam-share))
+
;; Register Merlin
+
(add-to-list 'load-path (expand-file-name \"emacs/site-lisp\" opam-share))
+
(autoload 'merlin-mode \"merlin\" nil t nil)
+
;; Automatically start it in OCaml buffers
+
(add-hook 'tuareg-mode-hook 'merlin-mode t)
+
(add-hook 'caml-mode-hook 'merlin-mode t)
+
;; Use opam switch to lookup ocamlmerlin binary
+
(setq merlin-command 'opam)))
+
+
Take a look at https://github.com/ocaml/merlin for more information
+
+
Quick setup with opam-user-setup
+
--------------------------------
+
+
Opam-user-setup support Merlin.
+
+
$ opam user-setup install
+
+
should take care of basic setup.
+
See https://github.com/OCamlPro/opam-user-setup
+
"
+
{success & !user-setup:installed}
+
]
+
x-commit-hash: "3160ccc7a272920c5fd43ccf867ff4c5d393d5d0"
+
url {
+
src:
+
"https://github.com/ocaml/merlin/releases/download/v4.2-411/merlin-v4.2-411.tbz"
+
checksum: [
+
"sha256=445a60b55c9defe6725e32ed21228e7c372454ff3e6647657198c3dd498fe5ad"
+
"sha512=4d456415e90f5e4ca0a228864fc9441c7428385d3d96f8c346d169f77640528f8444382c00fbc1c53a8beb0c97411261a9574048c885af60c51a934f1b2ba405"
+
]
+
}