Perfect - that worked, thank you very much! Didn’t have to use the root flag, simply deleting the _build folder and dune-project from root.
Does dune searches for dune-project and _build in the root directory before the directory it’s called from? Is this what caused this? So the takeaway is make sure not to have these in the home folder?
Yep, now I can reproduce the issue on mine Linux machine with a very trashy home folder.
if you don’t have a ~/dune-project file, then creating a new project with dune file but without dune-project works fine, since it is created by Dune,
Info: creating file dune-project with this contents: (lang dune 1.6)
If I manually create the ~/dune-projectfile, and the repeat the same steps. Then thedune-project` file is not created, and dune ventures in mine home folder and dies there after some substantial time (on an opam file parsing)
creating a ./dune-project doesn’t help, you have to delete the ~/dune-project as this file dictates dune that your home folder is your top-level OCaml project.