Skip to content

Instantly share code, notes, and snippets.

@jplew
Created June 9, 2020 02:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jplew/3ee32783e8db262ce893cea914a27593 to your computer and use it in GitHub Desktop.
Save jplew/3ee32783e8db262ce893cea914a27593 to your computer and use it in GitHub Desktop.
esy build errors
$ esy x Fetch
File "dune-project", line 5, characters 11-14:
5 | (using fmt 1.2)
^^^
Warning: Version 1.2 of integration with automatic formatters is not
supported until version 1.11 of the dune language.
There are no supported versions of this extension in version 1.0 of the dune
language.
# Unformatted Error Output:
# File "bin/Fetch.ml", line 31, characters 2-25:
# Error: Unbound value Piaf.Body.iter_string_s
ERROR bin/Fetch.ml:31 2-25
28 ┆ let* response = Piaf.Client.Oneshot.get
29 ┆ ~config:{ Piaf.Config.default with follow_redirects = true } (Uri.of_string host)
30 ┆ in
31 ┆ Piaf.Body.iter_string_s (fun chunk -> Lwt_io.printf "%s" chunk) response.body
32 ┆
33 ┆ let () =
34 ┆ setup_log (Some Logs.Debug);
The value named Piaf.Body.iter_string_s can't be found. Could it be a typo?
error: command failed: 'refmterr' 'dune' 'build' '--promote-install-files' '--root' '.' '--only-package' 'hello-reason' (exited with 1)
esy-build-package: exiting with errors above...
error: build failed with exit code: 1
esy: exiting due to errors above
{
"name": "hello-reason",
"version": "0.1.0",
"description": "Example Reason Esy Project",
"license": "MIT",
"esy": {
"build": "dune build -p #{self.name}",
"buildDev": "refmterr dune build --promote-install-files --root . --only-package #{self.name}",
"NOTE": "Optional release Section. Customizes result of `esy release`",
"release": {
"bin": [
"Hello"
]
},
"buildEnv": {
"ODOC_SYNTAX": "re"
}
},
"scripts": {
"test": "esy x Hello",
"format": "esy dune build @fmt --auto-promote",
"doc": "esy dune build @doc"
},
"dependencies": {
"@opam/dune": "*",
"@opam/fmt": "*",
"@opam/logs": "*",
"@reason-native/console": "*",
"@reason-native/pastel": "*",
"@esy-ocaml/reason": ">= 3.4.0 < 3.6.0",
"ocaml": "~4.8.1000",
"@reason-native-web/esy-openssl": ">= 1.1.1006 < 2.0.0",
"@reason-native-web/piaf": ">= 1.2.0 < 2.0.0"
},
"devDependencies": {
"@opam/merlin": "*",
"@reason-native/rely": "*",
"refmterr": "*",
"ocaml": "~4.8.1000",
"@opam/odoc": "*"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment