Skip to content

Commit 5c441cf

Browse files
authored
Merge branch 'main' into issue_1987
2 parents 0841e6e + a0b096c commit 5c441cf

20 files changed

Lines changed: 501 additions & 183 deletions

File tree

.github/workflows/emacs-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ jobs:
2929
with:
3030
version: ${{ matrix.emacs_version }}
3131

32-
- uses: actions/checkout@v5
32+
- uses: actions/checkout@v6
3333
- name: Run tests
3434
run: 'cd emacs && ./check.sh'

.github/workflows/fuzzy-ci-privileged.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
pull-requests: write
2222
steps:
2323
- name: Checkout
24-
uses: actions/checkout@v5
24+
uses: actions/checkout@v6
2525
- name: Download instruction artifact
2626
env:
2727
GH_API_ACTIONS: https://api.github.com/repos/${{ github.repository }}/actions

.github/workflows/fuzzy-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
commit: ["merge_branch", "base_branch"]
6868
steps:
6969
- name: Checkout
70-
uses: actions/checkout@v5
70+
uses: actions/checkout@v6
7171
with:
7272
fetch-depth: 0
7373

@@ -309,7 +309,7 @@ jobs:
309309
diff_dir: ${{ needs.artifact_names.outputs.diff_dir }}
310310
steps:
311311
- name: Checkout
312-
uses: actions/checkout@v5
312+
uses: actions/checkout@v6
313313

314314
- name: Download current diff(s)
315315
if: ${{ env.current_diff_exists == 'true' }}

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
steps:
5353
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
5454
- name: Checkout tree
55-
uses: actions/checkout@v5
55+
uses: actions/checkout@v6
5656

5757
- name: Set-up OCaml ${{ matrix.ocaml-compiler }}
5858
uses: ocaml/setup-ocaml@v3

.github/workflows/nix.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ jobs:
2727
runs-on: ubuntu-latest
2828
steps:
2929
- name: Checkout code
30-
uses: actions/checkout@v5
30+
uses: actions/checkout@v6
3131
with:
3232
submodules: true
3333
- name: nix
34-
uses: cachix/install-nix-action@v31.8.2
34+
uses: cachix/install-nix-action@v31.8.4
3535
with:
3636
nix_path: nixpkgs=channel:nixos-unstable
3737
- run: nix develop -c dune build @check @runtest -p merlin-lib,dot-merlin-reader,ocaml-index,merlin

.github/workflows/ocaml-lsp-compat.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
# Steps represent a sequence of tasks that will be executed as part of the job
4242
steps:
4343
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
44-
- uses: actions/checkout@v5
44+
- uses: actions/checkout@v6
4545

4646
- name: Set up OCaml ${{ matrix.ocaml-compiler }}
4747
uses: ocaml/setup-ocaml@v3

CHANGES.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,25 @@
1-
unreleased
2-
==========
1+
merlin 5.6.1
2+
============
3+
Sat Dec 20 11:15:42 CET 2025
34

5+
+ merlin binary
6+
- Fix a plethora of minor issues with the C code (#1998)
47
+ merlin library
8+
- Signature help should not appear on the function name (#1997)
59
- Fix completion not working for inlined records labels (#1978, fixes #1977)
610
- Perform buffer indexing only if the query requires it (#1990 and #1991)
711
- Stop unnecessarily forcing substitutions when initializing short-paths graph (#1988)
12+
- Fix Mocaml.with_printer didn't update replacement_printer_doc (#2010)
813
+ test suite
914
- Add a test to ensure the behavior showed in issue #1517 is no longer relevant (#1995)
1015
- Add a test to ensure the code fragment exhibited in issue #1118 no longer makes Merlin crash (#1996)
16+
- Add a test case illustrating how a snippet produces two unrelated errors in issue #2000. (#2003)
17+
- Add a test reproducing issue #1983 where `document` command which sometime concatenates consecutive variants and labels (#2005)
18+
- Signature-help should trigger on unfinished `let ... in` bindings (#2009)
1119
- Add a test to reproduce [Locate command fails on multi-line type definitions](#1987)
1220

21+
22+
1323
merlin 5.6
1424
==========
1525
Sat Oct 04 15:10:42 CEST 2025

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,4 @@ bench:
2626
jq . merl-an_bench/bench.json
2727

2828
.PHONY: all build dev clean test promote bench bench
29+
.NOTPARALLEL:

src/frontend/ocamlmerlin/dune

Lines changed: 38 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,28 +14,55 @@
1414
-open Merlin_analysis
1515
-open Merlin_kernel
1616
-open Merlin_commands)
17-
(modules (:standard \ gen_ccflags))
1817
(libraries merlin-lib.config yojson merlin-lib.analysis merlin-lib.kernel
1918
merlin-lib.utils merlin-lib.os_ipc merlin-lib.ocaml_parsing
2019
merlin-lib.query_protocol merlin-lib.query_commands
2120
merlin-lib.ocaml_typing merlin-lib.ocaml_utils
2221
merlin-lib.commands
2322
unix str))
2423

25-
(executable
26-
(name gen_ccflags)
27-
(modules gen_ccflags)
28-
(libraries str))
24+
; Write one flag per line in the output file
25+
26+
(rule
27+
(enabled_if (= %{ocaml-config:ccomp_type} "cc"))
28+
(action
29+
(progn
30+
(write-file ldlibs "")
31+
(write-file outputexe "-o"))))
32+
33+
(rule
34+
(enabled_if (= %{ocaml-config:ccomp_type} "msvc"))
35+
(action
36+
(progn
37+
(write-file ldlibs "advapi32.lib")
38+
(write-file outputexe "-Fe"))))
39+
40+
(rule
41+
(enabled_if
42+
(and
43+
(= %{ocaml-config:ccomp_type} "cc")
44+
(= %{profile} "dev")))
45+
(action
46+
(write-file cflags "-Wextra\n-Werror")))
47+
48+
(rule
49+
(enabled_if
50+
(and
51+
(= %{ocaml-config:ccomp_type} "msvc")
52+
(= %{profile} "dev")))
53+
(action
54+
(write-file cflags "-WX")))
2955

3056
(rule
31-
(targets pre-flags post-flags)
32-
(deps gen_ccflags.exe)
33-
(action (run %{deps} "%{ocaml-config:ccomp_type}" %{targets})))
57+
(enabled_if
58+
(<> %{profile} "dev"))
59+
(action
60+
(write-file cflags "")))
3461

3562
(rule
36-
(targets ocamlmerlin.exe)
37-
(deps (:c ocamlmerlin.c) pre-flags post-flags)
38-
(action (run %{cc} "%{read-lines:pre-flags}%{targets}" %{c} %{read-lines:post-flags})))
63+
(target ocamlmerlin.exe)
64+
(deps (:c ocamlmerlin.c))
65+
(action (run %{cc} %{read-strings:cflags} %{read:outputexe}%{target} %{c} %{read-strings:ldlibs})))
3966

4067
(install
4168
(package merlin)

src/frontend/ocamlmerlin/gen_ccflags.ml

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)