-
Notifications
You must be signed in to change notification settings - Fork 412
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
[feature request] configure-less build #1385
Comments
Improving the default behavior is fine, however it's not clear how it should interact with explicit configuration when the user writes a When no configuration file is found, I suppose Dune could try infer the BTW, the first message about |
This is a separate issue that's on our roadmap: #159
I think @aantron discussed this feature being desirable as well. Basically a It would also be nice to have a way to save these options in the script itself. For example, have dune parse out the |
I wanted this in part for examples. I'd like to be able to put a one-liner under each example for compiling and running it. This was possible with ocamlfind, but not currently possible with Dune, because Dune requires boilerplate files. |
Once
This would be nice as well. |
What about inlining the dune file in the source? That would make it easier to have "scripts" that one can invoke as well. For example: (*$ dune
(preprocess ..)
(libraries ..)
*)
printe_endline "hello world" |
Related to #1884 |
I would still strongly welcome the ability to give stanzas on the command line. The syntax can be the same as in |
This is a feature request, for people just tinkering around with ocaml for fun, it is possible to provide minimal config to get up and running.
Nowadays, I used dune maybe once a couple of months, I have to consult the manual each time since I used it only occasionally, but I think other people may have similar experience.
A bit story unfolded about my experience when using dune this morning:
I tried to use it for a tiny project, I used it for a couple of times but forgot its config, so I go to https://dune.readthedocs.io/en/latest/quick-start.html, but it does not work, it tells me:
I try to add
(lang dune 1.2)
,It tells me
I understand it may be a trivial problem for frequent dune users, but it is not too good for occasional users, my time budget is one hour for coding today, but already spent half an hour in trying out dune
Two proposals to address issue:
provide an easy mode
-- minimal user input to build an executable, I did not use Emacs anymore these days, it is very hard to edit S-exp in an editor without any config (it is great to enhance user experience for those who just tinker around)
provide something like
omake install
orbsb init
it installs a minimal template so I just need edit some files.
Ideally, I wish I only need one command for an occasional user:
and it always works out of box
The text was updated successfully, but these errors were encountered: