From a2d82102b587178a7d0bb960b08561109adcde6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ulysse=20G=C3=A9rard?= Date: Thu, 5 Dec 2024 16:59:18 +0100 Subject: [PATCH] Pormote updated tests --- .../tests-dirs/local-shape-and-include.t | 4 +-- .../in-implicit-trans-dep.t/dune-project | 2 +- .../locate/in-implicit-trans-dep.t/run.t | 9 +++--- tests/test-dirs/search/search-by-type.t/run.t | 32 +++++++++---------- .../test-dirs/type-enclosing/inside-tydecl.t | 2 +- tests/test-dirs/type-enclosing/issue1335.t | 6 ++-- tests/test-dirs/type-enclosing/issue1755.t | 4 +-- 7 files changed, 30 insertions(+), 29 deletions(-) diff --git a/src/ocaml-index/tests/tests-dirs/local-shape-and-include.t b/src/ocaml-index/tests/tests-dirs/local-shape-and-include.t index 120db8e512..1111fef1db 100644 --- a/src/ocaml-index/tests/tests-dirs/local-shape-and-include.t +++ b/src/ocaml-index/tests/tests-dirs/local-shape-and-include.t @@ -33,7 +33,7 @@ uid: Main.3; locs: "g": File "main.ml", line 9, characters 6-7 uid: Main.4; locs: "g": File "main.ml", line 3, characters 6-7 uid: Main.5; locs: "B": File "main.ml", line 2, characters 7-8 - uid: Stdlib__String.173; locs: + uid: Stdlib__String.174; locs: "String.equal": File "main.ml", line 1, characters 8-20 }, 0 approx shapes: {}, and shapes for CUS . @@ -50,7 +50,7 @@ uid: Main.3; locs: "g": File "main.ml", line 9, characters 6-7 uid: Main.4; locs: "g": File "main.ml", line 3, characters 6-7 uid: Main.5; locs: "B": File "main.ml", line 2, characters 7-8 - uid: Stdlib__String.173; locs: + uid: Stdlib__String.174; locs: "String.equal": File "main.ml", line 1, characters 8-20 }, 0 approx shapes: {}, and shapes for CUS . diff --git a/tests/test-dirs/locate/in-implicit-trans-dep.t/dune-project b/tests/test-dirs/locate/in-implicit-trans-dep.t/dune-project index ad5a865f69..fff9b78b84 100644 --- a/tests/test-dirs/locate/in-implicit-trans-dep.t/dune-project +++ b/tests/test-dirs/locate/in-implicit-trans-dep.t/dune-project @@ -1,2 +1,2 @@ -(lang dune 2.0) +(lang dune 3.17) (implicit_transitive_deps false) diff --git a/tests/test-dirs/locate/in-implicit-trans-dep.t/run.t b/tests/test-dirs/locate/in-implicit-trans-dep.t/run.t index 0301d8ed39..9ac1be8fb9 100644 --- a/tests/test-dirs/locate/in-implicit-trans-dep.t/run.t +++ b/tests/test-dirs/locate/in-implicit-trans-dep.t/run.t @@ -1,8 +1,9 @@ - $ dune build @check + $ dune build @check 2>/dev/null + [1] -When the deifinition is in one of the implicit transitive dependencies -Merlin does not found the file in the source path provided by Dune. One possible -fix would be for Dune to provide additional source path for "externatl" deps. +When the definition is in one of the implicit transitive dependencies +Merlin does not found the file in the source path provided by Dune. +This works as expected since Dune lang 3.17 and OCaml >= 5.2 $ $MERLIN single locate -look-for ml -position 1:15 \ > -filename bin/main.ml