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

Ocaml: dune build not create dune-project file #5465

Closed
imdouyu opened this issue Feb 21, 2022 · 1 comment
Closed

Ocaml: dune build not create dune-project file #5465

imdouyu opened this issue Feb 21, 2022 · 1 comment

Comments

@imdouyu
Copy link

imdouyu commented Feb 21, 2022

Hi, I am new to Ocaml, and follow tutorial to set up develop environment, then try helloworld with dune and OCaml.

$ dune init exe helloworld
Success: initialized executable component named helloworld
$ dune build
Error: I cannot find the root of the current workspace/project.
If you would like to create a new dune project, you can type:

    dune init project NAME

Otherwise, please make sure to run dune inside an existing project or
workspace. For more information about how dune identifies the root of the
current workspace/project, please refer to
https://dune.readthedocs.io/en/stable/usage.html#finding-the-root

According to this answer, I manually add dune-project file, then everything ok.

So I want to ask if dune-project file need add manually after dune version 3.0 or other command automaticlly create it?

Specifications

  • Version of dune (output of dune --version): 3.0.2
  • Version of ocaml (output of ocamlc --version): 4.11.1
  • Operating system (distribution and version): WSL2
@bobot
Copy link
Collaborator

bobot commented Feb 21, 2022

Duplicate of #5460. dune initshould create the dune-projectfile.

@bobot bobot closed this as completed Feb 21, 2022
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

No branches or pull requests

2 participants