dune icon indicating copy to clipboard operation
dune copied to clipboard

Got this error message while trying to build Hello_world project

Open robertblackwell opened this issue 2 years ago • 3 comments

The package hello_world does not have any user defined stanzas attached to it. If this is intentional, add (allow_empty) to the package definition in the dune-project file I searched the documentation on dune stanzas and found nothing on (allow_empty)

Here is the dune-project file. I filled in none of this it was all create automatically by the build process

(lang dune 3.2)

(name hello_world)

(generate_opam_files true)

(source
 (github username/reponame))

(authors "Author Name")

(maintainers "Maintainer Name")

(license LICENSE)

(documentation https://url/to/documentation)
(package
 (name hello_world)
 (synopsis "A short synopsis")
 (description "A longer description")
 (depends ocaml dune)
 (tags
  (topics "to describe" your project)))

; See the complete stanza docs at https://dune.readthedocs.io/en/stable/dune-files.html#dune-project

Any suggestions ?

robertblackwell avatar May 28 '22 05:05 robertblackwell

A description public_name lacks in bin/dune file. That is a cause maybe.

koji-k avatar Aug 03 '22 12:08 koji-k

Is this a recent change? I started getting it myself and I can't understand why.

bbatsov avatar Aug 07 '22 04:08 bbatsov

My simple solution was the just delete everything after the first line - which is quite appropriate for toy projects.

bbatsov avatar Aug 07 '22 04:08 bbatsov