ocaml / ocaml/dune

Allow "dune coq top" to step through unsaved files

Open
#7,670 11 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

rocq
Dominant language
OCaml
Stars
1.9k
Forks
500
Avg merge
15h 21m
Merged PRs (30d)
277

Description

Desired Behavior

(This is a follow up to https://github.com/ocaml/dune/issues/7355, which was not completely addressed.)

If a file file.v that has not yet be written to disk would be part of a coq.theory stanza, then dune coq top file.v should not fail, and allow you to step through the file.

Current behavior

The command currently fails with Error: Cannot find file: file.v.

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

Start at the dune coq top file.v command and trace how files in a coq.theory stanza are resolved. Check the unsaved-file path described in the issue and confirm that file.v can be stepped through without being written to disk. Done means the command no longer reports Cannot find file: file.v for such a file.

Written by the indexing model from the issue text.

Assessment

Tech stack
ocaml
Domain
build-system, cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.