-
Notifications
You must be signed in to change notification settings - Fork 415
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
Flag to disable merlin generation? #257
Comments
FWIW the docs say:
I found this a little confusing. I eventually figured out it means that merlin files won't be generated if you lack a default context, but I initially thought you could disable merlin files by explicitly listing a default context with no |
Indeed, I tried to improve the doc. TBH, I'm not particularly excited by allowing to disable the generation of |
I will close this as we'd like to move away from generating .merlin files altogether. Jeremie improved the docs so there's really not much else to do here. |
I was looking to do something similar to support
|
For the record, I'm using the following
Without
Note that I don't really understand what I'm doing here. I tested this with jbuilder 1.0+beta19.1 and 1.0+beta20. Edit: Another way is to tell jbuilder explicitly which context to use, e.g. |
Is disabling the generation of the merlin file required to workaround the original issue or for another reason? The original issue, where dune would fail in some cases should be fixed since beta19. |
Can't speak for others but here's my use case. We have an ocamlbuild project (with several executables and libraries) with a custom written Porting to dune "at once" is not really easy, so for a transition period the project can be built with either ocamlbuild or dune. Since dune is so fast, we tend to use it in development, while our CI and production binaries continue to use ocamlbuild. That's obviously not ideal but as a temporary state it's OK. The problem is that while developing, dune changes Hopes that give some context. Thanks! |
Ok, that makes sense yes. I suppose we can allow |
I'm trying to build just the
opam-installer
binary from the opam repo, because I'd like to have this tool available without having all of opam installed.So I installed the deps which are required for this specific executable, but not the full set of deps that the rest of opam needs.
But jbuilder complains:
I've verified that the
.merlin
generation is what's causing the additional dependency, by doing:..after which the build completes fine. So evidently merlin generation is pulling in additional libraries in the workspace (my guess: it depends on every build target in src/tools, which includes opam-admin which depends on opam-client, etc.).
I'd like to split out an
opam-installer
package, so for this purpose.merlin
files are useless (I'll never point an editor at this workspace, I'm just building it).Is there some way to disable .merlin file generation? Ideally with a commandline flag or environment variable, since editing a workspace config file is an awkward thing to do from an
opam
package build command.The text was updated successfully, but these errors were encountered: