Fix Merlin configuration server in a non-default build context#4127
Fix Merlin configuration server in a non-default build context#4127voodoos merged 6 commits intoocaml:mainfrom
Conversation
|
It should be possible to get the tests to work by default. Have a look at the workspace tests for multi contexts tests. |
Looking at other tests (grep
|
d546615 to
aa08986
Compare
3d71406 to
f788e5d
Compare
|
I cherry picked the commit from #4132 adding the possibility to specify which variant of the |
a0d13f3 to
44d0b77
Compare
I don't think we should do this. It is going to make it more difficult to backport only the bugfix in 2.8. We could backport both the bugfix and the new feature, but that is going to break our usual compatibility rules. Let's be strict here and add the |
90b53cb to
9708ef7
Compare
You are right, I dropped it. |
3479421 to
eaeeb4f
Compare
ghost
left a comment
There was a problem hiding this comment.
Looks good to merge once changelog is updated
Signed-off-by: Ulysse Gérard <thevoodoos@gmail.com>
Signed-off-by: Ulysse Gérard <thevoodoos@gmail.com>
Signed-off-by: Ulysse Gérard <thevoodoos@gmail.com>
In the absence of a specified dune-workspace file, always check for one witht the standard name. Signed-off-by: Ulysse Gérard <thevoodoos@gmail.com>
Signed-off-by: Ulysse Gérard <thevoodoos@gmail.com>
Signed-off-by: Ulysse Gérard <thevoodoos@gmail.com>
eaeeb4f to
825f0be
Compare
* Disable log creation * Use safer default workspace initialisation. * Add test for opam contexts Signed-off-by: Ulysse Gérard <thevoodoos@gmail.com>
| (opam | ||
| (name cross) | ||
| (switch default) | ||
| (merlin))) |
There was a problem hiding this comment.
I believe this test only work if we have a switch named default in our opam configuration. @voodoos
There was a problem hiding this comment.
Sorry for that, I thought other tests were already relying on such a switch but they must have been disabled since.
@rgrinberg said it might be possible to test this kind of feature but I did not found examples of such things in the test-base.
I think disabling this test is fine if don't find a workaround.
This PR fixes #4125.
The workspace initialization was wrong in the
dune ocaml-merlinbinary.I added a test which is disabled by default as it requires a global switch
defaultto exist.