Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable the checker in .merlin presence #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

temyurchenko
Copy link

@temyurchenko temyurchenko commented Jan 6, 2024

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
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