Virtual Libraries: Dune files don't include required source entries when relying on virtual modules.
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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