No config found for file “” in “.”. Try calling `dune build`


This Content is from Stack Overflow. Question asked by HeapUnderStop

I have installed the Ocaml compiler, dune and opam and followed this set up.
I get the problem notification on VSCode

No config found for file "" in ".". Try calling `dune build`.

After following the advice and running dune build in the terminal I get the following error message:

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

However I ‘ve already set up a new project pefore as instructed in the quickstart with dune init proj project_name
What am I doing wrong to set up a proper OCaml project with the file and project manager?


This question is not yet answered, be the first one who answer using the comment. Later the confirmed answer will be published as the solution.

This Question and Answer are collected from stackoverflow and tested by JTuto community, is licensed under the terms of CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.

people found this article helpful. What about you?