ocaml / ocaml/dune

Virtual Libraries: Dune files don't include required source entries when relying on virtual modules.

Open
#2,909 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

merlin virtual libraries
Dominant language
OCaml
Stars
1.9k
Forks
500
Avg merge
15h 17m
Merged PRs (30d)
287

Description

If I have a virtual library V, and another module C that depends on library V, C's generated .merlin file does not include S source entries for the virtual library so merlin's goto location feature doesn't work. Strangely, the merlin "type at position" feature does work, and all the other autocompletion does work (I'm guessing because it uses the typed AST which includes all of that information).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source files or tests are named. Start by reproducing the virtual-library scenario with Dune and inspect the generated .merlin file for the dependent module C. Done means the virtual library's S source entries are present so Merlin's goto-location feature resolves those modules.

Written by the indexing model from the issue text.

Assessment

Tech stack
ocaml
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.