Skip to content

Commit

Permalink
fix: correctly output -open flags in merlin
Browse files Browse the repository at this point in the history
Use the same -open flags that are used for compilation

Fixes #8297

Signed-off-by: Rudi Grinberg <me@rgrinberg.com>

<!-- ps-id: f8c2fcc7-4268-401a-9b59-4e734fcb923c -->
  • Loading branch information
rgrinberg committed Jan 7, 2024
1 parent ca004c1 commit 7b1070e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions doc/changes/9659.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Fix merlin configuration for `(include_subdirs qualified)` modules (#9659,
fixes #8297, @rgrinberg)
2 changes: 1 addition & 1 deletion src/dune_rules/merlin/merlin.ml
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ module Unprocessed = struct
|> Path.Build.Set.fold ~init ~f:(fun src acc ->
let config =
{ Processed.module_ = Module.set_pp m None
; opens = Modules.alias_for modules m |> List.map ~f:Module.name
; opens = Modules.local_open modules m
}
in
(src, config) :: acc))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@
$TESTCASE_ROOT/groupintf)
(S
$TESTCASE_ROOT/utils)
(FLG (-open Utils -open Foo))
(FLG (-open Foo__Utils -open Foo))
(FLG
(-w
@1..3@5..28@30..39@43@46..47@49..57@61..62@67@69-40
Expand Down

0 comments on commit 7b1070e

Please sign in to comment.