Add merlin locate tests and add build dirs of modules to Merlin so copy# is visible. #10381
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a partial follow up to #10178
+bugfix: Adds the build directory of modules to the Merlin source directories so copy# can be followed. Without this modification (
merlin.ml:Unprocessed.process
) the testdune/test/blackbox-tests/test-cases/merlin/merlin-locate.t/run.t
Lines 39 to 49 in 2f47fed
would be
+Adds a test for basic [locate] command
+Adds a "copyroundtrip" test for a [locate] command whose source is from a [copy#] stanza
ocamlmerlin
should read copy# line header and report the original file not the copied file.+Adds
merlin
package to TEST_DEPS so thatocamlmerlin
binary can be used in tests