Warn user if formatting isn't enabled
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- OCaml
- Stars
- 1.9k
- Forks
- 500
- Avg merge
- 15h 21m
- Merged PRs (30d)
- 277
Description
Currently, if the user builds @fmt without enabling it in the dune-project, then dune simply does nothing. We should warn the user that they should enabled this extension in their dune-project file in such a situation.
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
Start by locating the handling of @fmt and how dune-project enables extensions. Reproduce a build where @fmt is used without enabling the extension, then add coverage for the expected warning; done means users are warned instead of dune silently doing nothing.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ocaml
- Domain
- build-system
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100