Skip to content

Merlin does not work when enabled in a non-default build context #4125

@TheLortex

Description

@TheLortex

Expected Behavior

When using (merlin) to enable merlin in a non-default build context, merlin should work.

Actual Behavior

Merlin/ocaml lsp don't work. dune ocaml-merlin --dump-config=$(pwd) returns nothing. It looks like the merlin files are correctly generated in the chosen build context directory. However dune ocaml-merlin --dump-config seems to always look for the files in the default context.

Reproduction

Use a cross-compilation dune-workspace file:

(lang dune 2.0)

(context (default))

(context
 (opam
  (name cross)
  (switch default)
  (merlin)))

Specifications

  • Version of dune (output of dune --version): 2.8.1
  • Version of ocaml (output of ocamlc --version): 4.11.1
  • Operating system (distribution and version): Archlinux

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions