Skip to content

Enable the checker in .merlin presence - #16

Open
temyurchenko wants to merge 1 commit into
flycheck:masterfrom
temyurchenko:master
Open

temyurchenko wants to merge 1 commit into
flycheck:masterfrom
temyurchenko:master

Conversation

@temyurchenko

@temyurchenko temyurchenko commented Jan 6, 2024

Copy link
Copy Markdown

Problem: some projects don't use Dune, while using Merlin, configured
with the .merlin file. flycheck-ocaml is only turned on if the
«dune-project» file is present though. As a result,
flycheck-ocaml is disabled for such projects.

Solution: enable the flycheck-ocaml checker if either dune-project
or .merlin are present.

In a round-about way this fixes #15. People who don't use Dune, now
don't need to create an empty dune-project to use the checker, which
was misleading.

@temyurchenko

Copy link
Copy Markdown
Author

Please, do note that I am not proficient in the OCaml ecosystem and have tested this only on a one-file project. That might entail needing extra attention when reviewing the PR :D

Problem: some projects don't use Dune, while using Merlin, configured
   with the .merlin file. `flycheck-ocaml` is only turned on if the
   «dune-project» file is present though. As a result,
   `flycheck-ocaml` is disabled for such projects.

Solution: enable the `flycheck-ocaml` checker if either dune-project
   or .merlin are present.

In a round-about way this fixes flycheck#15. People who don't use Dune, don't
   need to create an empty dune-project to use the checker, which was
   misleading.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Flycheck-ocaml and 'dune-project' file

1 participant