daml/WORKSPACE

844 lines
23 KiB
Python
Raw Normal View History

workspace(
name = "com_github_digital_asset_daml",
)
2019-04-04 11:33:38 +03:00
# NOTE(JM): Load external dependencies from deps.bzl.
# Do not put "http_archive" and similar rules into this file. Put them into
# deps.bzl. This allows using this repository as an external workspace.
# (though with the caveat that that user needs to repeat the relevant bits of
# magic in this file, but at least right versions of external rules are picked).
2019-04-04 11:33:38 +03:00
load("//:deps.bzl", "daml_deps")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive", "http_file")
2019-04-04 11:33:38 +03:00
daml_deps()
load("@rules_haskell//haskell:repositories.bzl", "rules_haskell_dependencies")
load("@com_github_bazelbuild_remote_apis//:repository_rules.bzl", "switched_rules_by_language")
switched_rules_by_language(
name = "bazel_remote_apis_imports",
)
rules_haskell_dependencies()
Update netty and iogrpc version (#6063) * io.grpc:grpc-xxxx to 1.29.0 (from 1.22.1) io.netty:netty-xxxx to .1.50.Final (from 4.1.37.Final) io.nett.netty-tcp-native-boringssl-static to 2.0.30.Final (from 2.0.25.Final) To resolve open vulnerabilities with these versions netty-4.1.37.Final vulnerabilities BDSA-2018-4022 (Medium) BDSA-2019-2610 (Medium) BDSA-2019-3119 (CVE-2019-16869) (Medium) BDSA-2020-0130 (Medium) BDSA BDSA-2019-4230 (CVE-2019-20445) (Low) BDSA BDSA-2019-4231 (CVE-2019-20444) (Low) BDSA BDSA-2020-0666 (CVE-2020-11612) (Low) BDSA BDSA-2019-2642 (Low) BDSA BDSA-2019-2649 (Low) BDSA BDSA-2019-2643 (Low) CHANGELOG_BEGIN Upgrade io.grpc:grpc-xxxxx and io.netty:netty-xxx version to latest released to avoid exposure to reported security vulnerabilities in currently used versions CHANGELOG_END – * Update spray versions to address vulnerabilities CVE-2018-18853 and CVE-2018-18854 CHANGELOG_BEGIN Upgrade io.grpc:grpc-xxxxx and io.netty:netty-xxx version to latest released to avoid exposure to reported security vulnerabilities in currently used versions CHANGELOG_END * do not change io.grpc version since reflection seems to be misbehaving * Clarify how to bump grpc/netty/protobuf versions Also "downgrade" netty to 4.1.48, according to https://github.com/grpc/grpc-java/blob/master/SECURITY.md#netty CHANGELOG_BEGIN CHANGELOG_END * Load protobuf deps after haskell deps to avoid loading an older version of rules_cc * Upgrade protoc and protobuf-java to 3.11.0 * buildifier reformat * regen unique int after rebase * remove commented patch Co-authored-by: Gerolf Seitz <gerolf.seitz@daml.com>
2020-05-27 20:44:34 +03:00
load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")
protobuf_deps()
load("@rules_pkg//:deps.bzl", "rules_pkg_dependencies")
rules_pkg_dependencies()
2019-04-04 11:33:38 +03:00
register_toolchains(
"//:c2hs-toolchain",
2019-04-04 11:33:38 +03:00
)
load("//bazel_tools/dev_env_tool:dev_env_tool.bzl", "dadew", "dev_env_tool")
2019-04-04 11:33:38 +03:00
load(
"@io_tweag_rules_nixpkgs//nixpkgs:nixpkgs.bzl",
"nixpkgs_cc_configure",
"nixpkgs_local_repository",
"nixpkgs_package",
"nixpkgs_python_configure",
2019-04-04 11:33:38 +03:00
)
load("//bazel_tools:create_workspace.bzl", "create_workspace")
2019-04-04 11:33:38 +03:00
load("//bazel_tools:os_info.bzl", "os_info")
os_info(name = "os_info")
introduce new release process (#4513) Context ======= After multiple discussions about our current release schedule and process, we've come to the conclusion that we need to be able to make a distinction between technical snapshots and marketing releases. In other words, we need to be able to create a bundle for early adopters to test without making it an officially-supported version, and without necessarily implying everyone should go through the trouble of upgrading. The underlying goal is to have less frequent but more stable "official" releases. This PR is a proposal for a new release process designed under the following constraints: - Reuse as much as possible of the existing infrastructure, to minimize effort but also chances of disruptions. - Have the ability to create "snapshot"/"nightly"/... releases that are not meant for general public consumption, but can still be used by savvy users without jumping through too many extra hoops (ideally just swapping in a slightly-weirder version string). - Have the ability to promote an existing snapshot release to "official" release status, with as few changes as possible in-between, so we can be confident that the official release is what we tested as a prerelease. - Have as much of the release pipeline shared between the two types of releases, to avoid discovering non-transient problems while trying to promote a snapshot to an official release. - Triggerring a release should still be done through a PR, so we can keep the same approval process for SOC2 auditability. The gist of this proposal is to replace the current `VERSION` file with a `LATEST` file, which would have the following format: ``` ef5d32b7438e481de0235c5538aedab419682388 0.13.53-alpha.20200214.3025.ef5d32b7 ``` This file would be maintained with a script to reduce manual labor in producing the version string. Other than that, the process will be largely the same, with releases triggered by changes to this `LATEST` and the release notes files. Version numbers =============== Because one of the goals is to reduce the velocity of our published version numbers, we need a different version scheme for our snapshot releases. Fortunately, most version schemes have some support for that; unfortunately, the SDK sits at the intersection of three different version schemes that have made incompatible choices. Without going into too much detail: - Semantic versioning (which we chose as the version format for the SDK version number) allows for "prerelease" version numbers as well as "metadata"; an example of a complete version string would be `1.2.3-nightly.201+server12.43`. The "main" part of the version string always has to have 3 numbers separated by dots; the "prerelease" (after the `-` but before the `+`) and the "metadata" (after the `+`) parts are optional and, if present, must consist of one or more segments separated by dots, where a segment can be either a number or an alphanumeric string. In terms of ordering, metadata is irrelevant and any version with a prerelease string is before the corresponding "main" version string alone. Amongst prereleases, segments are compared in order with purely numeric ones compared as numbers and mixed ones compared lexicographically. So 1.2.3 is more recent than 1.2.3-1, which is itself less recent than 1.2.3-2. - Maven version strings are any number of segments separated by a `.`, a `-`, or a transition between a number and a letter. Version strings are compared element-wise, with numeric segments being compared as numbers. Alphabetic segments are treated specially if they happen to be one of a handful of magic words (such as "alpha", "beta" or "snapshot" for example) which count as "qualifiers"; a version string with a qualifier is "before" its prefix (`1.2.3` is before `1.2.3-alpha.3`, which is the same as `1.2.3-alpha3` or `1.2.3-alpha-3`), and there is a special ordering amongst qualifiers. Other alphabetic segments are compared alphabetically and count as being "after" their prefix (`1.2.3-really-final-this-time` counts as being released after `1.2.3`). - GHC package numbers are comprised of any number of numeric segments separated by `.`, plus an optional (though deprecated) alphanumeric "version tag" separated by a `-`. I could not find any official documentation on ordering for the version tag; numeric segments are compared as numbers. - npm uses semantic versioning so that is covered already. After much more investigation than I'd care to admit, I have come up with the following compromise as the least-bad solution. First, obviously, the version string for stable/marketing versions is going to be "standard" semver, i.e. major.minor.patch, all numbers, which works, and sorts as expected, for all three schemes. For snapshot releases, we shall use the following (semver) format: ``` 0.13.53-alpha.20200214.3025.ef5d32b7 ``` where the components are, respectively: - `0.13.53`: the expected version string of the next "stable" release. - `alpha`: a marker that hopefully scares people enough. - `20200214`: the date of the release commit, which _MUST_ be on master. - `3025`: the number of commits in master up to the release commit (included). Because we have a linear, append-only master branch, this uniquely identifies the commit. - `ef5d32b7ù : the first 8 characters of the release commit sha. This is not strictly speaking necessary, but makes it a lot more convenient to identify the commit. The main downsides of this format are: 1. It is not a valid format for GHC packages. We do not publish GHC packages from the SDK (so far we have instead opted to release our Haskell code as separate packages entirely), so this should not be an issue. However, our SDK version currently leaks to `ghc-pkg` as the version string for the stdlib (and prim) packages. This PR addresses that by tweaking the compiler to remove the offending bits, so `ghc-pkg` would see the above version number as `0.13.53.20200214.3025`, which should be enough to uniquely identify it. Note that, as far as I could find out, this number would never be exposed to users. 2. It is rather long, which I think is good from a human perspective as it makes it more scary. However, I have been told that this may be long enough to cause issues on Windows by pushing us past the max path size limitation of that "OS". I suggest we try it and see what happens. The upsides are: - It clearly indicates it is an unstable release (`alpha`). - It clearly indicates how old it is, by including the date. - To humans, it is immediately obvious which version is "later" even if they have the same date, allowing us to release same-day patches if needed. (Note: that is, commits that were made on the same day; the release date itself is irrelevant here.) - It contains the git sha so the commit built for that release is immediately obvious. - It sorts correctly under all schemes (modulo the modification for GHC). Alternatives I considered: - Pander to GHC: 0.13.53-alpha-20200214-3025-ef5d32b7. This format would be accepted by all schemes, but will not sort as expected under semantic versioning (though Maven will be fine). I have no idea how it will sort under GHC. - Not having any non-numeric component, e.g. `0.13.53.20200214.3025`. This is not valid semantic versioning and is therefore rejected by npm. - Not having detailed info: just go with `0.13.53-snapshot`. This is what is generally done in the Java world, but we then lose track of what version is actually in use and I'm concerned about bug reports. This would also not let us publish to the main Maven repo (at least not more than once), as artifacts there are supposed to be immutable. - No having a qualifier: `0.13.53-3025` would be acceptable to all three version formats. However, it would not clearly indicate to humans that it is not meant as a stable version, and would sort differently under semantic versioning (which counts it as a prerelease, i.e. before `0.13.53`) than under maven (which counts it as a patch, so after `0.13.53`). - Just counting releases: `0.13.53-alpha.1`, where we just count the number of prereleases in-between `0.13.52` and the next. This is currently the fallback plan if Windows path length causes issues. It would be less convenient to map releases to commits, but it could still be done via querying the history of the `LATEST` file. Release notes ============= > Note: We have decided not to have release notes for snapshot releases. Release notes are a bit tricky. Because we want the ability to make snapshot releases, then later on promote them to stable releases, it follows that we want to build commits from the past. However, if we decide post-hoc that a commit is actually a good candidate for a release, there is no way that commit can have the appropriate release notes: it cannot know what version number it's getting, and, moreover, we now track changes in commit messages. And I do not think anyone wants to go back to the release notes file being a merge bottleneck. But release notes need to be published to the releases blog upon releasing a stable version, and the docs website needs to be updated and include them. The only sensible solution here is to pick up the release notes as of the commit that triggers the release. As the docs cron runs asynchronously, this means walking down the git history to find the relevant commit. > Note: We could probably do away with the asynchronicity at this point. > It was originally included to cover for the possibility of a release > failing. If we are releasing commits from the past after they have been > tested, this should not be an issue anymore. If the docs generation were > part of the synchronous release step, it would have direct access to the > correct release notes without having to walk down the git history. > > However, I think it is more prudent to keep this change as a future step, > after we're confident the new release scheme does indeed produce much more > reliable "stable" releases. New release process =================== Just like releases are currently controlled mostly by detecting changes to the `VERSION` file, the new process will be controlled by detecting changes to the `LATEST` file. The format of that file will include both the version string and the corresponding SHA. Upon detecting a change to the `LATEST` file, CI will run the entire release process, just like it does now with the VERSION file. The main differences are: 1. Before running the release step, CI will checkout the commit specified in the LATEST file. This requires separating the release step from the build step, which in my opinion is cleaner anyway. 2. The `//:VERSION` Bazel target is replaced by a repository rule that gets the version to build from an environment variable, with a default of `0.0.0` to remain consistent with the current `daml-head` behaviour. Some of the manual steps will need to be skipped for a snapshot release. See amended `release/RELEASE.md` in this commit for details. The main caveat of this approach is that the official release will be a different binary from the corresponding snapshot. It will have been built from the same source, but with a different version string. This is somewhat mitigated by Bazel caching, meaning any build step that does not depend on the version string should use the cache and produce identical results. I do not think this can be avoided when our artifact includes its own version number. I must note, though, that while going through the changes required after removing the `VERSION` file, I have been quite surprised at the sheer number of things that actually depend on the SDK version number. I believe we should look into reducing that over time. CHANGELOG_BEGIN CHANGELOG_END
2020-02-25 19:01:23 +03:00
load("//bazel_tools:build_environment.bzl", "build_environment")
introduce new release process (#4513) Context ======= After multiple discussions about our current release schedule and process, we've come to the conclusion that we need to be able to make a distinction between technical snapshots and marketing releases. In other words, we need to be able to create a bundle for early adopters to test without making it an officially-supported version, and without necessarily implying everyone should go through the trouble of upgrading. The underlying goal is to have less frequent but more stable "official" releases. This PR is a proposal for a new release process designed under the following constraints: - Reuse as much as possible of the existing infrastructure, to minimize effort but also chances of disruptions. - Have the ability to create "snapshot"/"nightly"/... releases that are not meant for general public consumption, but can still be used by savvy users without jumping through too many extra hoops (ideally just swapping in a slightly-weirder version string). - Have the ability to promote an existing snapshot release to "official" release status, with as few changes as possible in-between, so we can be confident that the official release is what we tested as a prerelease. - Have as much of the release pipeline shared between the two types of releases, to avoid discovering non-transient problems while trying to promote a snapshot to an official release. - Triggerring a release should still be done through a PR, so we can keep the same approval process for SOC2 auditability. The gist of this proposal is to replace the current `VERSION` file with a `LATEST` file, which would have the following format: ``` ef5d32b7438e481de0235c5538aedab419682388 0.13.53-alpha.20200214.3025.ef5d32b7 ``` This file would be maintained with a script to reduce manual labor in producing the version string. Other than that, the process will be largely the same, with releases triggered by changes to this `LATEST` and the release notes files. Version numbers =============== Because one of the goals is to reduce the velocity of our published version numbers, we need a different version scheme for our snapshot releases. Fortunately, most version schemes have some support for that; unfortunately, the SDK sits at the intersection of three different version schemes that have made incompatible choices. Without going into too much detail: - Semantic versioning (which we chose as the version format for the SDK version number) allows for "prerelease" version numbers as well as "metadata"; an example of a complete version string would be `1.2.3-nightly.201+server12.43`. The "main" part of the version string always has to have 3 numbers separated by dots; the "prerelease" (after the `-` but before the `+`) and the "metadata" (after the `+`) parts are optional and, if present, must consist of one or more segments separated by dots, where a segment can be either a number or an alphanumeric string. In terms of ordering, metadata is irrelevant and any version with a prerelease string is before the corresponding "main" version string alone. Amongst prereleases, segments are compared in order with purely numeric ones compared as numbers and mixed ones compared lexicographically. So 1.2.3 is more recent than 1.2.3-1, which is itself less recent than 1.2.3-2. - Maven version strings are any number of segments separated by a `.`, a `-`, or a transition between a number and a letter. Version strings are compared element-wise, with numeric segments being compared as numbers. Alphabetic segments are treated specially if they happen to be one of a handful of magic words (such as "alpha", "beta" or "snapshot" for example) which count as "qualifiers"; a version string with a qualifier is "before" its prefix (`1.2.3` is before `1.2.3-alpha.3`, which is the same as `1.2.3-alpha3` or `1.2.3-alpha-3`), and there is a special ordering amongst qualifiers. Other alphabetic segments are compared alphabetically and count as being "after" their prefix (`1.2.3-really-final-this-time` counts as being released after `1.2.3`). - GHC package numbers are comprised of any number of numeric segments separated by `.`, plus an optional (though deprecated) alphanumeric "version tag" separated by a `-`. I could not find any official documentation on ordering for the version tag; numeric segments are compared as numbers. - npm uses semantic versioning so that is covered already. After much more investigation than I'd care to admit, I have come up with the following compromise as the least-bad solution. First, obviously, the version string for stable/marketing versions is going to be "standard" semver, i.e. major.minor.patch, all numbers, which works, and sorts as expected, for all three schemes. For snapshot releases, we shall use the following (semver) format: ``` 0.13.53-alpha.20200214.3025.ef5d32b7 ``` where the components are, respectively: - `0.13.53`: the expected version string of the next "stable" release. - `alpha`: a marker that hopefully scares people enough. - `20200214`: the date of the release commit, which _MUST_ be on master. - `3025`: the number of commits in master up to the release commit (included). Because we have a linear, append-only master branch, this uniquely identifies the commit. - `ef5d32b7ù : the first 8 characters of the release commit sha. This is not strictly speaking necessary, but makes it a lot more convenient to identify the commit. The main downsides of this format are: 1. It is not a valid format for GHC packages. We do not publish GHC packages from the SDK (so far we have instead opted to release our Haskell code as separate packages entirely), so this should not be an issue. However, our SDK version currently leaks to `ghc-pkg` as the version string for the stdlib (and prim) packages. This PR addresses that by tweaking the compiler to remove the offending bits, so `ghc-pkg` would see the above version number as `0.13.53.20200214.3025`, which should be enough to uniquely identify it. Note that, as far as I could find out, this number would never be exposed to users. 2. It is rather long, which I think is good from a human perspective as it makes it more scary. However, I have been told that this may be long enough to cause issues on Windows by pushing us past the max path size limitation of that "OS". I suggest we try it and see what happens. The upsides are: - It clearly indicates it is an unstable release (`alpha`). - It clearly indicates how old it is, by including the date. - To humans, it is immediately obvious which version is "later" even if they have the same date, allowing us to release same-day patches if needed. (Note: that is, commits that were made on the same day; the release date itself is irrelevant here.) - It contains the git sha so the commit built for that release is immediately obvious. - It sorts correctly under all schemes (modulo the modification for GHC). Alternatives I considered: - Pander to GHC: 0.13.53-alpha-20200214-3025-ef5d32b7. This format would be accepted by all schemes, but will not sort as expected under semantic versioning (though Maven will be fine). I have no idea how it will sort under GHC. - Not having any non-numeric component, e.g. `0.13.53.20200214.3025`. This is not valid semantic versioning and is therefore rejected by npm. - Not having detailed info: just go with `0.13.53-snapshot`. This is what is generally done in the Java world, but we then lose track of what version is actually in use and I'm concerned about bug reports. This would also not let us publish to the main Maven repo (at least not more than once), as artifacts there are supposed to be immutable. - No having a qualifier: `0.13.53-3025` would be acceptable to all three version formats. However, it would not clearly indicate to humans that it is not meant as a stable version, and would sort differently under semantic versioning (which counts it as a prerelease, i.e. before `0.13.53`) than under maven (which counts it as a patch, so after `0.13.53`). - Just counting releases: `0.13.53-alpha.1`, where we just count the number of prereleases in-between `0.13.52` and the next. This is currently the fallback plan if Windows path length causes issues. It would be less convenient to map releases to commits, but it could still be done via querying the history of the `LATEST` file. Release notes ============= > Note: We have decided not to have release notes for snapshot releases. Release notes are a bit tricky. Because we want the ability to make snapshot releases, then later on promote them to stable releases, it follows that we want to build commits from the past. However, if we decide post-hoc that a commit is actually a good candidate for a release, there is no way that commit can have the appropriate release notes: it cannot know what version number it's getting, and, moreover, we now track changes in commit messages. And I do not think anyone wants to go back to the release notes file being a merge bottleneck. But release notes need to be published to the releases blog upon releasing a stable version, and the docs website needs to be updated and include them. The only sensible solution here is to pick up the release notes as of the commit that triggers the release. As the docs cron runs asynchronously, this means walking down the git history to find the relevant commit. > Note: We could probably do away with the asynchronicity at this point. > It was originally included to cover for the possibility of a release > failing. If we are releasing commits from the past after they have been > tested, this should not be an issue anymore. If the docs generation were > part of the synchronous release step, it would have direct access to the > correct release notes without having to walk down the git history. > > However, I think it is more prudent to keep this change as a future step, > after we're confident the new release scheme does indeed produce much more > reliable "stable" releases. New release process =================== Just like releases are currently controlled mostly by detecting changes to the `VERSION` file, the new process will be controlled by detecting changes to the `LATEST` file. The format of that file will include both the version string and the corresponding SHA. Upon detecting a change to the `LATEST` file, CI will run the entire release process, just like it does now with the VERSION file. The main differences are: 1. Before running the release step, CI will checkout the commit specified in the LATEST file. This requires separating the release step from the build step, which in my opinion is cleaner anyway. 2. The `//:VERSION` Bazel target is replaced by a repository rule that gets the version to build from an environment variable, with a default of `0.0.0` to remain consistent with the current `daml-head` behaviour. Some of the manual steps will need to be skipped for a snapshot release. See amended `release/RELEASE.md` in this commit for details. The main caveat of this approach is that the official release will be a different binary from the corresponding snapshot. It will have been built from the same source, but with a different version string. This is somewhat mitigated by Bazel caching, meaning any build step that does not depend on the version string should use the cache and produce identical results. I do not think this can be avoided when our artifact includes its own version number. I must note, though, that while going through the changes required after removing the `VERSION` file, I have been quite surprised at the sheer number of things that actually depend on the SDK version number. I believe we should look into reducing that over time. CHANGELOG_BEGIN CHANGELOG_END
2020-02-25 19:01:23 +03:00
build_environment(name = "build_environment")
load("//bazel_tools:oracle.bzl", "oracle_configure")
oracle_configure(name = "oracle")
load("//bazel_tools:scala_version.bzl", "scala_version_configure")
scala_version_configure(name = "scala_version")
load(
"@scala_version//:index.bzl",
"scala_artifacts",
"scala_major_version",
"scala_major_version_suffix",
"scala_version",
)
dadew(name = "dadew")
load("@os_info//:os_info.bzl", "is_darwin", "is_linux", "is_windows")
load("//bazel_tools:ghc_dwarf.bzl", "ghc_dwarf")
ghc_dwarf(name = "ghc_dwarf")
load("@ghc_dwarf//:ghc_dwarf.bzl", "enable_ghc_dwarf")
2019-04-04 11:33:38 +03:00
# Configure msys2 POSIX toolchain provided by dadew.
load("//bazel_tools/dev_env_tool:dev_env_tool.bzl", "dadew_sh_posix_configure")
dadew_sh_posix_configure() if is_windows else None
2019-04-04 11:33:38 +03:00
nixpkgs_local_repository(
name = "nixpkgs",
nix_file = "//nix:nixpkgs.nix",
nix_file_deps = [
"//nix:nixpkgs/default.nix",
"//nix:nixpkgs/default.src.json",
"//nix:system.nix",
2019-04-04 11:33:38 +03:00
],
)
load("//nix:repositories.bzl", "common_nix_file_deps", "dev_env_nix_repos")
load("//bazel_tools:damlc_legacy.bzl", "damlc_legacy")
damlc_legacy(
name = "damlc_legacy",
sha256 = {
"linux": "dd1c7f2d34f3eac631c7edc1637c9b3e93c341561d41828b4f0d8e897effa90f",
"windows": "f458b8d2612887915372aad61766120e34c0fdc6a65eb37cdb1a8efc58e14de3",
"macos": "63141d7168e883c0b8c212dca6198f5463f82aa82bbbc51d8805ce7e474300e4",
},
version = "1.18.0-snapshot.20211117.8399.0.a05a40ae",
)
2019-04-04 11:33:38 +03:00
# Use Nix provisioned cc toolchain
nixpkgs_cc_configure(
2019-04-04 11:33:38 +03:00
nix_file = "//nix:bazel-cc-toolchain.nix",
nix_file_deps = common_nix_file_deps + [
"//nix:tools/bazel-cc-toolchain/default.nix",
2019-04-04 11:33:38 +03:00
],
repositories = dev_env_nix_repos,
) if not is_windows else None
2019-04-04 11:33:38 +03:00
nixpkgs_python_configure(repository = "@nixpkgs") if not is_windows else None
2019-04-04 11:33:38 +03:00
# Curl system dependency
nixpkgs_package(
name = "curl_nix",
attribute_path = "curl",
2019-04-04 11:33:38 +03:00
nix_file = "//nix:bazel.nix",
nix_file_deps = common_nix_file_deps,
repositories = dev_env_nix_repos,
)
FreePort draw from outside ephemeral port range (#10774) * Test case for LockedFreePort not colliding with port 0 changelog_begin changelog_end * Discover dynamic port range on Linux * Random port generator outside ephemeral range * remove dev comments * Draw FreePort from outside the ephemeral port range Note, there is a race condition between the socket being closed and the lock-file being created in LockedFreePort. This is not a new issue, it was already present with the previous port 0 based implementation. LockedFreePort handles this by attempting to find a free port and taking a file lock multiple times. But, it could happen that A `find`s port N, and obtains the lock, but doesn't bind port N again, yet; then B binds port N during `find`; then A attempts to bind port N before B could release it again and fails because B still holds it. * Select dynamic port range based on OS * Detect dynamic port range on MacOS and Windows * Import sysctl from Nix on MacOS changelog_begin changelog_end * Windows line separator * FreePort helpers visibility * Use more informative exception types * Use a more light weight unit test * Add comments * Fix Windows * Update libs-scala/ports/src/main/scala/com/digitalasset/ports/FreePort.scala Co-authored-by: Stefano Baghino <43749967+stefanobaghino-da@users.noreply.github.com> * Update libs-scala/ports/src/main/scala/com/digitalasset/ports/FreePort.scala Co-authored-by: Stefano Baghino <43749967+stefanobaghino-da@users.noreply.github.com> * Add a comment to clarify the generated port range * fmt * unused import * Split libs-scala/ports Splits the FreePort and LockedFreePort components into a separate library as this is only used for testing purposes. Co-authored-by: Andreas Herrmann <andreas.herrmann@tweag.io> Co-authored-by: Stefano Baghino <43749967+stefanobaghino-da@users.noreply.github.com>
2021-09-07 16:41:43 +03:00
# Sysctl system dependency
nixpkgs_package(
name = "sysctl_nix",
attribute_path = "sysctl",
nix_file = "//nix:bazel.nix",
nix_file_deps = common_nix_file_deps,
repositories = dev_env_nix_repos,
)
# Toxiproxy dependency
nixpkgs_package(
name = "toxiproxy_nix",
attribute_path = "toxiproxy",
fail_not_supported = False,
nix_file = "//nix:bazel.nix",
nix_file_deps = common_nix_file_deps,
repositories = dev_env_nix_repos,
)
dev_env_tool(
name = "toxiproxy_dev_env",
nix_include = ["bin/toxiproxy-cmd"],
nix_label = "@toxiproxy_nix",
nix_paths = ["bin/toxiproxy-cmd"],
tools = ["toxiproxy"],
win_include = ["toxiproxy-server-windows-amd64.exe"],
win_paths = ["toxiproxy-server-windows-amd64.exe"],
win_tool = "toxiproxy",
)
2019-04-04 11:33:38 +03:00
# Patchelf system dependency
nixpkgs_package(
name = "patchelf_nix",
attribute_path = "patchelf",
2019-04-04 11:33:38 +03:00
nix_file = "//nix:bazel.nix",
nix_file_deps = common_nix_file_deps,
repositories = dev_env_nix_repos,
)
# netcat dependency
nixpkgs_package(
name = "netcat_nix",
attribute_path = "netcat-gnu",
nix_file = "//nix:bazel.nix",
nix_file_deps = common_nix_file_deps,
repositories = dev_env_nix_repos,
)
dev_env_tool(
name = "netcat_dev_env",
nix_include = ["bin/nc"],
nix_label = "@netcat_nix",
nix_paths = ["bin/nc"],
tools = ["nc"],
win_include = ["usr/bin/nc.exe"],
win_paths = ["usr/bin/nc.exe"],
win_tool = "msys2",
)
nixpkgs_package(
name = "openssl_nix",
attribute_path = "openssl",
fail_not_supported = False,
nix_file = "//nix:bazel.nix",
nix_file_deps = common_nix_file_deps,
repositories = dev_env_nix_repos,
)
dev_env_tool(
name = "openssl_dev_env",
nix_include = ["bin/openssl"],
nix_label = "@openssl_nix",
nix_paths = ["bin/openssl"],
tools = ["openssl"],
win_include = [
"usr/bin",
"usr/ssl",
],
win_paths = ["usr/bin/openssl.exe"],
win_tool = "msys2",
)
2019-04-04 11:33:38 +03:00
# Tar & gzip dependency
nixpkgs_package(
name = "tar_nix",
attribute_path = "gnutar",
fail_not_supported = False,
2019-04-04 11:33:38 +03:00
nix_file = "//nix:bazel.nix",
nix_file_deps = common_nix_file_deps,
repositories = dev_env_nix_repos,
)
2019-04-04 11:33:38 +03:00
dev_env_tool(
name = "tar_dev_env",
nix_include = ["bin/tar"],
nix_label = "@tar_nix",
nix_paths = ["bin/tar"],
tools = ["tar"],
win_include = ["usr/bin/tar.exe"],
win_paths = ["usr/bin/tar.exe"],
win_tool = "msys2",
2019-04-04 11:33:38 +03:00
)
nixpkgs_package(
name = "gzip_nix",
attribute_path = "gzip",
fail_not_supported = False,
2019-04-04 11:33:38 +03:00
nix_file = "//nix:bazel.nix",
nix_file_deps = common_nix_file_deps,
repositories = dev_env_nix_repos,
)
2019-04-04 11:33:38 +03:00
dev_env_tool(
name = "gzip_dev_env",
nix_include = ["bin/gzip"],
nix_label = "@gzip_nix",
nix_paths = ["bin/gzip"],
tools = ["gzip"],
win_include = ["usr/bin/gzip.exe"],
win_paths = ["usr/bin/gzip.exe"],
win_tool = "msys2",
2019-04-04 11:33:38 +03:00
)
nixpkgs_package(
name = "patch_nix",
attribute_path = "gnupatch",
fail_not_supported = False,
nix_file = "//nix:bazel.nix",
nix_file_deps = common_nix_file_deps,
repositories = dev_env_nix_repos,
)
dev_env_tool(
name = "patch_dev_env",
nix_include = ["bin/patch"],
nix_label = "@patch_nix",
nix_paths = ["bin/patch"],
tools = ["patch"],
win_include = ["usr/bin/patch.exe"],
win_paths = ["usr/bin/patch.exe"],
win_tool = "msys2",
)
dev_env_tool(
name = "mvn_dev_env",
nix_include = ["bin/mvn"],
nix_label = "@mvn_nix",
nix_paths = ["bin/mvn"],
tools = ["mvn"],
win_include = [
"bin",
"boot",
"conf",
"lib",
],
win_paths = ["bin/mvn"],
win_tool = "maven-3.6.1",
)
2019-04-04 11:33:38 +03:00
nixpkgs_package(
name = "awk_nix",
attribute_path = "gawk",
2019-04-04 11:33:38 +03:00
nix_file = "//nix:bazel.nix",
nix_file_deps = common_nix_file_deps,
repositories = dev_env_nix_repos,
)
nixpkgs_package(
name = "coreutils_nix",
attribute_path = "coreutils",
nix_file = "//nix:bazel.nix",
nix_file_deps = common_nix_file_deps,
repositories = dev_env_nix_repos,
)
nixpkgs_package(
name = "grpcurl_nix",
attribute_path = "grpcurl",
nix_file = "//nix:bazel.nix",
nix_file_deps = common_nix_file_deps,
repositories = dev_env_nix_repos,
)
2019-04-04 11:33:38 +03:00
nixpkgs_package(
name = "hlint_nix",
attribute_path = "hlint",
2019-04-04 11:33:38 +03:00
nix_file = "//nix:bazel.nix",
nix_file_deps = common_nix_file_deps,
2019-04-04 11:33:38 +03:00
repositories = dev_env_nix_repos,
)
nixpkgs_package(
name = "zip_nix",
attribute_path = "zip",
fail_not_supported = False,
2019-04-04 11:33:38 +03:00
nix_file = "//nix:bazel.nix",
nix_file_deps = common_nix_file_deps,
repositories = dev_env_nix_repos,
)
nixpkgs_package(
name = "jekyll_nix",
attribute_path = "jekyll",
nix_file = "//nix:bazel.nix",
nix_file_deps = common_nix_file_deps,
repositories = dev_env_nix_repos,
)
2019-04-04 11:33:38 +03:00
load(
"@rules_haskell//haskell:ghc_bindist.bzl",
2019-04-04 11:33:38 +03:00
"haskell_register_ghc_bindists",
)
load(
"@rules_haskell//haskell:nixpkgs.bzl",
2019-04-04 11:33:38 +03:00
"haskell_register_ghc_nixpkgs",
)
nixpkgs_package(
name = "glibc_locales",
attribute_path = "glibcLocales",
build_file_content = """
package(default_visibility = ["//visibility:public"])
filegroup(
name = "locale-archive",
srcs = ["lib/locale/locale-archive"],
)
""",
nix_file = "//nix:bazel.nix",
nix_file_deps = common_nix_file_deps,
repositories = dev_env_nix_repos,
) if is_linux else None
# This is used to get ghc-pkg on Linux.
nixpkgs_package(
name = "ghc_nix",
attribute_path = "ghc",
build_file_content = """
package(default_visibility = ["//visibility:public"])
exports_files(glob(["lib/**/*"]))
""",
nix_file = "//nix:bazel.nix",
nix_file_deps = common_nix_file_deps,
repositories = dev_env_nix_repos,
) if not is_windows else None
common_ghc_flags = [
# We default to -c opt but we also want -O1 in -c dbg builds
# since we use them for profiling.
"-O1",
"-hide-package=ghc-boot-th",
"-hide-package=ghc-boot",
]
2019-04-04 11:33:38 +03:00
# Used by Darwin and Linux
haskell_register_ghc_nixpkgs(
attribute_path = "ghcDwarf" if enable_ghc_dwarf else "ghc",
build_file = "@io_tweag_rules_nixpkgs//nixpkgs:BUILD.pkg",
# -fexternal-dynamic-refs is required so that we produce position-independent
# relocations against some functions (-fPIC alone isnt sufficient).
# -split-sections would allow us to produce significantly smaller binaries, e.g., for damlc,
# the binary shrinks from 186MB to 83MB. -split-sections only works on Linux but
# we get a similar behavior on Darwin by default.
# However, we had to disable split-sections for now as it seems to interact very badly
# with the GHCi linker to the point where :main takes several minutes rather than several seconds.
compiler_flags = common_ghc_flags + [
"-fexternal-dynamic-refs",
] + (["-g3"] if enable_ghc_dwarf else ([
"-optl-unexported_symbols_list=*",
"-optc-mmacosx-version-min=10.14",
"-opta-mmacosx-version-min=10.14",
"-optl-mmacosx-version-min=10.14",
] if is_darwin else ["-optl-s"])),
compiler_flags_select = {
"@com_github_digital_asset_daml//:profiling_build": ["-fprof-auto"],
"//conditions:default": [],
},
locale_archive = "@glibc_locales//:locale-archive",
nix_file = "//nix:bazel.nix",
nix_file_deps = common_nix_file_deps,
repl_ghci_args = [
"-O0",
"-fexternal-interpreter",
"-Wwarn",
],
repositories = dev_env_nix_repos,
version = "9.0.2",
2019-04-04 11:33:38 +03:00
)
# Used by Windows
haskell_register_ghc_bindists(
compiler_flags = common_ghc_flags,
version = "9.0.2",
2019-04-04 11:33:38 +03:00
) if is_windows else None
nixpkgs_package(
name = "jq",
attribute_path = "jq",
fail_not_supported = False,
nix_file = "//nix:bazel.nix",
nix_file_deps = common_nix_file_deps,
repositories = dev_env_nix_repos,
2019-04-04 11:33:38 +03:00
)
dev_env_tool(
name = "jq_dev_env",
nix_include = ["bin/jq"],
nix_label = "@jq",
nix_paths = ["bin/jq"],
tools = ["jq"],
win_include = ["mingw64/bin"],
win_include_as = {"mingw64/bin": "bin"},
win_paths = ["bin/jq.exe"],
win_tool = "msys2",
)
nixpkgs_package(
name = "mvn_nix",
attribute_path = "mvn",
fail_not_supported = False,
nix_file = "//nix:bazel.nix",
nix_file_deps = common_nix_file_deps,
repositories = dev_env_nix_repos,
)
2019-04-04 11:33:38 +03:00
#node & npm
nixpkgs_package(
name = "node_nix",
attribute_path = "nodejsNested",
build_file_content = 'exports_files(glob(["node_nix/**"]))',
fail_not_supported = False,
nix_file = "//nix:bazel.nix",
nix_file_deps = common_nix_file_deps,
repositories = dev_env_nix_repos,
2019-04-04 11:33:38 +03:00
)
#sass
nixpkgs_package(
name = "sass_nix",
attribute_path = "sass",
nix_file = "//nix:bazel.nix",
nix_file_deps = common_nix_file_deps,
repositories = dev_env_nix_repos,
2019-04-04 11:33:38 +03:00
)
#tex
nixpkgs_package(
name = "texlive_nix",
attribute_path = "texlive",
nix_file = "//nix:bazel.nix",
nix_file_deps = common_nix_file_deps,
repositories = dev_env_nix_repos,
2019-04-04 11:33:38 +03:00
)
#sphinx
nixpkgs_package(
name = "sphinx_nix",
attribute_path = "sphinx-exts",
nix_file = "//nix:bazel.nix",
nix_file_deps = common_nix_file_deps,
repositories = dev_env_nix_repos,
2019-04-04 11:33:38 +03:00
)
#Imagemagick
nixpkgs_package(
name = "imagemagick_nix",
attribute_path = "imagemagick",
nix_file = "//nix:bazel.nix",
nix_file_deps = common_nix_file_deps,
repositories = dev_env_nix_repos,
2019-04-04 11:33:38 +03:00
)
# This only makes sense on Windows so we just put dummy values in the nix fields.
dev_env_tool(
name = "makensis_dev_env",
nix_include = [""],
nix_paths = ["bin/makensis.exe"],
tools = ["makensis"],
win_include = [
"bin",
"contrib",
"include",
"plugins",
"stubs",
],
win_paths = ["bin/makensis.exe"],
win_tool = "nsis-3.04",
) if is_windows else None
# Scaladoc
nixpkgs_package(
name = "scala_nix",
attribute_path = "scala_{}".format(scala_major_version_suffix),
nix_file = "//nix:bazel.nix",
nix_file_deps = common_nix_file_deps,
repositories = dev_env_nix_repos,
)
2019-04-04 11:33:38 +03:00
# Dummy target //external:python_headers.
# To avoid query errors due to com_google_protobuf.
# See https://github.com/protocolbuffers/protobuf/blob/d9ccd0c0e6bbda9bf4476088eeb46b02d7dcd327/util/python/BUILD
bind(
name = "python_headers",
actual = "@com_google_protobuf//util/python:python_headers",
)
http_archive(
name = "static_asset_d3plus",
build_file_content = 'exports_files(["js/d3.min.js", "js/d3plus.min.js"])',
sha256 = "7d31a500a4850364a966ac938eea7f2fa5ce1334966b52729079490636e7049a",
strip_prefix = "d3plus.v1.9.8",
type = "zip",
urls = ["https://github.com/alexandersimoes/d3plus/releases/download/v1.9.8/d3plus.zip"],
)
load("//:bazel-haskell-deps.bzl", "daml_haskell_deps")
daml_haskell_deps()
load("@rules_haskell//tools:repositories.bzl", "rules_haskell_worker_dependencies")
# We don't use the worker mode, but this is required for bazel query to function.
# Call this after `daml_haskell_deps` to ensure that the right `stack` is used.
rules_haskell_worker_dependencies()
Revert "Switch to Bazel 5 (#12935)" (#12974) This reverts commit 4c0118df4d0304153e8f6ed9e3cfb1a1295876df. This breaks passing -p to bazel test for Haskell tests, e.g., bazel test //compiler/damlc/tests:integration-v1dev --test_arg -p --test_arg InterfaceEq which breaks with something horrifying like moritz@adjunction ~/daml (main)> bazel test //compiler/damlc/tests:integration-v1dev --test_arg -p --test_arg InterfaceEq [dev-env] Building tools.bazel... [dev-env] Built tools.bazel in /nix/store/m7gzlmr0pqjpl01ihgvazxgfs3sfwl61-bazel and linked to /home/moritz/daml/dev-env/var/gc-roots/bazel [dev-env] Building tools.find... [dev-env] Built tools.find in /nix/store/645v3545lcbx77wq7355rgdrgbhn5wx7-findutils-4.8.0 and linked to /home/moritz/daml/dev-env/var/gc-roots/find INFO: Invocation ID: 034b3e45-851f-472e-ab71-b7f718829582 DEBUG: /home/moritz/.cache/bazel/_bazel_moritz/bb4e4404f889dc1b816f246b08c0d9ea/external/rules_haskell/haskell/private/versions.bzl:60:10: WARNING: bazel version is too recent. Supported versions range from 4.0.0 to 4.2.1, but found: 5.0.0- (@non-git) /nix/store/dadkhf8vch2i2kvig962ilfr5j3chshr-go-1.17.6 /nix/store/pzh24n543i6jqa01hdmgqknlyf294bn1-bazel-nixpkgs-posix-toolchain /nix/store/2hfwndk47wpvaib06qyhcdp83b423xvh-jq-1.6-bin /nix/store/hjggs9s82qh7r5j8sgapn389hf24wdx8-bazel-nixpkgs-cc-toolchain /nix/store/yxgg3bn4v288sc00kf09svrwz2r461c9-ghc-native-bignum-9.0.2 /nix/store/2hwx0jhcdsx3wfvmb50ih19jkh2ra4jh-glibc-locales-2.33-108 /nix/store/8wpmx049z8m0ffhy3jyi41qb6pbxwvy8-bazel-nixpkgs-java-runtime ERROR: file 'external/bazel_tools/src/tools/launcher/_objs/launcher/dummy.pic.o' is generated by these conflicting actions: Label: @bazel_tools//src/tools/launcher:launcher RuleClass: cc_binary rule Configuration: 869f6bbd14d2ac66dcacb164312d88fa059b017e3c17513cb5051b23879ac7f9, 8c138cc79f95329f01b0d325511ad0ea89ca5126e421e67e5239706d0f247c2c Mnemonic: CppCompile Action key: 3d79fe1470dcb842d5944c98dfe7a62715db6d86fdb12d3ff60af3bdf41b7996 Progress message: Compiling src/tools/launcher/dummy.cc PrimaryInput: File:[/home/moritz/.cache/bazel/_bazel_moritz/bb4e4404f889dc1b816f246b08c0d9ea/external/bazel_tools[source]]src/tools/launcher/dummy.cc PrimaryOutput: File:[[<execution_root>]bazel-out/k8-opt/bin]external/bazel_tools/src/tools/launcher/_objs/launcher/dummy.pic.o Owner information: ConfiguredTargetKey{label=@bazel_tools//src/tools/launcher:launcher, config=BuildConfigurationValue.Key[869f6bbd14d2ac66dcacb164312d88fa059b017e3c17513cb5051b23879ac7f9]}, ConfiguredTargetKey{label=@bazel_tools//src/tools/launcher:launcher, config=BuildConfigurationValue.Key[8c138cc79f95329f01b0d325511ad0ea89ca5126e421e67e5239706d0f247c2c]} MandatoryInputs: are equal Outputs: are equal ERROR: file 'external/bazel_tools/src/tools/launcher/_objs/launcher/dummy.o' is generated by these conflicting actions: Label: @bazel_tools//src/tools/launcher:launcher RuleClass: cc_binary rule Configuration: 869f6bbd14d2ac66dcacb164312d88fa059b017e3c17513cb5051b23879ac7f9, 8c138cc79f95329f01b0d325511ad0ea89ca5126e421e67e5239706d0f247c2c Mnemonic: CppCompile Action key: 9f46e824944add9e9951ef51ddb6cb4b744bc97f90b5749132179d1d1699dfa1 Progress message: Compiling src/tools/launcher/dummy.cc PrimaryInput: File:[/home/moritz/.cache/bazel/_bazel_moritz/bb4e4404f889dc1b816f246b08c0d9ea/external/bazel_tools[source]]src/tools/launcher/dummy.cc PrimaryOutput: File:[[<execution_root>]bazel-out/k8-opt/bin]external/bazel_tools/src/tools/launcher/_objs/launcher/dummy.o Owner information: ConfiguredTargetKey{label=@bazel_tools//src/tools/launcher:launcher, config=BuildConfigurationValue.Key[869f6bbd14d2ac66dcacb164312d88fa059b017e3c17513cb5051b23879ac7f9]}, ConfiguredTargetKey{label=@bazel_tools//src/tools/launcher:launcher, config=BuildConfigurationValue.Key[8c138cc79f95329f01b0d325511ad0ea89ca5126e421e67e5239706d0f247c2c]} MandatoryInputs: are equal Outputs: are equal ERROR: com.google.devtools.build.lib.skyframe.ArtifactConflictFinder$ConflictException: com.google.devtools.build.lib.actions.MutableActionGraph$ActionConflictException: for external/bazel_tools/src/tools/launcher/_objs/launcher/dummy.o, previous action: action 'Compiling src/tools/launcher/dummy.cc', attempted action: action 'Compiling src/tools/launcher/dummy.cc' changelog_begin changelog_end
2022-02-16 21:24:00 +03:00
load("//bazel_tools:java.bzl", "dadew_java_configure", "nixpkgs_java_configure")
dadew_java_configure(
name = "dadew_java_runtime",
dadew_path = "ojdkbuild11",
) if is_windows else None
nixpkgs_java_configure(
attribute_path = "jdk11.home",
nix_file = "//nix:bazel.nix",
nix_file_deps = common_nix_file_deps,
repositories = dev_env_nix_repos,
) if not is_windows else None
2019-04-04 11:33:38 +03:00
# rules_go used here to compile a wrapper around the protoc-gen-scala plugin
Darwin M1 Support (#13401) * Update rules_nixpkgs and rules_sh rules_sh was an implicit dependency before. We are now depending on it explicitly to be able to control the version. * Patch rules_nixpkgs to detect ARM M1 This should be upstreamed. * Patch rules_haskell for ARM M1 compatibility * Detect MacOS M1 OS and architecture. * Consistently use the CC toolchains' linker. This is important when we switch to GHC with LLVM. * Detect Darwin M1 in os_info.bzl * Use the new rules_nixpkgs host platform The old flags hard-coded the CPU architecture. The new platform automatically inherits from Bazel's builtin host platform. * Import the Go toolchain from rules_nixpkgs * Update nodejs to version 16 * Disable Haddock on lsp-types We're also disabling it on the other haskell_cabal_library instances, and it is causing build errors on M1. ``` Running Haddock on library for lsp-types-1.4.0.0.. creating /private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc/html/lsp-types creating /private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc/html creating /private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc creating /private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc/html creating /private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc/html/lsp-types /private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc/html/lsp-types/haddock-response42424-1.txt contents: <<< --prologue=/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc/html/lsp-types/haddock-prologue42424-0.txt --dump-interface=/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc/html/lsp-types/lsp-types.haddock --package-name=lsp-types --package-version=1.4.0.0 --since-qual=external --hide=Language.LSP.Types.CallHierarchy --hide=Language.LSP.Types.Cancellation --hide=Language.LSP.Types.ClientCapabilities --hide=Language.LSP.Types.CodeAction --hide=Language.LSP.Types.CodeLens --hide=Language.LSP.Types.Command --hide=Language.LSP.Types.Common --hide=Language.LSP.Types.Completion --hide=Language.LSP.Types.Configuration --hide=Language.LSP.Types.Declaration --hide=Language.LSP.Types.Definition --hide=Language.LSP.Types.Diagnostic --hide=Language.LSP.Types.DocumentColor --hide=Language.LSP.Types.DocumentFilter --hide=Language.LSP.Types.DocumentHighlight --hide=Language.LSP.Types.DocumentLink --hide=Language.LSP.Types.DocumentSymbol --hide=Language.LSP.Types.FoldingRange --hide=Language.LSP.Types.Formatting --hide=Language.LSP.Types.Hover --hide=Language.LSP.Types.Implementation --hide=Language.LSP.Types.Initialize --hide=Language.LSP.Types.Location --hide=Language.LSP.Types.LspId --hide=Language.LSP.Types.MarkupContent --hide=Language.LSP.Types.Method --hide=Language.LSP.Types.Message --hide=Language.LSP.Types.Parsing --hide=Language.LSP.Types.Progress --hide=Language.LSP.Types.Registration --hide=Language.LSP.Types.References --hide=Language.LSP.Types.Rename --hide=Language.LSP.Types.SelectionRange --hide=Language.LSP.Types.ServerCapabilities --hide=Language.LSP.Types.SemanticTokens --hide=Language.LSP.Types.SignatureHelp --hide=Language.LSP.Types.StaticRegistrationOptions --hide=Language.LSP.Types.TextDocument --hide=Language.LSP.Types.TypeDefinition --hide=Language.LSP.Types.Uri --hide=Language.LSP.Types.Utils --hide=Language.LSP.Types.Window --hide=Language.LSP.Types.WatchedFiles --hide=Language.LSP.Types.WorkspaceEdit --hide=Language.LSP.Types.WorkspaceFolders --hide=Language.LSP.Types.WorkspaceSymbol --html --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/array-0.5.4.0,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/array-0.5.4.0/array.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/base-4.15.1.0,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/base-4.15.1.0/base.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/binary-0.8.8.0,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/binary-0.8.8.0/binary.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/bytestring-0.10.12.1,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/bytestring-0.10.12.1/bytestring.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/containers-0.6.4.1,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/containers-0.6.4.1/containers.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/deepseq-1.4.5.0,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/deepseq-1.4.5.0/deepseq.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/directory-1.3.6.2,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/directory-1.3.6.2/directory.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/exceptions-0.10.4,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/exceptions-0.10.4/exceptions.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/filepath-1.4.2.1,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/filepath-1.4.2.1/filepath.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/ghc-bignum-1.1,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/ghc-bignum-1.1/ghc-bignum.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/ghc-boot-th-9.0.2,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/ghc-boot-th-9.0.2/ghc-boot-th.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/ghc-prim-0.7.0,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/ghc-prim-0.7.0/ghc-prim.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/integer-gmp-1.1,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/integer-gmp-1.1/integer-gmp.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/mtl-2.2.2,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/mtl-2.2.2/mtl.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/parsec-3.1.14.0,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/parsec-3.1.14.0/parsec.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/pretty-1.1.3.6,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/pretty-1.1.3.6/pretty.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/stm-2.5.0.0,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/stm-2.5.0.0/stm.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/template-haskell-2.17.0.0,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/template-haskell-2.17.0.0/template-haskell.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/text-1.2.5.0,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/text-1.2.5.0/text.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/time-1.9.3,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/time-1.9.3/time.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/transformers-0.5.6.2,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/transformers-0.5.6.2/transformers.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/unix-2.7.2.2,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/unix-2.7.2.2/unix.haddock --odir=/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc/html/lsp-types/ --title=lsp-types-1.4.0.0:\ Haskell\ library\ for\ the\ Microsoft\ Language\ Server\ Protocol,\ data\ types --optghc=-fbuilding-cabal-package --optghc=-O --optghc=-outputdir --optghc=../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build --optghc=-odir --optghc=../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build/tmp-42424 --optghc=-hidir --optghc=../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build/tmp-42424 --optghc=-stubdir --optghc=../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build/tmp-42424 --optghc=-i --optghc=-i../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build --optghc=-isrc --optghc=-i../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build/autogen --optghc=-i../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build/global-autogen --optghc=-I../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build/autogen --optghc=-I../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build/global-autogen --optghc=-I../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build --optghc=-optP-D__HADDOCK_VERSION__=2251 --optghc=-optP-include --optghc=-optP../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build/autogen/cabal_macros.h --optghc=-this-unit-id --optghc=lsp-types-1.4.0.0 --optghc=-hide-all-packages --optghc=-Wmissing-home-modules --optghc=-no-user-package-db --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/Diff-0.4.1/_install/Diff-0.4.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/base-orphans-0.8.6/_install/base-orphans-0.8.6.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/OneTuple-0.3.1/_install/OneTuple-0.3.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/splitmix-0.1.0.4/_install/splitmix-0.1.0.4.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/random-1.2.1/_install/random-1.2.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/QuickCheck-2.14.2/_install/QuickCheck-2.14.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/hashable-1.3.5.0/_install/hashable-1.3.5.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/integer-logarithms-1.0.3.1/_install/integer-logarithms-1.0.3.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/primitive-0.7.3.0/_install/primitive-0.7.3.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/scientific-0.3.7.0/_install/scientific-0.3.7.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/attoparsec-0.14.4/_install/attoparsec-0.14.4-attoparsec-internal.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/attoparsec-0.14.4/_install/attoparsec-0.14.4.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/base-compat-0.11.2/_install/base-compat-0.11.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/base-compat-batteries-0.11.2/_install/base-compat-batteries-0.11.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/data-fix-0.3.2/_install/data-fix-0.3.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/dlist-1.0/_install/dlist-1.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/indexed-traversable-0.1.2/_install/indexed-traversable-0.1.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/tagged-0.8.6.1/_install/tagged-0.8.6.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/unordered-containers-0.2.16.0/_install/unordered-containers-0.2.16.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/vector-0.12.3.1/_install/vector-0.12.3.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/indexed-traversable-instances-0.1.1/_install/indexed-traversable-instances-0.1.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/distributive-0.6.2.1/_install/distributive-0.6.2.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/transformers-compat-0.6.6/_install/transformers-compat-0.6.6.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/comonad-5.0.8/_install/comonad-5.0.8.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/th-abstraction-0.4.3.0/_install/th-abstraction-0.4.3.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/bifunctors-5.5.11/_install/bifunctors-5.5.11.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/StateVar-1.2.2/_install/StateVar-1.2.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/contravariant-1.5.5/_install/contravariant-1.5.5.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/semigroupoids-5.3.7/_install/semigroupoids-5.3.7.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/assoc-1.0.2/_install/assoc-1.0.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/these-1.1.1.1/_install/these-1.1.1.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/semialign-1.2.0.1/_install/semialign-1.2.0.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/strict-0.4.0.1/_install/strict-0.4.0.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/text-short-0.1.5/_install/text-short-0.1.5.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/time-compat-1.9.6.1/_install/time-compat-1.9.6.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/uuid-types-1.0.5/_install/uuid-types-1.0.5.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/witherable-0.4.2/_install/witherable-0.4.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/aeson-2.0.3.0/_install/aeson-2.0.3.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/data-default-class-0.1.2.0/_install/data-default-class-0.1.2.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/data-default-instances-containers-0.0.1/_install/data-default-instances-containers-0.0.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/data-default-instances-dlist-0.0.1/_install/data-default-instances-dlist-0.0.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/old-locale-1.0.0.7/_install/old-locale-1.0.0.7.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/data-default-instances-old-locale-0.0.1/_install/data-default-instances-old-locale-0.0.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/data-default-0.7.1.1/_install/data-default-0.7.1.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/network-3.1.2.7/_install/network-3.1.2.7.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/network-bsd-2.8.1.0/_install/network-bsd-2.8.1.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/hslogger-1.3.1.0/_install/hslogger-1.3.1.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/call-stack-0.4.0/_install/call-stack-0.4.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/profunctors-5.6.2/_install/profunctors-5.6.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/transformers-base-0.4.6/_install/transformers-base-0.4.6.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/free-5.1.7/_install/free-5.1.7.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/semigroups-0.19.2/_install/semigroups-0.19.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/void-0.7.3/_install/void-0.7.3.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/adjunctions-4.4/_install/adjunctions-4.4.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/invariant-0.5.5/_install/invariant-0.5.5.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/kan-extensions-5.2.3/_install/kan-extensions-5.2.3.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/parallel-3.2.2.0/_install/parallel-3.2.2.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/reflection-2.1.6/_install/reflection-2.1.6.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/lens-5.0.1/_install/lens-5.0.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/semirings-0.6/_install/semirings-0.6.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/mod-0.1.2.2/_install/mod-0.1.2.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/th-compat-0.1.3/_install/th-compat-0.1.3.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/network-uri-2.6.4.1/_install/network-uri-2.6.4.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/rope-utf16-splay-0.3.2.0/_install/rope-utf16-splay-0.3.2.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/some-1.0.3/_install/some-1.0.3.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/temporary-1.3/_install/temporary-1.3.conf.d --optghc=-package-db --optghc=/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/_install/lsp-types-1.4.0.0.conf.d --optghc=-package-db --optghc=/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/package.conf.inplace --optghc=-package-id --optghc=Diff-0.4.1 --optghc=-package-id --optghc=aeson-2.0.3.0 --optghc=-package-id --optghc=base-4.15.1.0 --optghc=-package-id --optghc=binary-0.8.8.0 --optghc=-package-id --optghc=bytestring-0.10.12.1 --optghc=-package-id --optghc=containers-0.6.4.1 --optghc=-package-id --optghc=data-default-0.7.1.1 --optghc=-package-id --optghc=deepseq-1.4.5.0 --optghc=-package-id --optghc=directory-1.3.6.2 --optghc=-package-id --optghc=dlist-1.0 --optghc=-package-id --optghc=filepath-1.4.2.1 --optghc=-package-id --optghc=hashable-1.3.5.0 --optghc=-package-id --optghc=hslogger-1.3.1.0 --optghc=-package-id --optghc=lens-5.0.1 --optghc=-package-id --optghc=mod-0.1.2.2 --optghc=-package-id --optghc=mtl-2.2.2 --optghc=-package-id --optghc=network-uri-2.6.4.1 --optghc=-package-id --optghc=rope-utf16-splay-0.3.2.0 --optghc=-package-id --optghc=scientific-0.3.7.0 --optghc=-package-id --optghc=some-1.0.3 --optghc=-package-id --optghc=template-haskell-2.17.0.0 --optghc=-package-id --optghc=temporary-1.3 --optghc=-package-id --optghc=text-1.2.5.0 --optghc=-package-id --optghc=unordered-containers-0.2.16.0 --optghc=-XHaskell2010 --optghc=-XStrictData --optghc=-Wall -B/nix/store/z8577sg7xny6fxhndrrrkpvzhn53w9vc-ghc-native-bignum-9.0.2/lib/ghc-9.0.2 src/Language/LSP/Types.hs src/Language/LSP/Types/Capabilities.hs src/Language/LSP/Types/Lens.hs src/Language/LSP/Types/SMethodMap.hs src/Language/LSP/VFS.hs src/Data/IxMap.hs src/Language/LSP/Types/CallHierarchy.hs src/Language/LSP/Types/Cancellation.hs src/Language/LSP/Types/ClientCapabilities.hs src/Language/LSP/Types/CodeAction.hs src/Language/LSP/Types/CodeLens.hs src/Language/LSP/Types/Command.hs src/Language/LSP/Types/Common.hs src/Language/LSP/Types/Completion.hs src/Language/LSP/Types/Configuration.hs src/Language/LSP/Types/Declaration.hs src/Language/LSP/Types/Definition.hs src/Language/LSP/Types/Diagnostic.hs src/Language/LSP/Types/DocumentColor.hs src/Language/LSP/Types/DocumentFilter.hs src/Language/LSP/Types/DocumentHighlight.hs src/Language/LSP/Types/DocumentLink.hs src/Language/LSP/Types/DocumentSymbol.hs src/Language/LSP/Types/FoldingRange.hs src/Language/LSP/Types/Formatting.hs src/Language/LSP/Types/Hover.hs src/Language/LSP/Types/Implementation.hs src/Language/LSP/Types/Initialize.hs src/Language/LSP/Types/Location.hs src/Language/LSP/Types/LspId.hs src/Language/LSP/Types/MarkupContent.hs src/Language/LSP/Types/Method.hs src/Language/LSP/Types/Message.hs src/Language/LSP/Types/Parsing.hs src/Language/LSP/Types/Progress.hs src/Language/LSP/Types/Registration.hs src/Language/LSP/Types/References.hs src/Language/LSP/Types/Rename.hs src/Language/LSP/Types/SelectionRange.hs src/Language/LSP/Types/ServerCapabilities.hs src/Language/LSP/Types/SemanticTokens.hs src/Language/LSP/Types/SignatureHelp.hs src/Language/LSP/Types/StaticRegistrationOptions.hs src/Language/LSP/Types/TextDocument.hs src/Language/LSP/Types/TypeDefinition.hs src/Language/LSP/Types/Uri.hs src/Language/LSP/Types/Utils.hs src/Language/LSP/Types/Window.hs src/Language/LSP/Types/WatchedFiles.hs src/Language/LSP/Types/WorkspaceEdit.hs src/Language/LSP/Types/WorkspaceFolders.hs src/Language/LSP/Types/WorkspaceSymbol.hs >>> /private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc/html/lsp-types/haddock-response42424-1.txt Environment: [("CABAL_VERBOSE","True"),("CC_WRAPPER_CC_PATH","external/local_config_cc/cc_wrapper.sh"),("CC_WRAPPER_CPU","darwin_arm64"),("CC_WRAPPER_PLATFORM","darwin"),("CODESIGN_ALLOCATE","/nix/store/3ibr5yy13sxl2vb5rig8fivj85sqcvf2-cctools-port-949.0.1/bin/codesign_allocate"),("HOME","/var/empty"),("LANG","C.UTF-8"),("LC_CTYPE","UTF-8"),("LD_LIBRARY_PATH",""),("LIBRARY_PATH",""),("PATH","/nix/store/xqbgx1y5xh2k13c6nizlprkp0j8mcw6w-clang-wrapper-12.0.1/bin:/nix/store/p90xw78bb3xsxg5v7k31qj5hpwm2pngp-llvm-12.0.1/bin:/nix/store/5havjxkv59cprx4czgi1lwnvv7y22dzi-posix-toolchain/bin"),("PWD","/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/external/lsp-types"),("PYTHONPATH","/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/runghc.runfiles:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/runghc.runfiles/:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/runghc.runfiles/bazel_tools:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/runghc.runfiles/com_github_digital_asset_daml:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/runghc.runfiles/local_config_cc:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/runghc.runfiles/rules_haskell:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/runghc.runfiles/rules_haskell_ghc_nixpkgs:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/runghc.runfiles/rules_python:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/cabal_wrapper.runfiles:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/cabal_wrapper.runfiles/:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/cabal_wrapper.runfiles/bazel_tools:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/cabal_wrapper.runfiles/com_github_digital_asset_daml:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/cabal_wrapper.runfiles/rules_haskell"),("RULES_HASKELL_DOCDIR_PATH","/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/base-4.15.1.0"),("RULES_HASKELL_EXEC_ROOT","/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml"),("RULES_HASKELL_GHC_PATH","/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/external/rules_haskell_ghc_nixpkgs/bin/ghc"),("RULES_HASKELL_GHC_PKG_PATH","/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/external/rules_haskell_ghc_nixpkgs/bin/ghc-pkg"),("RULES_HASKELL_LIBDIR_PATH","/nix/store/z8577sg7xny6fxhndrrrkpvzhn53w9vc-ghc-native-bignum-9.0.2/lib/ghc-9.0.2"),("RUNFILES_DIR","/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/runghc.runfiles"),("SDKROOT","macosx"),("SHLVL","0"),("TEMP","/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/tmp"),("TMP","/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/tmp"),("TMPDIR","/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/tmp"),("__CF_USER_TEXT_ENCODING","0x1F5:0x0:0x0")] /private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/external/rules_haskell_ghc_nixpkgs/bin/haddock '@/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc/html/lsp-types/haddock-response42424-1.txt' 0% ( 0 / 7) in 'Data.IxMap' Missing documentation for: Module header IxOrd (src/Data/IxMap.hs:17) IxMap (src/Data/IxMap.hs:21) emptyIxMap (src/Data/IxMap.hs:23) insertIxMap (src/Data/IxMap.hs:26) lookupIxMap (src/Data/IxMap.hs:31) pickFromIxMap (src/Data/IxMap.hs:37) `cc' failed in phase `Linker'. (Exit code: 134) /private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/external/rules_haskell_ghc_nixpkgs/bin/haddock returned ExitFailure 1 Target //compiler/damlc:damlc failed to build ERROR: /Users/builder/daml-andreas/compiler/damlc/BUILD.bazel:38:9 Middleman _middlemen/compiler_Sdamlc_Sdamlc-runfiles failed: (Exit 1): cabal_wrapper failed: error executing command (cd /private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml && \ exec env - \ CABAL_VERBOSE=True \ CC_WRAPPER_CC_PATH=external/local_config_cc/cc_wrapper.sh \ CC_WRAPPER_CPU=darwin_arm64 \ CC_WRAPPER_PLATFORM=darwin \ LANG=C.UTF-8 \ PATH=/nix/store/5havjxkv59cprx4czgi1lwnvv7y22dzi-posix-toolchain/bin \ RULES_HASKELL_DOCDIR_PATH=/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/base-4.15.1.0 \ RULES_HASKELL_GHC_PATH=external/rules_haskell_ghc_nixpkgs/bin/ghc \ RULES_HASKELL_GHC_PKG_PATH=external/rules_haskell_ghc_nixpkgs/bin/ghc-pkg \ RULES_HASKELL_LIBDIR_PATH=/nix/store/z8577sg7xny6fxhndrrrkpvzhn53w9vc-ghc-native-bignum-9.0.2/lib/ghc-9.0.2 \ SDKROOT=macosx \ bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/cabal_wrapper bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types_cabal_wrapper_args.json) Execution platform: @io_tweag_rules_nixpkgs//nixpkgs/platforms:host Use --sandbox_debug to see verbose messages from the sandbox INFO: Elapsed time: 344.702s, Critical Path: 329.09s INFO: 49 processes: 14 internal, 35 processwrapper-sandbox. FAILED: Build did NOT complete successfully FAILED: Build did NOT complete successfully ``` * Disable create-daml-app tests on MacOS M1 These fail to build because puppeteer fails to install Chromium on M1. See https://github.com/digital-asset/daml/pull/13250. * Resign binaries after patching in package-app Otherwise they fail to execute on MacOS Monterey on M1. They symptom is that executing or otherwise loading the binary (e.g. into lldb) fails with exit code -9 without further indications. * Use GHC with LLVM on MacOS M1 The native backend only supports M1 starting from GHC 9.2. However, we are still on GHC 9.0. We wrap GHC to ensure that the LLVM toolchain and the codesign tool are present in the environment and point to the correct versions provided by nixpkgs. * Update the CC toolchain for MacOS M1 compatibility Use nixpkgs `nix-support/cc-cflags` file to provide default flags instead of using `makeWrapper`. On M1 there was an issue where passing `-l` flags or `-isystem` to `cc -v` would cause the following errors: ``` lang version 11.1.0 Target: aarch64-apple-darwin Thread model: posix InstalledDir: /nix/store/v6iidz79b425hli98g45xq9iblapn1zy-clang-11.1.0/bin "/nix/store/b82mvqzvdx5mh1n9n77v8h5vk9fgqrxj-clang-wrapper-11.1.0/bin/ld" -demangle -lto_library /nix/store/v6iidz79b425hli98g45xq9iblapn1zy-clang-11.1.0/lib/libLTO.dylib -dynamic -arch arm64 -platform_version macos 11.0.0 0.0.0 -o a.out -L/nix/store/hc8a94w57ppwmn2gscm56pvlwi3zhyh1-libSystem-11.0.0/lib -L/nix/store/6f5ygwif1r523jj2qfwfiwix0fga4rgp-clang-11.1.0-lib/lib -L/nix/store/7pkxnbhpi0c10w18rirj8zxz3wv571nj-libcxx-11.1.0/lib -no_uuid -arch arm64 -lSystem /nix/store/b82mvqzvdx5mh1n9n77v8h5vk9fgqrxj-clang-wrapper-11.1.0/resource-root/lib/darwin/libclang_rt.osx.a Undefined symbols for architecture arm64: "_main", referenced from: implicit entry/start for main executable ld: symbol(s) not found for architecture arm64 ``` This also includes additional standard library search paths: `-isystem ${llvmPackages_12.libcxx.dev}/include/c++/v1` alone is not enough because some headers in it are [wrapper headers](https://gcc.gnu.org/onlinedocs/cpp/Wrapper-Headers.html) that use `include_next` directives. For these to resolve we need to add the compiler's builtin headers to the search path as well. This also sets `-Wno-elaborated-enum-base` to avoid build failures of absl on MacOS Monterey M1. ``` In file included from external/com_google_absl/absl/time/internal/cctz/src/time_zone_lookup.cc:26: In file included from /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFTimeZone.h:13: /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:474:9: error: non-defining declaration of enumeration with a fixed underlying type is only permitted as a standalone declaration; missing list of enumerators? [-Welaborated-enum-base] typedef CF_ENUM(CFIndex, CFComparisonResult) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFAvailability.h:169:55: note: expanded from macro 'CF_ENUM' \#define CF_ENUM(...) __CF_ENUM_GET_MACRO(__VA_ARGS__, __CF_NAMED_ENUM, __CF_ANON_ENUM, )(__VA_ARGS__) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFAvailability.h:134:48: note: expanded from macro '__CF_ENUM_GET_MACRO' \#define __CF_ENUM_GET_MACRO(_1, _2, NAME, ...) NAME ^ /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFAvailability.h:142:75: note: expanded from macro '__CF_NAMED_ENUM' \#define __CF_NAMED_ENUM(_type, _name) enum __CF_ENUM_ATTRIBUTES _name : _type _name; enum _name : _type ^~~~~~~ In file included from external/com_google_absl/absl/time/internal/cctz/src/time_zone_lookup.cc:26: In file included from /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFTimeZone.h:18: In file included from /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFString.h:17: /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFCharacterSet.h:62:9: error: non-defining declaration of enumeration with a fixed underlying type is only permitted as a standalone decla ration; missing list of enumerators? [-Welaborated-enum-base] typedef CF_ENUM(CFIndex, CFCharacterSetPredefinedSet) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFAvailability.h:169:55: note: expanded from macro 'CF_ENUM' \#define CF_ENUM(...) __CF_ENUM_GET_MACRO(__VA_ARGS__, __CF_NAMED_ENUM, __CF_ANON_ENUM, )(__VA_ARGS__) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFAvailability.h:134:48: note: expanded from macro '__CF_ENUM_GET_MACRO' \#define __CF_ENUM_GET_MACRO(_1, _2, NAME, ...) NAME ^ /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFAvailability.h:142:75: note: expanded from macro '__CF_NAMED_ENUM' \#define __CF_NAMED_ENUM(_type, _name) enum __CF_ENUM_ATTRIBUTES _name : _type _name; enum _name : _type ^~~~~~~ ... ``` * Link libc++ in fat_cc_library on MacOS * Build on native ARM M1 instead of Rosetta changelog_begin changelog_end * Drop unused ghcLLVMWrapper * Select ghcWithLLVM within Nix If we generally expose ghcWithLLVM from Nix and then select on the Bazel, then we'd need to filter that derivation out from the Nix and dev-tool build step on CI. * fmt * Update Node version in compatibility * Expose node in PATH in create-daml-app test It seems that the node update made the `--scripts-prepend-node-path` flag less effective than it was before. Without explicitly adding `node` to `PATH` the install step fails with the following error: ``` Failure: Command "CreateProcess {cmdspec = RawCommand "/home/aj/.cache/bazel/_bazel_aj/c437a451a7a277d35b539da616255ac8/sandbox/linux-sandbox/1435/execroot/compatibility/bazel-out/k8-opt/bin/create-daml-app-0.0.0-platform-2.0.0.runfiles/compatibility/external/node_nix/node_nix/lib/node_modules/npm/bin/npm-cli.js" ["install","--scripts-prepend-node-path"], cwd = Nothing, env = Nothing, std_in = Inherit, std_out = Inherit, std_err = Inherit, close_fds = False, create_group = False, delegate_ctlc = False, detach_console = False, create_new_console = False, new_session = False, child_group = Nothing, child_user = Nothing, use_process_jobs = False}" exited with ExitFailure 127 npm ERR! code 127 npm ERR! path /tmp/extra-dir-7515936101075/create-daml-app/ui/node_modules/puppeteer npm ERR! command failed npm ERR! command sh -c node install.js npm ERR! sh: line 1: node: command not found npm ERR! A complete log of this run can be found in: npm ERR! /tmp/extra-dir-7515936101074/_logs/2022-03-24T10_18_15_227Z-debug.log ``` * Skip create-daml-app compat tests pre 2.0.0 changelog_begin changelog_end In these tests the install step fails with the following error due to mismatch babel-jest dependency versions: ``` ==================== Test output for //:create-daml-app-1.8.1-platform-0.0.0: Create Daml App tests Getting Started Guide: WARNING: Specifying the template via daml new create-daml-app create-daml-app is deprecated. The recommended way of specifying the template is daml new create-daml-app --template create-daml-app Created a new project in "create-daml-app" based on the template "create-daml-app". > create-daml-app@0.1.0 test > react-scripts test --testURL='http://localhost:7575' There might be a problem with the project dependency tree. It is likely not a bug in Create React App, but something you need to fix locally. The react-scripts package provided by Create React App requires a dependency: "babel-jest": "^24.9.0" Don't try to install it manually: your package manager does it automatically. However, a different version of babel-jest was detected higher up in the tree: /tmp/extra-dir-3298351016846/create-daml-app/ui/node_modules/babel-jest (version: 25.5.1) Manually installing incompatible versions is known to cause hard-to-debug issues. If you would prefer to ignore this check, add SKIP_PREFLIGHT_CHECK=true to an .env file in your project. That will permanently disable this message but you might encounter other issues. To fix the dependency tree, try following the steps below in the exact order: 1. Delete package-lock.json (not package.json!) and/or yarn.lock in your project folder. 2. Delete node_modules in your project folder. 3. Remove "babel-jest" from dependencies and/or devDependencies in the package.json file in your project folder. 4. Run npm install or yarn, depending on the package manager you use. In most cases, this should be enough to fix the problem. If this has not helped, there are a few other things you can try: 5. If you used npm, install yarn (http://yarnpkg.com/) and repeat the above steps with it instead. This may help because npm has known issues with package hoisting which may get resolved in future versions. 6. Check if /tmp/extra-dir-3298351016846/create-daml-app/ui/node_modules/babel-jest is outside your project directory. For example, you might have accidentally installed something in your home folder. 7. Try running npm ls babel-jest in your project folder. This will tell you which other package (apart from the expected react-scripts) installed babel-jest. If nothing else helps, add SKIP_PREFLIGHT_CHECK=true to an .env file in your project. That would permanently disable this preflight check in case you want to proceed anyway. P.S. We know this message is long but please read the steps above :-) We hope you find them helpful! FAIL (125.62s) Create app from template (0.05s) Patch the application code with messaging feature Extract codegen output (0.06s) Set up libraries and workspaces (0.01s) Install Jest, Puppeteer and other dependencies (123.95s) Run Puppeteer end-to-end tests (1.54s) callProcess: /home/aj/.cache/bazel/_bazel_aj/c437a451a7a277d35b539da616255ac8/sandbox/linux-sandbox/2351/execroot/compatibility/bazel-out/k8-opt/bin/create-daml-app-1.8.1-platform-0.0.0.runfiles/compatibility/external/node_nix/node_nix/lib/node_modules/npm/bin/npm-cli.js "run" "test" "--ci" "--all" "--scripts-prepend-node-path" (exit 1): failed 1 out of 1 tests failed (125.62s) ================================================================================ ``` Applying the suggested `SKIP_PREFLIGHT_CHECK=true` fix leads to the following failure instead: ``` ==================== Test output for //:create-daml-app-1.9.0-platform-0.0.0: Create Daml App tests Getting Started Guide: WARNING: Specifying the template via daml new create-daml-app create-daml-app is deprecated. The recommended way of specifying the template is daml new create-daml-app --template create-daml-app Created a new project in "create-daml-app" based on the template "create-daml-app". > create-daml-app@0.1.0 test > react-scripts test --testURL='http://localhost:7575' PASS src/components/App.test.tsx ● Console console.debug daml-types/index.js:98 Registered template bbfcd72618817ef8c99eb663e1f80375835bd51efebdc69b55884ad7afb3a0ef:User:Message. console.debug daml-types/index.js:98 Registered template bbfcd72618817ef8c99eb663e1f80375835bd51efebdc69b55884ad7afb3a0ef:User:User. 12:42:55.745 [program-resource-pool-4] INFO c.d.l.sandbox.AkkaSubmissionsBridge - Instantiated Akka submissions bridge., context: {participantId: "sandbox"} 12:42:57.897 [program-resource-pool-3] INFO c.d.ledger.sandbox.SandboxOnXRunner - Initialized sandbox-on-x with conflict checking ledger bridge, version 0.0.0, run-mode = combined participant, index DB backend = h2database, participant-id = sandbox, ledger-id = create-daml-app-sandbox, port = 0, time mode = wall-clock time, allowed language versions = [min = LanguageVersion(V1,LanguageMinorVersion(6)), max = LanguageVersion(V1,LanguageMinorVersion(14))], authentication = all unauthenticated allowed, contract ids seeding = strong 24-03-2022 12:43:02.413 [main] INFO com.daml.http.Main - Config(ledgerHost=localhost, ledgerPort=34937, address=127.0.0.1, httpPort=7575, portFile=Some(json-api.port), packageReloadInterval=5 seconds, packageMaxInboundMessageSize=None, maxInboundMessageSize=4194304, tlsConfig=TlsConfiguration(false,None,None,None,None,REQUIRE,false,None), jdbcConfig=None, staticContentConfig=None, allowNonHttps=true, wsConfig=None, nonRepudiationCertificateFile=None, nonRepudiationPrivateKeyFile=None, nonRepudiationPrivateKeyAlgorithm=None, surrogateTpIdCacheMaxEntries=None), context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0"} 24-03-2022 12:43:02.745 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO akka.event.slf4j.Slf4jLogger - Slf4jLogger started 24-03-2022 12:43:03.041 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO com.daml.http.HttpService - HTTP Server pre-startup, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0"} 24-03-2022 12:43:03.251 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO com.daml.http.LedgerClient - Attempting to connect to the ledger localhost:34937 (600 attempts), context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0"} 24-03-2022 12:43:03.594 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO com.daml.http.LedgerClient - Attempt 1/600 succeeded!, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0"} 24-03-2022 12:43:03.596 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO com.daml.http.LedgerClient - Attempting to connect to the ledger localhost:34937 (600 attempts), context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0"} 24-03-2022 12:43:03.600 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO com.daml.http.LedgerClient - Attempt 1/600 succeeded!, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0"} 24-03-2022 12:43:03.601 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO com.daml.http.HttpService - contractDao: None, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0"} 24-03-2022 12:43:04.132 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO com.daml.http.Main - Started server: (ServerBinding(/127.0.0.1:7575),None), context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0"} 24-03-2022 12:43:05.280 [http-json-ledger-api-akka.actor.default-dispatcher-13] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "2ab72d48-cdef-4e00-ac17-0afda5084008"} 24-03-2022 12:43:05.791 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "2ab72d48-cdef-4e00-ac17-0afda5084008"} > create-daml-app@0.1.0 start > react-scripts start [HPM] Proxy created: function (pathname, req) { // Proxy requests to the http json api when in development const proxied = pathname.match("^/v1") && process.env.NODE_ENV === "development"; if (proxied) { console.log( `Request with path ${pathname} proxied from host ${req.headers.host} to host ${httpJsonDevUrl}` ); } return proxied; } -> http://localhost:undefined ℹ 「wds」: Project is running at http://192.168.1.114/ ℹ 「wds」: webpack output is served from ℹ 「wds」: Content not from webpack is served from /tmp/extra-dir-99443589994656/create-daml-app/ui/public ℹ 「wds」: 404s will fallback to / Starting the development server... 24-03-2022 12:43:07.495 [http-json-ledger-api-akka.actor.default-dispatcher-9] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "ce0131fd-6a4c-4eb1-8c1b-6d68418fde82"} 24-03-2022 12:43:07.606 [http-json-ledger-api-akka.actor.default-dispatcher-17] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "ce0131fd-6a4c-4eb1-8c1b-6d68418fde82"} 24-03-2022 12:43:07.623 [http-json-ledger-api-akka.actor.default-dispatcher-9] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "a4d1c7b0-406c-4297-a690-66ba2b692f19"} 24-03-2022 12:43:07.725 [http-json-ledger-api-akka.actor.default-dispatcher-16] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "a4d1c7b0-406c-4297-a690-66ba2b692f19"} 24-03-2022 12:43:07.741 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "bf65790a-38bc-4686-aa15-607c3c24661a"} 24-03-2022 12:43:07.846 [http-json-ledger-api-akka.actor.default-dispatcher-9] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "bf65790a-38bc-4686-aa15-607c3c24661a"} 24-03-2022 12:43:07.865 [http-json-ledger-api-akka.actor.default-dispatcher-13] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "3ab06283-270c-4994-852c-92c8c3b34ecc"} 24-03-2022 12:43:07.964 [http-json-ledger-api-akka.actor.default-dispatcher-14] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "3ab06283-270c-4994-852c-92c8c3b34ecc"} 24-03-2022 12:43:07.980 [http-json-ledger-api-akka.actor.default-dispatcher-8] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "b332b66a-6231-4492-817d-a2c58c85d04c"} 24-03-2022 12:43:08.084 [http-json-ledger-api-akka.actor.default-dispatcher-18] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "b332b66a-6231-4492-817d-a2c58c85d04c"} 24-03-2022 12:43:08.098 [http-json-ledger-api-akka.actor.default-dispatcher-17] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "8c77ce53-52b5-4e0c-993a-3f810b54bfec"} 24-03-2022 12:43:08.204 [http-json-ledger-api-akka.actor.default-dispatcher-9] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "8c77ce53-52b5-4e0c-993a-3f810b54bfec"} 24-03-2022 12:43:08.220 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "8813ad99-79c7-42c4-9719-5bdcfeb5077e"} 24-03-2022 12:43:08.326 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "8813ad99-79c7-42c4-9719-5bdcfeb5077e"} 24-03-2022 12:43:08.340 [http-json-ledger-api-akka.actor.default-dispatcher-18] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "deeca40b-0f05-47c9-927d-f71b0fe08ccb"} 24-03-2022 12:43:08.444 [http-json-ledger-api-akka.actor.default-dispatcher-18] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "deeca40b-0f05-47c9-927d-f71b0fe08ccb"} 24-03-2022 12:43:08.462 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "9be53420-eb4d-4ee3-9915-4a4381c51bea"} 24-03-2022 12:43:08.563 [http-json-ledger-api-akka.actor.default-dispatcher-18] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "9be53420-eb4d-4ee3-9915-4a4381c51bea"} 24-03-2022 12:43:08.576 [http-json-ledger-api-akka.actor.default-dispatcher-18] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "8d64b076-ff2b-4f5b-8653-95e5e949cb34"} 24-03-2022 12:43:08.685 [http-json-ledger-api-akka.actor.default-dispatcher-14] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "8d64b076-ff2b-4f5b-8653-95e5e949cb34"} 24-03-2022 12:43:08.697 [http-json-ledger-api-akka.actor.default-dispatcher-14] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "87246c50-00b7-453e-9771-83f176a3cbfc"} 24-03-2022 12:43:08.802 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "87246c50-00b7-453e-9771-83f176a3cbfc"} 24-03-2022 12:43:08.818 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "65bb8c95-a253-4ac5-a297-1abeff6ce44c"} 24-03-2022 12:43:08.920 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "65bb8c95-a253-4ac5-a297-1abeff6ce44c"} 24-03-2022 12:43:08.930 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/query from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "d45c0c95-1576-480c-b048-f59919a1d139"} 24-03-2022 12:43:10.016 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.PackageService - new package IDs loaded: bfcd37bd6b84768e86e432f5f6c33e25d9e7724a9d42e33875ff74f6348e733f, 518032f41fd0175461b35ae0c9691e08b4aea55e62915f8360af2cc7a1f2ba6c, cc348d369011362a5190fe96dd1f0dfbc697fdfd10e382b9e9666f0da05961b7, f78511c39cc293d5ed72acf5a4a81411af75a435df4106c5e37823af6589040b, 6839a6d3d430c569b2425e9391717b44ca324b88ba621d597778811b2d05031d, 99a2705ed38c1c26cbb8fe7acf36bbf626668e167a33335de932599219e0a235, 76bf0fd12bd945762a01f8fc5bbcdfa4d0ff20f8762af490f8f41d6237c6524f, e22bce619ae24ca3b8e6519281cb5a33b64b3190cc763248b4c3f9ad5087a92c, d58cf9939847921b2aab78eaa7b427dc4c649d25e6bee3c749ace4c3f52f5c97, 6c2c0667393c5f92f1885163068cd31800d2264eb088eb6fc740e11241b2bf06, c1f1f00558799eec139fb4f4c76f95fb52fa1837a5dd29600baa1c8ed1bdccfd, 733e38d36a2759688a4b2c4cec69d48e7b55ecc8dedc8067b815926c917a182a, 057eed1fd48c238491b8ea06b9b5bf85a5d4c9275dd3f6183e0e6b01730cc2ba, 52af8c65ac2c4b3d61637558935d2b0a92369ec4da39978a29f90a5f738f3e14, d14e08374fc7197d6a0de468c968ae8ba3aadbf9315476fd39071831f5923662, e491352788e56ca4603acc411ffe1a49fefd76ed8b163af86cf5ee5f4c38645b, 40f452260bef3f29dede136108fc08a88d5a5250310281067087da6f0baddff7, 8a7806365bbd98d88b4c13832ebfa305f6abaeaf32cfa2b7dd25c4fa489b79fb, bbfcd72618817ef8c99eb663e1f80375835bd51efebdc69b55884ad7afb3a0ef, context: {ledger_id: "create-daml-app-sandbox", cmd: "GetActiveContractsRequest(OneAnd(TemplateId(Some(bbfcd72618817ef8c99eb663e1f80375835bd51efebdc69b55884ad7afb3a0ef),User,User),Set()),Map(),None)", request_id: "d45c0c95-1576-480c-b048-f59919a1d139", instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", application_id: "create-daml-app", read_as: "List()", act_as: "List(party-c276900f)"} 24-03-2022 12:43:10.192 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "d45c0c95-1576-480c-b048-f59919a1d139"} 24-03-2022 12:43:10.420 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/create from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "90767a4d-bf5f-4a9c-a633-9c9bf4374ab1"} 24-03-2022 12:43:10.490 [http-json-ledger-api-akka.actor.default-dispatcher-11] INFO com.daml.http.CommandService - Submitting create command, context: {command_id: "9371a5a2-1ab5-4deb-8cec-ad21c0e620dc", ledger_id: "create-daml-app-sandbox", request_id: "90767a4d-bf5f-4a9c-a633-9c9bf4374ab1", instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", application_id: "create-daml-app", template_id: "TemplateId(bbfcd72618817ef8c99eb663e1f80375835bd51efebdc69b55884ad7afb3a0ef,User,User)", read_as: "List()", act_as: "List(party-c276900f)"} 24-03-2022 12:43:12.870 [http-json-ledger-api-akka.actor.default-dispatcher-17] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "90767a4d-bf5f-4a9c-a633-9c9bf4374ab1"} 24-03-2022 12:43:12.885 [http-json-ledger-api-akka.actor.default-dispatcher-17] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/fetch from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "fd827c73-d3b8-4e42-877a-ce9af707da2a"} 24-03-2022 12:43:12.992 [http-json-ledger-api-akka.actor.default-dispatcher-11] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "fd827c73-d3b8-4e42-877a-ce9af707da2a"} 24-03-2022 12:43:13.004 [http-json-ledger-api-akka.actor.default-dispatcher-11] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/query from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "94adec23-cb1a-464b-9fad-8bf7da06b99f"} 24-03-2022 12:43:13.017 [http-json-ledger-api-akka.actor.default-dispatcher-13] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "94adec23-cb1a-464b-9fad-8bf7da06b99f"} 24-03-2022 12:43:13.074 [http-json-ledger-api-akka.actor.default-dispatcher-7] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "42f7aaf6-f3f7-4138-a4c6-1be224c100bc"} 24-03-2022 12:43:13.121 [http-json-ledger-api-akka.actor.default-dispatcher-17] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "42f7aaf6-f3f7-4138-a4c6-1be224c100bc"} Compiled successfully! You can now view create-daml-app in the browser. Local: http://localhost:3000 On Your Network: http://192.168.1.114:3000 Note that the development build is not optimized. To create a production build, use npm run build. Request with path /v1/fetch proxied from host localhost:3000 to host http://localhost:undefined 24-03-2022 12:43:53.540 [http-json-ledger-api-akka.actor.default-dispatcher-11] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "f1da2b78-e020-40fc-b4cc-e635fc78f8fb"} 24-03-2022 12:43:53.681 [http-json-ledger-api-akka.actor.default-dispatcher-7] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "f1da2b78-e020-40fc-b4cc-e635fc78f8fb"} 24-03-2022 12:43:53.690 [http-json-ledger-api-akka.actor.default-dispatcher-7] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "42e89b95-f5b7-4c39-bcd8-4264e86a924d"} 24-03-2022 12:43:53.802 [http-json-ledger-api-akka.actor.default-dispatcher-13] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "42e89b95-f5b7-4c39-bcd8-4264e86a924d"} 24-03-2022 12:43:53.814 [http-json-ledger-api-akka.actor.default-dispatcher-13] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "fd54814b-fc1f-479b-b65a-1b3bc59392b8"} 24-03-2022 12:43:53.923 [http-json-ledger-api-akka.actor.default-dispatcher-6] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "fd54814b-fc1f-479b-b65a-1b3bc59392b8"} Request with path /v1/fetch proxied from host localhost:3000 to host http://localhost:undefined 24-03-2022 12:44:24.809 [http-json-ledger-api-akka.actor.default-dispatcher-17] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "cde08b6a-68c1-4f7d-9d20-f5bde5c478aa"} 24-03-2022 12:44:24.880 [http-json-ledger-api-akka.actor.default-dispatcher-9] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "cde08b6a-68c1-4f7d-9d20-f5bde5c478aa"} Request with path /v1/fetch proxied from host localhost:3000 to host http://localhost:undefined 24-03-2022 12:44:55.691 [http-json-ledger-api-akka.actor.default-dispatcher-8] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "8dfa15a7-044d-41f7-9597-37662c2ff5ff"} 24-03-2022 12:44:55.818 [http-json-ledger-api-akka.actor.default-dispatcher-6] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "8dfa15a7-044d-41f7-9597-37662c2ff5ff"} 24-03-2022 12:44:55.828 [http-json-ledger-api-akka.actor.default-dispatcher-6] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "fe3af4d3-7e89-41a5-bfb3-ec639967a0f8"} 24-03-2022 12:44:55.938 [http-json-ledger-api-akka.actor.default-dispatcher-8] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "fe3af4d3-7e89-41a5-bfb3-ec639967a0f8"} Request with path /v1/fetch proxied from host localhost:3000 to host http://localhost:undefined FAIL src/index.test.ts (154.562s) ● Console console.debug daml-types/index.js:98 Registered template bbfcd72618817ef8c99eb663e1f80375835bd51efebdc69b55884ad7afb3a0ef:User:Message. console.debug daml-types/index.js:98 Registered template bbfcd72618817ef8c99eb663e1f80375835bd51efebdc69b55884ad7afb3a0ef:User:User. ● log in as a new user, log out and log back in TimeoutError: waiting for selector ".test-select-main-menu" failed: timeout 30000ms exceeded 277 | await usernameInput.type(partyName); 278 | await page.click(".test-select-login-button"); > 279 | await page.waitForSelector(".test-select-main-menu"); | ^ 280 | }; 281 | // LOGIN_FUNCTION_END 282 | at new WaitTask (node_modules/puppeteer/lib/DOMWorld.js:407:34) at DOMWorld._waitForSelectorOrXPath (node_modules/puppeteer/lib/DOMWorld.js:332:26) at DOMWorld.waitForSelector (node_modules/puppeteer/lib/DOMWorld.js:315:21) at Frame.waitForSelector (node_modules/puppeteer/lib/FrameManager.js:384:51) at Frame.<anonymous> (node_modules/puppeteer/lib/helper.js:117:27) at Page.waitForSelector (node_modules/puppeteer/lib/Page.js:867:33) at login (src/index.test.ts:279:14) at Object.<anonymous> (src/index.test.ts:313:3) ● log in as three different users and start following each other TimeoutError: waiting for selector ".test-select-main-menu" failed: timeout 30000ms exceeded 277 | await usernameInput.type(partyName); 278 | await page.click(".test-select-login-button"); > 279 | await page.waitForSelector(".test-select-main-menu"); | ^ 280 | }; 281 | // LOGIN_FUNCTION_END 282 | at new WaitTask (node_modules/puppeteer/lib/DOMWorld.js:407:34) at DOMWorld._waitForSelectorOrXPath (node_modules/puppeteer/lib/DOMWorld.js:332:26) at DOMWorld.waitForSelector (node_modules/puppeteer/lib/DOMWorld.js:315:21) at Frame.waitForSelector (node_modules/puppeteer/lib/FrameManager.js:384:51) at Frame.<anonymous> (node_modules/puppeteer/lib/helper.js:117:27) at Page.waitForSelector (node_modules/puppeteer/lib/Page.js:867:33) at login (src/index.test.ts:279:14) at Object.<anonymous> (src/index.test.ts:349:3) ● error when following self TimeoutError: waiting for selector ".test-select-main-menu" failed: timeout 30000ms exceeded 277 | await usernameInput.type(partyName); 278 | await page.click(".test-select-login-button"); > 279 | await page.waitForSelector(".test-select-main-menu"); | ^ 280 | }; 281 | // LOGIN_FUNCTION_END 282 | at new WaitTask (node_modules/puppeteer/lib/DOMWorld.js:407:34) at DOMWorld._waitForSelectorOrXPath (node_modules/puppeteer/lib/DOMWorld.js:332:26) at DOMWorld.waitForSelector (node_modules/puppeteer/lib/DOMWorld.js:315:21) at Frame.waitForSelector (node_modules/puppeteer/lib/FrameManager.js:384:51) at Frame.<anonymous> (node_modules/puppeteer/lib/helper.js:117:27) at Page.waitForSelector (node_modules/puppeteer/lib/Page.js:867:33) at login (src/index.test.ts:279:14) at Object.<anonymous> (src/index.test.ts:455:3) ● error when adding a user that you are already following TimeoutError: waiting for selector ".test-select-main-menu" failed: timeout 30000ms exceeded 277 | await usernameInput.type(partyName); 278 | await page.click(".test-select-login-button"); > 279 | await page.waitForSelector(".test-select-main-menu"); | ^ 280 | }; 281 | // LOGIN_FUNCTION_END 282 | at new WaitTask (node_modules/puppeteer/lib/DOMWorld.js:407:34) at DOMWorld._waitForSelectorOrXPath (node_modules/puppeteer/lib/DOMWorld.js:332:26) at DOMWorld.waitForSelector (node_modules/puppeteer/lib/DOMWorld.js:315:21) at Frame.waitForSelector (node_modules/puppeteer/lib/FrameManager.js:384:51) at Frame.<anonymous> (node_modules/puppeteer/lib/helper.js:117:27) at Page.waitForSelector (node_modules/puppeteer/lib/Page.js:867:33) at login (src/index.test.ts:279:14) at Object.<anonymous> (src/index.test.ts:471:3) Test Suites: 1 failed, 1 passed, 2 total Tests: 4 failed, 3 passed, 7 total Snapshots: 0 total Time: 155.201s Ran all test suites. 12:45:26.673 [program-resource-pool-6] INFO c.d.g.a.server.akka.ServerAdapter - SERVER_IS_SHUTTING_DOWN(1,0): Server is shutting down, context: {err-context: "{location=ServerAdapter.scala:59}"} 12:45:26.675 [program-resource-pool-6] INFO c.d.g.a.server.akka.ServerAdapter - SERVER_IS_SHUTTING_DOWN(1,0): Server is shutting down, context: {err-context: "{location=ServerAdapter.scala:59}"} 12:45:26.676 [program-resource-pool-6] INFO c.d.g.a.server.akka.ServerAdapter - SERVER_IS_SHUTTING_DOWN(1,0): Server is shutting down, context: {err-context: "{location=ServerAdapter.scala:59}"} 12:45:26.677 [program-resource-pool-6] INFO c.d.g.a.server.akka.ServerAdapter - SERVER_IS_SHUTTING_DOWN(1,0): Server is shutting down, context: {err-context: "{location=ServerAdapter.scala:59}"} [WARN] [03/24/2022 12:45:26.723] [program-resource-pool-6] [CoordinatedShutdown(akka://sandbox-on-x)] Could not addJvmShutdownHook, due to: Shutdown in progress [INFO] [03/24/2022 12:45:26.724] [program-resource-pool-6] [CoordinatedShutdown(akka://sandbox-on-x)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 24-03-2022 12:45:26.630 [shutdownHook1] INFO com.daml.http.HttpService - Stopping server..., context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0"} 12:45:26.648 [program-resource-pool-6] INFO c.d.g.a.server.akka.ServerAdapter - SERVER_IS_SHUTTING_DOWN(1,0): Server is shutting down, context: {err-context: "{location=ServerAdapter.scala:59}"} FAIL (278.22s) Create app from template (0.04s) Patch the application code with messaging feature Extract codegen output (0.04s) Set up libraries and workspaces Install Jest, Puppeteer and other dependencies (120.36s) Run Puppeteer end-to-end tests (157.77s) callProcess: /home/aj/.cache/bazel/_bazel_aj/c437a451a7a277d35b539da616255ac8/sandbox/linux-sandbox/2357/execroot/compatibility/bazel-out/k8-opt/bin/create-daml-app-1.9.0-platform-0.0.0.runfiles/compatibility/external/node_nix/node_nix/lib/node_modules/npm/bin/npm-cli.js "run" "test" "--ci" "--all" "--scripts-prepend-node-path" (exit 1): failed 1 out of 1 tests failed (278.22s) ================================================================================ ``` * Revert "Skip create-daml-app compat tests pre 2.0.0" This reverts commit 762e61941f164e5deb10fc752f391b69003377cf. * Revert "Expose node in PATH in create-daml-app test" This reverts commit 8541b39d0f1b36c63366b90f97a69f7d950c92c5. * Revert "Update Node version in compatibility" This reverts commit 389639402d19c3ffa714e22bc61e042f82070b74. * Keep using NodeJS 14 for the compatibility tests NodeJS 16 is needed for M1 compatibility, but it breaks the compatibility tests. So, for now, we stick to the older version for the compatibility tests. Co-authored-by: Andreas Herrmann <andreas.herrmann@tweag.io>
2022-04-07 18:50:53 +03:00
load("@io_tweag_rules_nixpkgs//nixpkgs:toolchains/go.bzl", "nixpkgs_go_configure")
2019-04-04 11:33:38 +03:00
Darwin M1 Support (#13401) * Update rules_nixpkgs and rules_sh rules_sh was an implicit dependency before. We are now depending on it explicitly to be able to control the version. * Patch rules_nixpkgs to detect ARM M1 This should be upstreamed. * Patch rules_haskell for ARM M1 compatibility * Detect MacOS M1 OS and architecture. * Consistently use the CC toolchains' linker. This is important when we switch to GHC with LLVM. * Detect Darwin M1 in os_info.bzl * Use the new rules_nixpkgs host platform The old flags hard-coded the CPU architecture. The new platform automatically inherits from Bazel's builtin host platform. * Import the Go toolchain from rules_nixpkgs * Update nodejs to version 16 * Disable Haddock on lsp-types We're also disabling it on the other haskell_cabal_library instances, and it is causing build errors on M1. ``` Running Haddock on library for lsp-types-1.4.0.0.. creating /private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc/html/lsp-types creating /private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc/html creating /private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc creating /private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc/html creating /private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc/html/lsp-types /private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc/html/lsp-types/haddock-response42424-1.txt contents: <<< --prologue=/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc/html/lsp-types/haddock-prologue42424-0.txt --dump-interface=/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc/html/lsp-types/lsp-types.haddock --package-name=lsp-types --package-version=1.4.0.0 --since-qual=external --hide=Language.LSP.Types.CallHierarchy --hide=Language.LSP.Types.Cancellation --hide=Language.LSP.Types.ClientCapabilities --hide=Language.LSP.Types.CodeAction --hide=Language.LSP.Types.CodeLens --hide=Language.LSP.Types.Command --hide=Language.LSP.Types.Common --hide=Language.LSP.Types.Completion --hide=Language.LSP.Types.Configuration --hide=Language.LSP.Types.Declaration --hide=Language.LSP.Types.Definition --hide=Language.LSP.Types.Diagnostic --hide=Language.LSP.Types.DocumentColor --hide=Language.LSP.Types.DocumentFilter --hide=Language.LSP.Types.DocumentHighlight --hide=Language.LSP.Types.DocumentLink --hide=Language.LSP.Types.DocumentSymbol --hide=Language.LSP.Types.FoldingRange --hide=Language.LSP.Types.Formatting --hide=Language.LSP.Types.Hover --hide=Language.LSP.Types.Implementation --hide=Language.LSP.Types.Initialize --hide=Language.LSP.Types.Location --hide=Language.LSP.Types.LspId --hide=Language.LSP.Types.MarkupContent --hide=Language.LSP.Types.Method --hide=Language.LSP.Types.Message --hide=Language.LSP.Types.Parsing --hide=Language.LSP.Types.Progress --hide=Language.LSP.Types.Registration --hide=Language.LSP.Types.References --hide=Language.LSP.Types.Rename --hide=Language.LSP.Types.SelectionRange --hide=Language.LSP.Types.ServerCapabilities --hide=Language.LSP.Types.SemanticTokens --hide=Language.LSP.Types.SignatureHelp --hide=Language.LSP.Types.StaticRegistrationOptions --hide=Language.LSP.Types.TextDocument --hide=Language.LSP.Types.TypeDefinition --hide=Language.LSP.Types.Uri --hide=Language.LSP.Types.Utils --hide=Language.LSP.Types.Window --hide=Language.LSP.Types.WatchedFiles --hide=Language.LSP.Types.WorkspaceEdit --hide=Language.LSP.Types.WorkspaceFolders --hide=Language.LSP.Types.WorkspaceSymbol --html --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/array-0.5.4.0,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/array-0.5.4.0/array.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/base-4.15.1.0,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/base-4.15.1.0/base.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/binary-0.8.8.0,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/binary-0.8.8.0/binary.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/bytestring-0.10.12.1,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/bytestring-0.10.12.1/bytestring.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/containers-0.6.4.1,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/containers-0.6.4.1/containers.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/deepseq-1.4.5.0,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/deepseq-1.4.5.0/deepseq.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/directory-1.3.6.2,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/directory-1.3.6.2/directory.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/exceptions-0.10.4,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/exceptions-0.10.4/exceptions.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/filepath-1.4.2.1,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/filepath-1.4.2.1/filepath.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/ghc-bignum-1.1,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/ghc-bignum-1.1/ghc-bignum.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/ghc-boot-th-9.0.2,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/ghc-boot-th-9.0.2/ghc-boot-th.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/ghc-prim-0.7.0,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/ghc-prim-0.7.0/ghc-prim.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/integer-gmp-1.1,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/integer-gmp-1.1/integer-gmp.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/mtl-2.2.2,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/mtl-2.2.2/mtl.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/parsec-3.1.14.0,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/parsec-3.1.14.0/parsec.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/pretty-1.1.3.6,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/pretty-1.1.3.6/pretty.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/stm-2.5.0.0,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/stm-2.5.0.0/stm.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/template-haskell-2.17.0.0,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/template-haskell-2.17.0.0/template-haskell.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/text-1.2.5.0,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/text-1.2.5.0/text.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/time-1.9.3,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/time-1.9.3/time.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/transformers-0.5.6.2,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/transformers-0.5.6.2/transformers.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/unix-2.7.2.2,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/unix-2.7.2.2/unix.haddock --odir=/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc/html/lsp-types/ --title=lsp-types-1.4.0.0:\ Haskell\ library\ for\ the\ Microsoft\ Language\ Server\ Protocol,\ data\ types --optghc=-fbuilding-cabal-package --optghc=-O --optghc=-outputdir --optghc=../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build --optghc=-odir --optghc=../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build/tmp-42424 --optghc=-hidir --optghc=../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build/tmp-42424 --optghc=-stubdir --optghc=../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build/tmp-42424 --optghc=-i --optghc=-i../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build --optghc=-isrc --optghc=-i../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build/autogen --optghc=-i../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build/global-autogen --optghc=-I../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build/autogen --optghc=-I../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build/global-autogen --optghc=-I../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build --optghc=-optP-D__HADDOCK_VERSION__=2251 --optghc=-optP-include --optghc=-optP../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build/autogen/cabal_macros.h --optghc=-this-unit-id --optghc=lsp-types-1.4.0.0 --optghc=-hide-all-packages --optghc=-Wmissing-home-modules --optghc=-no-user-package-db --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/Diff-0.4.1/_install/Diff-0.4.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/base-orphans-0.8.6/_install/base-orphans-0.8.6.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/OneTuple-0.3.1/_install/OneTuple-0.3.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/splitmix-0.1.0.4/_install/splitmix-0.1.0.4.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/random-1.2.1/_install/random-1.2.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/QuickCheck-2.14.2/_install/QuickCheck-2.14.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/hashable-1.3.5.0/_install/hashable-1.3.5.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/integer-logarithms-1.0.3.1/_install/integer-logarithms-1.0.3.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/primitive-0.7.3.0/_install/primitive-0.7.3.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/scientific-0.3.7.0/_install/scientific-0.3.7.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/attoparsec-0.14.4/_install/attoparsec-0.14.4-attoparsec-internal.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/attoparsec-0.14.4/_install/attoparsec-0.14.4.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/base-compat-0.11.2/_install/base-compat-0.11.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/base-compat-batteries-0.11.2/_install/base-compat-batteries-0.11.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/data-fix-0.3.2/_install/data-fix-0.3.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/dlist-1.0/_install/dlist-1.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/indexed-traversable-0.1.2/_install/indexed-traversable-0.1.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/tagged-0.8.6.1/_install/tagged-0.8.6.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/unordered-containers-0.2.16.0/_install/unordered-containers-0.2.16.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/vector-0.12.3.1/_install/vector-0.12.3.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/indexed-traversable-instances-0.1.1/_install/indexed-traversable-instances-0.1.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/distributive-0.6.2.1/_install/distributive-0.6.2.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/transformers-compat-0.6.6/_install/transformers-compat-0.6.6.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/comonad-5.0.8/_install/comonad-5.0.8.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/th-abstraction-0.4.3.0/_install/th-abstraction-0.4.3.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/bifunctors-5.5.11/_install/bifunctors-5.5.11.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/StateVar-1.2.2/_install/StateVar-1.2.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/contravariant-1.5.5/_install/contravariant-1.5.5.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/semigroupoids-5.3.7/_install/semigroupoids-5.3.7.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/assoc-1.0.2/_install/assoc-1.0.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/these-1.1.1.1/_install/these-1.1.1.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/semialign-1.2.0.1/_install/semialign-1.2.0.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/strict-0.4.0.1/_install/strict-0.4.0.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/text-short-0.1.5/_install/text-short-0.1.5.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/time-compat-1.9.6.1/_install/time-compat-1.9.6.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/uuid-types-1.0.5/_install/uuid-types-1.0.5.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/witherable-0.4.2/_install/witherable-0.4.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/aeson-2.0.3.0/_install/aeson-2.0.3.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/data-default-class-0.1.2.0/_install/data-default-class-0.1.2.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/data-default-instances-containers-0.0.1/_install/data-default-instances-containers-0.0.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/data-default-instances-dlist-0.0.1/_install/data-default-instances-dlist-0.0.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/old-locale-1.0.0.7/_install/old-locale-1.0.0.7.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/data-default-instances-old-locale-0.0.1/_install/data-default-instances-old-locale-0.0.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/data-default-0.7.1.1/_install/data-default-0.7.1.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/network-3.1.2.7/_install/network-3.1.2.7.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/network-bsd-2.8.1.0/_install/network-bsd-2.8.1.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/hslogger-1.3.1.0/_install/hslogger-1.3.1.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/call-stack-0.4.0/_install/call-stack-0.4.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/profunctors-5.6.2/_install/profunctors-5.6.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/transformers-base-0.4.6/_install/transformers-base-0.4.6.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/free-5.1.7/_install/free-5.1.7.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/semigroups-0.19.2/_install/semigroups-0.19.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/void-0.7.3/_install/void-0.7.3.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/adjunctions-4.4/_install/adjunctions-4.4.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/invariant-0.5.5/_install/invariant-0.5.5.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/kan-extensions-5.2.3/_install/kan-extensions-5.2.3.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/parallel-3.2.2.0/_install/parallel-3.2.2.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/reflection-2.1.6/_install/reflection-2.1.6.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/lens-5.0.1/_install/lens-5.0.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/semirings-0.6/_install/semirings-0.6.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/mod-0.1.2.2/_install/mod-0.1.2.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/th-compat-0.1.3/_install/th-compat-0.1.3.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/network-uri-2.6.4.1/_install/network-uri-2.6.4.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/rope-utf16-splay-0.3.2.0/_install/rope-utf16-splay-0.3.2.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/some-1.0.3/_install/some-1.0.3.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/temporary-1.3/_install/temporary-1.3.conf.d --optghc=-package-db --optghc=/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/_install/lsp-types-1.4.0.0.conf.d --optghc=-package-db --optghc=/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/package.conf.inplace --optghc=-package-id --optghc=Diff-0.4.1 --optghc=-package-id --optghc=aeson-2.0.3.0 --optghc=-package-id --optghc=base-4.15.1.0 --optghc=-package-id --optghc=binary-0.8.8.0 --optghc=-package-id --optghc=bytestring-0.10.12.1 --optghc=-package-id --optghc=containers-0.6.4.1 --optghc=-package-id --optghc=data-default-0.7.1.1 --optghc=-package-id --optghc=deepseq-1.4.5.0 --optghc=-package-id --optghc=directory-1.3.6.2 --optghc=-package-id --optghc=dlist-1.0 --optghc=-package-id --optghc=filepath-1.4.2.1 --optghc=-package-id --optghc=hashable-1.3.5.0 --optghc=-package-id --optghc=hslogger-1.3.1.0 --optghc=-package-id --optghc=lens-5.0.1 --optghc=-package-id --optghc=mod-0.1.2.2 --optghc=-package-id --optghc=mtl-2.2.2 --optghc=-package-id --optghc=network-uri-2.6.4.1 --optghc=-package-id --optghc=rope-utf16-splay-0.3.2.0 --optghc=-package-id --optghc=scientific-0.3.7.0 --optghc=-package-id --optghc=some-1.0.3 --optghc=-package-id --optghc=template-haskell-2.17.0.0 --optghc=-package-id --optghc=temporary-1.3 --optghc=-package-id --optghc=text-1.2.5.0 --optghc=-package-id --optghc=unordered-containers-0.2.16.0 --optghc=-XHaskell2010 --optghc=-XStrictData --optghc=-Wall -B/nix/store/z8577sg7xny6fxhndrrrkpvzhn53w9vc-ghc-native-bignum-9.0.2/lib/ghc-9.0.2 src/Language/LSP/Types.hs src/Language/LSP/Types/Capabilities.hs src/Language/LSP/Types/Lens.hs src/Language/LSP/Types/SMethodMap.hs src/Language/LSP/VFS.hs src/Data/IxMap.hs src/Language/LSP/Types/CallHierarchy.hs src/Language/LSP/Types/Cancellation.hs src/Language/LSP/Types/ClientCapabilities.hs src/Language/LSP/Types/CodeAction.hs src/Language/LSP/Types/CodeLens.hs src/Language/LSP/Types/Command.hs src/Language/LSP/Types/Common.hs src/Language/LSP/Types/Completion.hs src/Language/LSP/Types/Configuration.hs src/Language/LSP/Types/Declaration.hs src/Language/LSP/Types/Definition.hs src/Language/LSP/Types/Diagnostic.hs src/Language/LSP/Types/DocumentColor.hs src/Language/LSP/Types/DocumentFilter.hs src/Language/LSP/Types/DocumentHighlight.hs src/Language/LSP/Types/DocumentLink.hs src/Language/LSP/Types/DocumentSymbol.hs src/Language/LSP/Types/FoldingRange.hs src/Language/LSP/Types/Formatting.hs src/Language/LSP/Types/Hover.hs src/Language/LSP/Types/Implementation.hs src/Language/LSP/Types/Initialize.hs src/Language/LSP/Types/Location.hs src/Language/LSP/Types/LspId.hs src/Language/LSP/Types/MarkupContent.hs src/Language/LSP/Types/Method.hs src/Language/LSP/Types/Message.hs src/Language/LSP/Types/Parsing.hs src/Language/LSP/Types/Progress.hs src/Language/LSP/Types/Registration.hs src/Language/LSP/Types/References.hs src/Language/LSP/Types/Rename.hs src/Language/LSP/Types/SelectionRange.hs src/Language/LSP/Types/ServerCapabilities.hs src/Language/LSP/Types/SemanticTokens.hs src/Language/LSP/Types/SignatureHelp.hs src/Language/LSP/Types/StaticRegistrationOptions.hs src/Language/LSP/Types/TextDocument.hs src/Language/LSP/Types/TypeDefinition.hs src/Language/LSP/Types/Uri.hs src/Language/LSP/Types/Utils.hs src/Language/LSP/Types/Window.hs src/Language/LSP/Types/WatchedFiles.hs src/Language/LSP/Types/WorkspaceEdit.hs src/Language/LSP/Types/WorkspaceFolders.hs src/Language/LSP/Types/WorkspaceSymbol.hs >>> /private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc/html/lsp-types/haddock-response42424-1.txt Environment: [("CABAL_VERBOSE","True"),("CC_WRAPPER_CC_PATH","external/local_config_cc/cc_wrapper.sh"),("CC_WRAPPER_CPU","darwin_arm64"),("CC_WRAPPER_PLATFORM","darwin"),("CODESIGN_ALLOCATE","/nix/store/3ibr5yy13sxl2vb5rig8fivj85sqcvf2-cctools-port-949.0.1/bin/codesign_allocate"),("HOME","/var/empty"),("LANG","C.UTF-8"),("LC_CTYPE","UTF-8"),("LD_LIBRARY_PATH",""),("LIBRARY_PATH",""),("PATH","/nix/store/xqbgx1y5xh2k13c6nizlprkp0j8mcw6w-clang-wrapper-12.0.1/bin:/nix/store/p90xw78bb3xsxg5v7k31qj5hpwm2pngp-llvm-12.0.1/bin:/nix/store/5havjxkv59cprx4czgi1lwnvv7y22dzi-posix-toolchain/bin"),("PWD","/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/external/lsp-types"),("PYTHONPATH","/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/runghc.runfiles:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/runghc.runfiles/:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/runghc.runfiles/bazel_tools:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/runghc.runfiles/com_github_digital_asset_daml:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/runghc.runfiles/local_config_cc:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/runghc.runfiles/rules_haskell:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/runghc.runfiles/rules_haskell_ghc_nixpkgs:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/runghc.runfiles/rules_python:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/cabal_wrapper.runfiles:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/cabal_wrapper.runfiles/:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/cabal_wrapper.runfiles/bazel_tools:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/cabal_wrapper.runfiles/com_github_digital_asset_daml:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/cabal_wrapper.runfiles/rules_haskell"),("RULES_HASKELL_DOCDIR_PATH","/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/base-4.15.1.0"),("RULES_HASKELL_EXEC_ROOT","/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml"),("RULES_HASKELL_GHC_PATH","/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/external/rules_haskell_ghc_nixpkgs/bin/ghc"),("RULES_HASKELL_GHC_PKG_PATH","/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/external/rules_haskell_ghc_nixpkgs/bin/ghc-pkg"),("RULES_HASKELL_LIBDIR_PATH","/nix/store/z8577sg7xny6fxhndrrrkpvzhn53w9vc-ghc-native-bignum-9.0.2/lib/ghc-9.0.2"),("RUNFILES_DIR","/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/runghc.runfiles"),("SDKROOT","macosx"),("SHLVL","0"),("TEMP","/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/tmp"),("TMP","/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/tmp"),("TMPDIR","/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/tmp"),("__CF_USER_TEXT_ENCODING","0x1F5:0x0:0x0")] /private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/external/rules_haskell_ghc_nixpkgs/bin/haddock '@/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc/html/lsp-types/haddock-response42424-1.txt' 0% ( 0 / 7) in 'Data.IxMap' Missing documentation for: Module header IxOrd (src/Data/IxMap.hs:17) IxMap (src/Data/IxMap.hs:21) emptyIxMap (src/Data/IxMap.hs:23) insertIxMap (src/Data/IxMap.hs:26) lookupIxMap (src/Data/IxMap.hs:31) pickFromIxMap (src/Data/IxMap.hs:37) `cc' failed in phase `Linker'. (Exit code: 134) /private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/external/rules_haskell_ghc_nixpkgs/bin/haddock returned ExitFailure 1 Target //compiler/damlc:damlc failed to build ERROR: /Users/builder/daml-andreas/compiler/damlc/BUILD.bazel:38:9 Middleman _middlemen/compiler_Sdamlc_Sdamlc-runfiles failed: (Exit 1): cabal_wrapper failed: error executing command (cd /private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml && \ exec env - \ CABAL_VERBOSE=True \ CC_WRAPPER_CC_PATH=external/local_config_cc/cc_wrapper.sh \ CC_WRAPPER_CPU=darwin_arm64 \ CC_WRAPPER_PLATFORM=darwin \ LANG=C.UTF-8 \ PATH=/nix/store/5havjxkv59cprx4czgi1lwnvv7y22dzi-posix-toolchain/bin \ RULES_HASKELL_DOCDIR_PATH=/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/base-4.15.1.0 \ RULES_HASKELL_GHC_PATH=external/rules_haskell_ghc_nixpkgs/bin/ghc \ RULES_HASKELL_GHC_PKG_PATH=external/rules_haskell_ghc_nixpkgs/bin/ghc-pkg \ RULES_HASKELL_LIBDIR_PATH=/nix/store/z8577sg7xny6fxhndrrrkpvzhn53w9vc-ghc-native-bignum-9.0.2/lib/ghc-9.0.2 \ SDKROOT=macosx \ bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/cabal_wrapper bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types_cabal_wrapper_args.json) Execution platform: @io_tweag_rules_nixpkgs//nixpkgs/platforms:host Use --sandbox_debug to see verbose messages from the sandbox INFO: Elapsed time: 344.702s, Critical Path: 329.09s INFO: 49 processes: 14 internal, 35 processwrapper-sandbox. FAILED: Build did NOT complete successfully FAILED: Build did NOT complete successfully ``` * Disable create-daml-app tests on MacOS M1 These fail to build because puppeteer fails to install Chromium on M1. See https://github.com/digital-asset/daml/pull/13250. * Resign binaries after patching in package-app Otherwise they fail to execute on MacOS Monterey on M1. They symptom is that executing or otherwise loading the binary (e.g. into lldb) fails with exit code -9 without further indications. * Use GHC with LLVM on MacOS M1 The native backend only supports M1 starting from GHC 9.2. However, we are still on GHC 9.0. We wrap GHC to ensure that the LLVM toolchain and the codesign tool are present in the environment and point to the correct versions provided by nixpkgs. * Update the CC toolchain for MacOS M1 compatibility Use nixpkgs `nix-support/cc-cflags` file to provide default flags instead of using `makeWrapper`. On M1 there was an issue where passing `-l` flags or `-isystem` to `cc -v` would cause the following errors: ``` lang version 11.1.0 Target: aarch64-apple-darwin Thread model: posix InstalledDir: /nix/store/v6iidz79b425hli98g45xq9iblapn1zy-clang-11.1.0/bin "/nix/store/b82mvqzvdx5mh1n9n77v8h5vk9fgqrxj-clang-wrapper-11.1.0/bin/ld" -demangle -lto_library /nix/store/v6iidz79b425hli98g45xq9iblapn1zy-clang-11.1.0/lib/libLTO.dylib -dynamic -arch arm64 -platform_version macos 11.0.0 0.0.0 -o a.out -L/nix/store/hc8a94w57ppwmn2gscm56pvlwi3zhyh1-libSystem-11.0.0/lib -L/nix/store/6f5ygwif1r523jj2qfwfiwix0fga4rgp-clang-11.1.0-lib/lib -L/nix/store/7pkxnbhpi0c10w18rirj8zxz3wv571nj-libcxx-11.1.0/lib -no_uuid -arch arm64 -lSystem /nix/store/b82mvqzvdx5mh1n9n77v8h5vk9fgqrxj-clang-wrapper-11.1.0/resource-root/lib/darwin/libclang_rt.osx.a Undefined symbols for architecture arm64: "_main", referenced from: implicit entry/start for main executable ld: symbol(s) not found for architecture arm64 ``` This also includes additional standard library search paths: `-isystem ${llvmPackages_12.libcxx.dev}/include/c++/v1` alone is not enough because some headers in it are [wrapper headers](https://gcc.gnu.org/onlinedocs/cpp/Wrapper-Headers.html) that use `include_next` directives. For these to resolve we need to add the compiler's builtin headers to the search path as well. This also sets `-Wno-elaborated-enum-base` to avoid build failures of absl on MacOS Monterey M1. ``` In file included from external/com_google_absl/absl/time/internal/cctz/src/time_zone_lookup.cc:26: In file included from /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFTimeZone.h:13: /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:474:9: error: non-defining declaration of enumeration with a fixed underlying type is only permitted as a standalone declaration; missing list of enumerators? [-Welaborated-enum-base] typedef CF_ENUM(CFIndex, CFComparisonResult) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFAvailability.h:169:55: note: expanded from macro 'CF_ENUM' \#define CF_ENUM(...) __CF_ENUM_GET_MACRO(__VA_ARGS__, __CF_NAMED_ENUM, __CF_ANON_ENUM, )(__VA_ARGS__) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFAvailability.h:134:48: note: expanded from macro '__CF_ENUM_GET_MACRO' \#define __CF_ENUM_GET_MACRO(_1, _2, NAME, ...) NAME ^ /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFAvailability.h:142:75: note: expanded from macro '__CF_NAMED_ENUM' \#define __CF_NAMED_ENUM(_type, _name) enum __CF_ENUM_ATTRIBUTES _name : _type _name; enum _name : _type ^~~~~~~ In file included from external/com_google_absl/absl/time/internal/cctz/src/time_zone_lookup.cc:26: In file included from /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFTimeZone.h:18: In file included from /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFString.h:17: /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFCharacterSet.h:62:9: error: non-defining declaration of enumeration with a fixed underlying type is only permitted as a standalone decla ration; missing list of enumerators? [-Welaborated-enum-base] typedef CF_ENUM(CFIndex, CFCharacterSetPredefinedSet) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFAvailability.h:169:55: note: expanded from macro 'CF_ENUM' \#define CF_ENUM(...) __CF_ENUM_GET_MACRO(__VA_ARGS__, __CF_NAMED_ENUM, __CF_ANON_ENUM, )(__VA_ARGS__) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFAvailability.h:134:48: note: expanded from macro '__CF_ENUM_GET_MACRO' \#define __CF_ENUM_GET_MACRO(_1, _2, NAME, ...) NAME ^ /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFAvailability.h:142:75: note: expanded from macro '__CF_NAMED_ENUM' \#define __CF_NAMED_ENUM(_type, _name) enum __CF_ENUM_ATTRIBUTES _name : _type _name; enum _name : _type ^~~~~~~ ... ``` * Link libc++ in fat_cc_library on MacOS * Build on native ARM M1 instead of Rosetta changelog_begin changelog_end * Drop unused ghcLLVMWrapper * Select ghcWithLLVM within Nix If we generally expose ghcWithLLVM from Nix and then select on the Bazel, then we'd need to filter that derivation out from the Nix and dev-tool build step on CI. * fmt * Update Node version in compatibility * Expose node in PATH in create-daml-app test It seems that the node update made the `--scripts-prepend-node-path` flag less effective than it was before. Without explicitly adding `node` to `PATH` the install step fails with the following error: ``` Failure: Command "CreateProcess {cmdspec = RawCommand "/home/aj/.cache/bazel/_bazel_aj/c437a451a7a277d35b539da616255ac8/sandbox/linux-sandbox/1435/execroot/compatibility/bazel-out/k8-opt/bin/create-daml-app-0.0.0-platform-2.0.0.runfiles/compatibility/external/node_nix/node_nix/lib/node_modules/npm/bin/npm-cli.js" ["install","--scripts-prepend-node-path"], cwd = Nothing, env = Nothing, std_in = Inherit, std_out = Inherit, std_err = Inherit, close_fds = False, create_group = False, delegate_ctlc = False, detach_console = False, create_new_console = False, new_session = False, child_group = Nothing, child_user = Nothing, use_process_jobs = False}" exited with ExitFailure 127 npm ERR! code 127 npm ERR! path /tmp/extra-dir-7515936101075/create-daml-app/ui/node_modules/puppeteer npm ERR! command failed npm ERR! command sh -c node install.js npm ERR! sh: line 1: node: command not found npm ERR! A complete log of this run can be found in: npm ERR! /tmp/extra-dir-7515936101074/_logs/2022-03-24T10_18_15_227Z-debug.log ``` * Skip create-daml-app compat tests pre 2.0.0 changelog_begin changelog_end In these tests the install step fails with the following error due to mismatch babel-jest dependency versions: ``` ==================== Test output for //:create-daml-app-1.8.1-platform-0.0.0: Create Daml App tests Getting Started Guide: WARNING: Specifying the template via daml new create-daml-app create-daml-app is deprecated. The recommended way of specifying the template is daml new create-daml-app --template create-daml-app Created a new project in "create-daml-app" based on the template "create-daml-app". > create-daml-app@0.1.0 test > react-scripts test --testURL='http://localhost:7575' There might be a problem with the project dependency tree. It is likely not a bug in Create React App, but something you need to fix locally. The react-scripts package provided by Create React App requires a dependency: "babel-jest": "^24.9.0" Don't try to install it manually: your package manager does it automatically. However, a different version of babel-jest was detected higher up in the tree: /tmp/extra-dir-3298351016846/create-daml-app/ui/node_modules/babel-jest (version: 25.5.1) Manually installing incompatible versions is known to cause hard-to-debug issues. If you would prefer to ignore this check, add SKIP_PREFLIGHT_CHECK=true to an .env file in your project. That will permanently disable this message but you might encounter other issues. To fix the dependency tree, try following the steps below in the exact order: 1. Delete package-lock.json (not package.json!) and/or yarn.lock in your project folder. 2. Delete node_modules in your project folder. 3. Remove "babel-jest" from dependencies and/or devDependencies in the package.json file in your project folder. 4. Run npm install or yarn, depending on the package manager you use. In most cases, this should be enough to fix the problem. If this has not helped, there are a few other things you can try: 5. If you used npm, install yarn (http://yarnpkg.com/) and repeat the above steps with it instead. This may help because npm has known issues with package hoisting which may get resolved in future versions. 6. Check if /tmp/extra-dir-3298351016846/create-daml-app/ui/node_modules/babel-jest is outside your project directory. For example, you might have accidentally installed something in your home folder. 7. Try running npm ls babel-jest in your project folder. This will tell you which other package (apart from the expected react-scripts) installed babel-jest. If nothing else helps, add SKIP_PREFLIGHT_CHECK=true to an .env file in your project. That would permanently disable this preflight check in case you want to proceed anyway. P.S. We know this message is long but please read the steps above :-) We hope you find them helpful! FAIL (125.62s) Create app from template (0.05s) Patch the application code with messaging feature Extract codegen output (0.06s) Set up libraries and workspaces (0.01s) Install Jest, Puppeteer and other dependencies (123.95s) Run Puppeteer end-to-end tests (1.54s) callProcess: /home/aj/.cache/bazel/_bazel_aj/c437a451a7a277d35b539da616255ac8/sandbox/linux-sandbox/2351/execroot/compatibility/bazel-out/k8-opt/bin/create-daml-app-1.8.1-platform-0.0.0.runfiles/compatibility/external/node_nix/node_nix/lib/node_modules/npm/bin/npm-cli.js "run" "test" "--ci" "--all" "--scripts-prepend-node-path" (exit 1): failed 1 out of 1 tests failed (125.62s) ================================================================================ ``` Applying the suggested `SKIP_PREFLIGHT_CHECK=true` fix leads to the following failure instead: ``` ==================== Test output for //:create-daml-app-1.9.0-platform-0.0.0: Create Daml App tests Getting Started Guide: WARNING: Specifying the template via daml new create-daml-app create-daml-app is deprecated. The recommended way of specifying the template is daml new create-daml-app --template create-daml-app Created a new project in "create-daml-app" based on the template "create-daml-app". > create-daml-app@0.1.0 test > react-scripts test --testURL='http://localhost:7575' PASS src/components/App.test.tsx ● Console console.debug daml-types/index.js:98 Registered template bbfcd72618817ef8c99eb663e1f80375835bd51efebdc69b55884ad7afb3a0ef:User:Message. console.debug daml-types/index.js:98 Registered template bbfcd72618817ef8c99eb663e1f80375835bd51efebdc69b55884ad7afb3a0ef:User:User. 12:42:55.745 [program-resource-pool-4] INFO c.d.l.sandbox.AkkaSubmissionsBridge - Instantiated Akka submissions bridge., context: {participantId: "sandbox"} 12:42:57.897 [program-resource-pool-3] INFO c.d.ledger.sandbox.SandboxOnXRunner - Initialized sandbox-on-x with conflict checking ledger bridge, version 0.0.0, run-mode = combined participant, index DB backend = h2database, participant-id = sandbox, ledger-id = create-daml-app-sandbox, port = 0, time mode = wall-clock time, allowed language versions = [min = LanguageVersion(V1,LanguageMinorVersion(6)), max = LanguageVersion(V1,LanguageMinorVersion(14))], authentication = all unauthenticated allowed, contract ids seeding = strong 24-03-2022 12:43:02.413 [main] INFO com.daml.http.Main - Config(ledgerHost=localhost, ledgerPort=34937, address=127.0.0.1, httpPort=7575, portFile=Some(json-api.port), packageReloadInterval=5 seconds, packageMaxInboundMessageSize=None, maxInboundMessageSize=4194304, tlsConfig=TlsConfiguration(false,None,None,None,None,REQUIRE,false,None), jdbcConfig=None, staticContentConfig=None, allowNonHttps=true, wsConfig=None, nonRepudiationCertificateFile=None, nonRepudiationPrivateKeyFile=None, nonRepudiationPrivateKeyAlgorithm=None, surrogateTpIdCacheMaxEntries=None), context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0"} 24-03-2022 12:43:02.745 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO akka.event.slf4j.Slf4jLogger - Slf4jLogger started 24-03-2022 12:43:03.041 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO com.daml.http.HttpService - HTTP Server pre-startup, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0"} 24-03-2022 12:43:03.251 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO com.daml.http.LedgerClient - Attempting to connect to the ledger localhost:34937 (600 attempts), context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0"} 24-03-2022 12:43:03.594 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO com.daml.http.LedgerClient - Attempt 1/600 succeeded!, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0"} 24-03-2022 12:43:03.596 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO com.daml.http.LedgerClient - Attempting to connect to the ledger localhost:34937 (600 attempts), context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0"} 24-03-2022 12:43:03.600 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO com.daml.http.LedgerClient - Attempt 1/600 succeeded!, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0"} 24-03-2022 12:43:03.601 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO com.daml.http.HttpService - contractDao: None, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0"} 24-03-2022 12:43:04.132 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO com.daml.http.Main - Started server: (ServerBinding(/127.0.0.1:7575),None), context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0"} 24-03-2022 12:43:05.280 [http-json-ledger-api-akka.actor.default-dispatcher-13] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "2ab72d48-cdef-4e00-ac17-0afda5084008"} 24-03-2022 12:43:05.791 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "2ab72d48-cdef-4e00-ac17-0afda5084008"} > create-daml-app@0.1.0 start > react-scripts start [HPM] Proxy created: function (pathname, req) { // Proxy requests to the http json api when in development const proxied = pathname.match("^/v1") && process.env.NODE_ENV === "development"; if (proxied) { console.log( `Request with path ${pathname} proxied from host ${req.headers.host} to host ${httpJsonDevUrl}` ); } return proxied; } -> http://localhost:undefined ℹ 「wds」: Project is running at http://192.168.1.114/ ℹ 「wds」: webpack output is served from ℹ 「wds」: Content not from webpack is served from /tmp/extra-dir-99443589994656/create-daml-app/ui/public ℹ 「wds」: 404s will fallback to / Starting the development server... 24-03-2022 12:43:07.495 [http-json-ledger-api-akka.actor.default-dispatcher-9] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "ce0131fd-6a4c-4eb1-8c1b-6d68418fde82"} 24-03-2022 12:43:07.606 [http-json-ledger-api-akka.actor.default-dispatcher-17] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "ce0131fd-6a4c-4eb1-8c1b-6d68418fde82"} 24-03-2022 12:43:07.623 [http-json-ledger-api-akka.actor.default-dispatcher-9] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "a4d1c7b0-406c-4297-a690-66ba2b692f19"} 24-03-2022 12:43:07.725 [http-json-ledger-api-akka.actor.default-dispatcher-16] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "a4d1c7b0-406c-4297-a690-66ba2b692f19"} 24-03-2022 12:43:07.741 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "bf65790a-38bc-4686-aa15-607c3c24661a"} 24-03-2022 12:43:07.846 [http-json-ledger-api-akka.actor.default-dispatcher-9] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "bf65790a-38bc-4686-aa15-607c3c24661a"} 24-03-2022 12:43:07.865 [http-json-ledger-api-akka.actor.default-dispatcher-13] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "3ab06283-270c-4994-852c-92c8c3b34ecc"} 24-03-2022 12:43:07.964 [http-json-ledger-api-akka.actor.default-dispatcher-14] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "3ab06283-270c-4994-852c-92c8c3b34ecc"} 24-03-2022 12:43:07.980 [http-json-ledger-api-akka.actor.default-dispatcher-8] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "b332b66a-6231-4492-817d-a2c58c85d04c"} 24-03-2022 12:43:08.084 [http-json-ledger-api-akka.actor.default-dispatcher-18] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "b332b66a-6231-4492-817d-a2c58c85d04c"} 24-03-2022 12:43:08.098 [http-json-ledger-api-akka.actor.default-dispatcher-17] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "8c77ce53-52b5-4e0c-993a-3f810b54bfec"} 24-03-2022 12:43:08.204 [http-json-ledger-api-akka.actor.default-dispatcher-9] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "8c77ce53-52b5-4e0c-993a-3f810b54bfec"} 24-03-2022 12:43:08.220 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "8813ad99-79c7-42c4-9719-5bdcfeb5077e"} 24-03-2022 12:43:08.326 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "8813ad99-79c7-42c4-9719-5bdcfeb5077e"} 24-03-2022 12:43:08.340 [http-json-ledger-api-akka.actor.default-dispatcher-18] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "deeca40b-0f05-47c9-927d-f71b0fe08ccb"} 24-03-2022 12:43:08.444 [http-json-ledger-api-akka.actor.default-dispatcher-18] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "deeca40b-0f05-47c9-927d-f71b0fe08ccb"} 24-03-2022 12:43:08.462 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "9be53420-eb4d-4ee3-9915-4a4381c51bea"} 24-03-2022 12:43:08.563 [http-json-ledger-api-akka.actor.default-dispatcher-18] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "9be53420-eb4d-4ee3-9915-4a4381c51bea"} 24-03-2022 12:43:08.576 [http-json-ledger-api-akka.actor.default-dispatcher-18] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "8d64b076-ff2b-4f5b-8653-95e5e949cb34"} 24-03-2022 12:43:08.685 [http-json-ledger-api-akka.actor.default-dispatcher-14] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "8d64b076-ff2b-4f5b-8653-95e5e949cb34"} 24-03-2022 12:43:08.697 [http-json-ledger-api-akka.actor.default-dispatcher-14] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "87246c50-00b7-453e-9771-83f176a3cbfc"} 24-03-2022 12:43:08.802 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "87246c50-00b7-453e-9771-83f176a3cbfc"} 24-03-2022 12:43:08.818 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "65bb8c95-a253-4ac5-a297-1abeff6ce44c"} 24-03-2022 12:43:08.920 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "65bb8c95-a253-4ac5-a297-1abeff6ce44c"} 24-03-2022 12:43:08.930 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/query from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "d45c0c95-1576-480c-b048-f59919a1d139"} 24-03-2022 12:43:10.016 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.PackageService - new package IDs loaded: bfcd37bd6b84768e86e432f5f6c33e25d9e7724a9d42e33875ff74f6348e733f, 518032f41fd0175461b35ae0c9691e08b4aea55e62915f8360af2cc7a1f2ba6c, cc348d369011362a5190fe96dd1f0dfbc697fdfd10e382b9e9666f0da05961b7, f78511c39cc293d5ed72acf5a4a81411af75a435df4106c5e37823af6589040b, 6839a6d3d430c569b2425e9391717b44ca324b88ba621d597778811b2d05031d, 99a2705ed38c1c26cbb8fe7acf36bbf626668e167a33335de932599219e0a235, 76bf0fd12bd945762a01f8fc5bbcdfa4d0ff20f8762af490f8f41d6237c6524f, e22bce619ae24ca3b8e6519281cb5a33b64b3190cc763248b4c3f9ad5087a92c, d58cf9939847921b2aab78eaa7b427dc4c649d25e6bee3c749ace4c3f52f5c97, 6c2c0667393c5f92f1885163068cd31800d2264eb088eb6fc740e11241b2bf06, c1f1f00558799eec139fb4f4c76f95fb52fa1837a5dd29600baa1c8ed1bdccfd, 733e38d36a2759688a4b2c4cec69d48e7b55ecc8dedc8067b815926c917a182a, 057eed1fd48c238491b8ea06b9b5bf85a5d4c9275dd3f6183e0e6b01730cc2ba, 52af8c65ac2c4b3d61637558935d2b0a92369ec4da39978a29f90a5f738f3e14, d14e08374fc7197d6a0de468c968ae8ba3aadbf9315476fd39071831f5923662, e491352788e56ca4603acc411ffe1a49fefd76ed8b163af86cf5ee5f4c38645b, 40f452260bef3f29dede136108fc08a88d5a5250310281067087da6f0baddff7, 8a7806365bbd98d88b4c13832ebfa305f6abaeaf32cfa2b7dd25c4fa489b79fb, bbfcd72618817ef8c99eb663e1f80375835bd51efebdc69b55884ad7afb3a0ef, context: {ledger_id: "create-daml-app-sandbox", cmd: "GetActiveContractsRequest(OneAnd(TemplateId(Some(bbfcd72618817ef8c99eb663e1f80375835bd51efebdc69b55884ad7afb3a0ef),User,User),Set()),Map(),None)", request_id: "d45c0c95-1576-480c-b048-f59919a1d139", instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", application_id: "create-daml-app", read_as: "List()", act_as: "List(party-c276900f)"} 24-03-2022 12:43:10.192 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "d45c0c95-1576-480c-b048-f59919a1d139"} 24-03-2022 12:43:10.420 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/create from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "90767a4d-bf5f-4a9c-a633-9c9bf4374ab1"} 24-03-2022 12:43:10.490 [http-json-ledger-api-akka.actor.default-dispatcher-11] INFO com.daml.http.CommandService - Submitting create command, context: {command_id: "9371a5a2-1ab5-4deb-8cec-ad21c0e620dc", ledger_id: "create-daml-app-sandbox", request_id: "90767a4d-bf5f-4a9c-a633-9c9bf4374ab1", instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", application_id: "create-daml-app", template_id: "TemplateId(bbfcd72618817ef8c99eb663e1f80375835bd51efebdc69b55884ad7afb3a0ef,User,User)", read_as: "List()", act_as: "List(party-c276900f)"} 24-03-2022 12:43:12.870 [http-json-ledger-api-akka.actor.default-dispatcher-17] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "90767a4d-bf5f-4a9c-a633-9c9bf4374ab1"} 24-03-2022 12:43:12.885 [http-json-ledger-api-akka.actor.default-dispatcher-17] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/fetch from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "fd827c73-d3b8-4e42-877a-ce9af707da2a"} 24-03-2022 12:43:12.992 [http-json-ledger-api-akka.actor.default-dispatcher-11] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "fd827c73-d3b8-4e42-877a-ce9af707da2a"} 24-03-2022 12:43:13.004 [http-json-ledger-api-akka.actor.default-dispatcher-11] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/query from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "94adec23-cb1a-464b-9fad-8bf7da06b99f"} 24-03-2022 12:43:13.017 [http-json-ledger-api-akka.actor.default-dispatcher-13] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "94adec23-cb1a-464b-9fad-8bf7da06b99f"} 24-03-2022 12:43:13.074 [http-json-ledger-api-akka.actor.default-dispatcher-7] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "42f7aaf6-f3f7-4138-a4c6-1be224c100bc"} 24-03-2022 12:43:13.121 [http-json-ledger-api-akka.actor.default-dispatcher-17] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "42f7aaf6-f3f7-4138-a4c6-1be224c100bc"} Compiled successfully! You can now view create-daml-app in the browser. Local: http://localhost:3000 On Your Network: http://192.168.1.114:3000 Note that the development build is not optimized. To create a production build, use npm run build. Request with path /v1/fetch proxied from host localhost:3000 to host http://localhost:undefined 24-03-2022 12:43:53.540 [http-json-ledger-api-akka.actor.default-dispatcher-11] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "f1da2b78-e020-40fc-b4cc-e635fc78f8fb"} 24-03-2022 12:43:53.681 [http-json-ledger-api-akka.actor.default-dispatcher-7] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "f1da2b78-e020-40fc-b4cc-e635fc78f8fb"} 24-03-2022 12:43:53.690 [http-json-ledger-api-akka.actor.default-dispatcher-7] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "42e89b95-f5b7-4c39-bcd8-4264e86a924d"} 24-03-2022 12:43:53.802 [http-json-ledger-api-akka.actor.default-dispatcher-13] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "42e89b95-f5b7-4c39-bcd8-4264e86a924d"} 24-03-2022 12:43:53.814 [http-json-ledger-api-akka.actor.default-dispatcher-13] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "fd54814b-fc1f-479b-b65a-1b3bc59392b8"} 24-03-2022 12:43:53.923 [http-json-ledger-api-akka.actor.default-dispatcher-6] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "fd54814b-fc1f-479b-b65a-1b3bc59392b8"} Request with path /v1/fetch proxied from host localhost:3000 to host http://localhost:undefined 24-03-2022 12:44:24.809 [http-json-ledger-api-akka.actor.default-dispatcher-17] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "cde08b6a-68c1-4f7d-9d20-f5bde5c478aa"} 24-03-2022 12:44:24.880 [http-json-ledger-api-akka.actor.default-dispatcher-9] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "cde08b6a-68c1-4f7d-9d20-f5bde5c478aa"} Request with path /v1/fetch proxied from host localhost:3000 to host http://localhost:undefined 24-03-2022 12:44:55.691 [http-json-ledger-api-akka.actor.default-dispatcher-8] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "8dfa15a7-044d-41f7-9597-37662c2ff5ff"} 24-03-2022 12:44:55.818 [http-json-ledger-api-akka.actor.default-dispatcher-6] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "8dfa15a7-044d-41f7-9597-37662c2ff5ff"} 24-03-2022 12:44:55.828 [http-json-ledger-api-akka.actor.default-dispatcher-6] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "fe3af4d3-7e89-41a5-bfb3-ec639967a0f8"} 24-03-2022 12:44:55.938 [http-json-ledger-api-akka.actor.default-dispatcher-8] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "fe3af4d3-7e89-41a5-bfb3-ec639967a0f8"} Request with path /v1/fetch proxied from host localhost:3000 to host http://localhost:undefined FAIL src/index.test.ts (154.562s) ● Console console.debug daml-types/index.js:98 Registered template bbfcd72618817ef8c99eb663e1f80375835bd51efebdc69b55884ad7afb3a0ef:User:Message. console.debug daml-types/index.js:98 Registered template bbfcd72618817ef8c99eb663e1f80375835bd51efebdc69b55884ad7afb3a0ef:User:User. ● log in as a new user, log out and log back in TimeoutError: waiting for selector ".test-select-main-menu" failed: timeout 30000ms exceeded 277 | await usernameInput.type(partyName); 278 | await page.click(".test-select-login-button"); > 279 | await page.waitForSelector(".test-select-main-menu"); | ^ 280 | }; 281 | // LOGIN_FUNCTION_END 282 | at new WaitTask (node_modules/puppeteer/lib/DOMWorld.js:407:34) at DOMWorld._waitForSelectorOrXPath (node_modules/puppeteer/lib/DOMWorld.js:332:26) at DOMWorld.waitForSelector (node_modules/puppeteer/lib/DOMWorld.js:315:21) at Frame.waitForSelector (node_modules/puppeteer/lib/FrameManager.js:384:51) at Frame.<anonymous> (node_modules/puppeteer/lib/helper.js:117:27) at Page.waitForSelector (node_modules/puppeteer/lib/Page.js:867:33) at login (src/index.test.ts:279:14) at Object.<anonymous> (src/index.test.ts:313:3) ● log in as three different users and start following each other TimeoutError: waiting for selector ".test-select-main-menu" failed: timeout 30000ms exceeded 277 | await usernameInput.type(partyName); 278 | await page.click(".test-select-login-button"); > 279 | await page.waitForSelector(".test-select-main-menu"); | ^ 280 | }; 281 | // LOGIN_FUNCTION_END 282 | at new WaitTask (node_modules/puppeteer/lib/DOMWorld.js:407:34) at DOMWorld._waitForSelectorOrXPath (node_modules/puppeteer/lib/DOMWorld.js:332:26) at DOMWorld.waitForSelector (node_modules/puppeteer/lib/DOMWorld.js:315:21) at Frame.waitForSelector (node_modules/puppeteer/lib/FrameManager.js:384:51) at Frame.<anonymous> (node_modules/puppeteer/lib/helper.js:117:27) at Page.waitForSelector (node_modules/puppeteer/lib/Page.js:867:33) at login (src/index.test.ts:279:14) at Object.<anonymous> (src/index.test.ts:349:3) ● error when following self TimeoutError: waiting for selector ".test-select-main-menu" failed: timeout 30000ms exceeded 277 | await usernameInput.type(partyName); 278 | await page.click(".test-select-login-button"); > 279 | await page.waitForSelector(".test-select-main-menu"); | ^ 280 | }; 281 | // LOGIN_FUNCTION_END 282 | at new WaitTask (node_modules/puppeteer/lib/DOMWorld.js:407:34) at DOMWorld._waitForSelectorOrXPath (node_modules/puppeteer/lib/DOMWorld.js:332:26) at DOMWorld.waitForSelector (node_modules/puppeteer/lib/DOMWorld.js:315:21) at Frame.waitForSelector (node_modules/puppeteer/lib/FrameManager.js:384:51) at Frame.<anonymous> (node_modules/puppeteer/lib/helper.js:117:27) at Page.waitForSelector (node_modules/puppeteer/lib/Page.js:867:33) at login (src/index.test.ts:279:14) at Object.<anonymous> (src/index.test.ts:455:3) ● error when adding a user that you are already following TimeoutError: waiting for selector ".test-select-main-menu" failed: timeout 30000ms exceeded 277 | await usernameInput.type(partyName); 278 | await page.click(".test-select-login-button"); > 279 | await page.waitForSelector(".test-select-main-menu"); | ^ 280 | }; 281 | // LOGIN_FUNCTION_END 282 | at new WaitTask (node_modules/puppeteer/lib/DOMWorld.js:407:34) at DOMWorld._waitForSelectorOrXPath (node_modules/puppeteer/lib/DOMWorld.js:332:26) at DOMWorld.waitForSelector (node_modules/puppeteer/lib/DOMWorld.js:315:21) at Frame.waitForSelector (node_modules/puppeteer/lib/FrameManager.js:384:51) at Frame.<anonymous> (node_modules/puppeteer/lib/helper.js:117:27) at Page.waitForSelector (node_modules/puppeteer/lib/Page.js:867:33) at login (src/index.test.ts:279:14) at Object.<anonymous> (src/index.test.ts:471:3) Test Suites: 1 failed, 1 passed, 2 total Tests: 4 failed, 3 passed, 7 total Snapshots: 0 total Time: 155.201s Ran all test suites. 12:45:26.673 [program-resource-pool-6] INFO c.d.g.a.server.akka.ServerAdapter - SERVER_IS_SHUTTING_DOWN(1,0): Server is shutting down, context: {err-context: "{location=ServerAdapter.scala:59}"} 12:45:26.675 [program-resource-pool-6] INFO c.d.g.a.server.akka.ServerAdapter - SERVER_IS_SHUTTING_DOWN(1,0): Server is shutting down, context: {err-context: "{location=ServerAdapter.scala:59}"} 12:45:26.676 [program-resource-pool-6] INFO c.d.g.a.server.akka.ServerAdapter - SERVER_IS_SHUTTING_DOWN(1,0): Server is shutting down, context: {err-context: "{location=ServerAdapter.scala:59}"} 12:45:26.677 [program-resource-pool-6] INFO c.d.g.a.server.akka.ServerAdapter - SERVER_IS_SHUTTING_DOWN(1,0): Server is shutting down, context: {err-context: "{location=ServerAdapter.scala:59}"} [WARN] [03/24/2022 12:45:26.723] [program-resource-pool-6] [CoordinatedShutdown(akka://sandbox-on-x)] Could not addJvmShutdownHook, due to: Shutdown in progress [INFO] [03/24/2022 12:45:26.724] [program-resource-pool-6] [CoordinatedShutdown(akka://sandbox-on-x)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 24-03-2022 12:45:26.630 [shutdownHook1] INFO com.daml.http.HttpService - Stopping server..., context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0"} 12:45:26.648 [program-resource-pool-6] INFO c.d.g.a.server.akka.ServerAdapter - SERVER_IS_SHUTTING_DOWN(1,0): Server is shutting down, context: {err-context: "{location=ServerAdapter.scala:59}"} FAIL (278.22s) Create app from template (0.04s) Patch the application code with messaging feature Extract codegen output (0.04s) Set up libraries and workspaces Install Jest, Puppeteer and other dependencies (120.36s) Run Puppeteer end-to-end tests (157.77s) callProcess: /home/aj/.cache/bazel/_bazel_aj/c437a451a7a277d35b539da616255ac8/sandbox/linux-sandbox/2357/execroot/compatibility/bazel-out/k8-opt/bin/create-daml-app-1.9.0-platform-0.0.0.runfiles/compatibility/external/node_nix/node_nix/lib/node_modules/npm/bin/npm-cli.js "run" "test" "--ci" "--all" "--scripts-prepend-node-path" (exit 1): failed 1 out of 1 tests failed (278.22s) ================================================================================ ``` * Revert "Skip create-daml-app compat tests pre 2.0.0" This reverts commit 762e61941f164e5deb10fc752f391b69003377cf. * Revert "Expose node in PATH in create-daml-app test" This reverts commit 8541b39d0f1b36c63366b90f97a69f7d950c92c5. * Revert "Update Node version in compatibility" This reverts commit 389639402d19c3ffa714e22bc61e042f82070b74. * Keep using NodeJS 14 for the compatibility tests NodeJS 16 is needed for M1 compatibility, but it breaks the compatibility tests. So, for now, we stick to the older version for the compatibility tests. Co-authored-by: Andreas Herrmann <andreas.herrmann@tweag.io>
2022-04-07 18:50:53 +03:00
nixpkgs_go_configure(
nix_file = "//nix:bazel-go-toolchain.nix",
nix_file_deps = common_nix_file_deps,
repositories = dev_env_nix_repos,
Darwin M1 Support (#13401) * Update rules_nixpkgs and rules_sh rules_sh was an implicit dependency before. We are now depending on it explicitly to be able to control the version. * Patch rules_nixpkgs to detect ARM M1 This should be upstreamed. * Patch rules_haskell for ARM M1 compatibility * Detect MacOS M1 OS and architecture. * Consistently use the CC toolchains' linker. This is important when we switch to GHC with LLVM. * Detect Darwin M1 in os_info.bzl * Use the new rules_nixpkgs host platform The old flags hard-coded the CPU architecture. The new platform automatically inherits from Bazel's builtin host platform. * Import the Go toolchain from rules_nixpkgs * Update nodejs to version 16 * Disable Haddock on lsp-types We're also disabling it on the other haskell_cabal_library instances, and it is causing build errors on M1. ``` Running Haddock on library for lsp-types-1.4.0.0.. creating /private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc/html/lsp-types creating /private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc/html creating /private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc creating /private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc/html creating /private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc/html/lsp-types /private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc/html/lsp-types/haddock-response42424-1.txt contents: <<< --prologue=/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc/html/lsp-types/haddock-prologue42424-0.txt --dump-interface=/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc/html/lsp-types/lsp-types.haddock --package-name=lsp-types --package-version=1.4.0.0 --since-qual=external --hide=Language.LSP.Types.CallHierarchy --hide=Language.LSP.Types.Cancellation --hide=Language.LSP.Types.ClientCapabilities --hide=Language.LSP.Types.CodeAction --hide=Language.LSP.Types.CodeLens --hide=Language.LSP.Types.Command --hide=Language.LSP.Types.Common --hide=Language.LSP.Types.Completion --hide=Language.LSP.Types.Configuration --hide=Language.LSP.Types.Declaration --hide=Language.LSP.Types.Definition --hide=Language.LSP.Types.Diagnostic --hide=Language.LSP.Types.DocumentColor --hide=Language.LSP.Types.DocumentFilter --hide=Language.LSP.Types.DocumentHighlight --hide=Language.LSP.Types.DocumentLink --hide=Language.LSP.Types.DocumentSymbol --hide=Language.LSP.Types.FoldingRange --hide=Language.LSP.Types.Formatting --hide=Language.LSP.Types.Hover --hide=Language.LSP.Types.Implementation --hide=Language.LSP.Types.Initialize --hide=Language.LSP.Types.Location --hide=Language.LSP.Types.LspId --hide=Language.LSP.Types.MarkupContent --hide=Language.LSP.Types.Method --hide=Language.LSP.Types.Message --hide=Language.LSP.Types.Parsing --hide=Language.LSP.Types.Progress --hide=Language.LSP.Types.Registration --hide=Language.LSP.Types.References --hide=Language.LSP.Types.Rename --hide=Language.LSP.Types.SelectionRange --hide=Language.LSP.Types.ServerCapabilities --hide=Language.LSP.Types.SemanticTokens --hide=Language.LSP.Types.SignatureHelp --hide=Language.LSP.Types.StaticRegistrationOptions --hide=Language.LSP.Types.TextDocument --hide=Language.LSP.Types.TypeDefinition --hide=Language.LSP.Types.Uri --hide=Language.LSP.Types.Utils --hide=Language.LSP.Types.Window --hide=Language.LSP.Types.WatchedFiles --hide=Language.LSP.Types.WorkspaceEdit --hide=Language.LSP.Types.WorkspaceFolders --hide=Language.LSP.Types.WorkspaceSymbol --html --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/array-0.5.4.0,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/array-0.5.4.0/array.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/base-4.15.1.0,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/base-4.15.1.0/base.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/binary-0.8.8.0,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/binary-0.8.8.0/binary.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/bytestring-0.10.12.1,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/bytestring-0.10.12.1/bytestring.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/containers-0.6.4.1,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/containers-0.6.4.1/containers.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/deepseq-1.4.5.0,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/deepseq-1.4.5.0/deepseq.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/directory-1.3.6.2,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/directory-1.3.6.2/directory.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/exceptions-0.10.4,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/exceptions-0.10.4/exceptions.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/filepath-1.4.2.1,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/filepath-1.4.2.1/filepath.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/ghc-bignum-1.1,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/ghc-bignum-1.1/ghc-bignum.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/ghc-boot-th-9.0.2,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/ghc-boot-th-9.0.2/ghc-boot-th.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/ghc-prim-0.7.0,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/ghc-prim-0.7.0/ghc-prim.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/integer-gmp-1.1,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/integer-gmp-1.1/integer-gmp.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/mtl-2.2.2,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/mtl-2.2.2/mtl.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/parsec-3.1.14.0,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/parsec-3.1.14.0/parsec.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/pretty-1.1.3.6,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/pretty-1.1.3.6/pretty.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/stm-2.5.0.0,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/stm-2.5.0.0/stm.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/template-haskell-2.17.0.0,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/template-haskell-2.17.0.0/template-haskell.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/text-1.2.5.0,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/text-1.2.5.0/text.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/time-1.9.3,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/time-1.9.3/time.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/transformers-0.5.6.2,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/transformers-0.5.6.2/transformers.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/unix-2.7.2.2,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/unix-2.7.2.2/unix.haddock --odir=/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc/html/lsp-types/ --title=lsp-types-1.4.0.0:\ Haskell\ library\ for\ the\ Microsoft\ Language\ Server\ Protocol,\ data\ types --optghc=-fbuilding-cabal-package --optghc=-O --optghc=-outputdir --optghc=../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build --optghc=-odir --optghc=../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build/tmp-42424 --optghc=-hidir --optghc=../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build/tmp-42424 --optghc=-stubdir --optghc=../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build/tmp-42424 --optghc=-i --optghc=-i../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build --optghc=-isrc --optghc=-i../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build/autogen --optghc=-i../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build/global-autogen --optghc=-I../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build/autogen --optghc=-I../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build/global-autogen --optghc=-I../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build --optghc=-optP-D__HADDOCK_VERSION__=2251 --optghc=-optP-include --optghc=-optP../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build/autogen/cabal_macros.h --optghc=-this-unit-id --optghc=lsp-types-1.4.0.0 --optghc=-hide-all-packages --optghc=-Wmissing-home-modules --optghc=-no-user-package-db --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/Diff-0.4.1/_install/Diff-0.4.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/base-orphans-0.8.6/_install/base-orphans-0.8.6.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/OneTuple-0.3.1/_install/OneTuple-0.3.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/splitmix-0.1.0.4/_install/splitmix-0.1.0.4.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/random-1.2.1/_install/random-1.2.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/QuickCheck-2.14.2/_install/QuickCheck-2.14.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/hashable-1.3.5.0/_install/hashable-1.3.5.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/integer-logarithms-1.0.3.1/_install/integer-logarithms-1.0.3.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/primitive-0.7.3.0/_install/primitive-0.7.3.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/scientific-0.3.7.0/_install/scientific-0.3.7.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/attoparsec-0.14.4/_install/attoparsec-0.14.4-attoparsec-internal.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/attoparsec-0.14.4/_install/attoparsec-0.14.4.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/base-compat-0.11.2/_install/base-compat-0.11.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/base-compat-batteries-0.11.2/_install/base-compat-batteries-0.11.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/data-fix-0.3.2/_install/data-fix-0.3.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/dlist-1.0/_install/dlist-1.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/indexed-traversable-0.1.2/_install/indexed-traversable-0.1.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/tagged-0.8.6.1/_install/tagged-0.8.6.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/unordered-containers-0.2.16.0/_install/unordered-containers-0.2.16.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/vector-0.12.3.1/_install/vector-0.12.3.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/indexed-traversable-instances-0.1.1/_install/indexed-traversable-instances-0.1.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/distributive-0.6.2.1/_install/distributive-0.6.2.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/transformers-compat-0.6.6/_install/transformers-compat-0.6.6.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/comonad-5.0.8/_install/comonad-5.0.8.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/th-abstraction-0.4.3.0/_install/th-abstraction-0.4.3.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/bifunctors-5.5.11/_install/bifunctors-5.5.11.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/StateVar-1.2.2/_install/StateVar-1.2.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/contravariant-1.5.5/_install/contravariant-1.5.5.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/semigroupoids-5.3.7/_install/semigroupoids-5.3.7.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/assoc-1.0.2/_install/assoc-1.0.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/these-1.1.1.1/_install/these-1.1.1.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/semialign-1.2.0.1/_install/semialign-1.2.0.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/strict-0.4.0.1/_install/strict-0.4.0.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/text-short-0.1.5/_install/text-short-0.1.5.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/time-compat-1.9.6.1/_install/time-compat-1.9.6.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/uuid-types-1.0.5/_install/uuid-types-1.0.5.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/witherable-0.4.2/_install/witherable-0.4.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/aeson-2.0.3.0/_install/aeson-2.0.3.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/data-default-class-0.1.2.0/_install/data-default-class-0.1.2.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/data-default-instances-containers-0.0.1/_install/data-default-instances-containers-0.0.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/data-default-instances-dlist-0.0.1/_install/data-default-instances-dlist-0.0.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/old-locale-1.0.0.7/_install/old-locale-1.0.0.7.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/data-default-instances-old-locale-0.0.1/_install/data-default-instances-old-locale-0.0.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/data-default-0.7.1.1/_install/data-default-0.7.1.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/network-3.1.2.7/_install/network-3.1.2.7.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/network-bsd-2.8.1.0/_install/network-bsd-2.8.1.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/hslogger-1.3.1.0/_install/hslogger-1.3.1.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/call-stack-0.4.0/_install/call-stack-0.4.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/profunctors-5.6.2/_install/profunctors-5.6.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/transformers-base-0.4.6/_install/transformers-base-0.4.6.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/free-5.1.7/_install/free-5.1.7.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/semigroups-0.19.2/_install/semigroups-0.19.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/void-0.7.3/_install/void-0.7.3.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/adjunctions-4.4/_install/adjunctions-4.4.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/invariant-0.5.5/_install/invariant-0.5.5.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/kan-extensions-5.2.3/_install/kan-extensions-5.2.3.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/parallel-3.2.2.0/_install/parallel-3.2.2.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/reflection-2.1.6/_install/reflection-2.1.6.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/lens-5.0.1/_install/lens-5.0.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/semirings-0.6/_install/semirings-0.6.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/mod-0.1.2.2/_install/mod-0.1.2.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/th-compat-0.1.3/_install/th-compat-0.1.3.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/network-uri-2.6.4.1/_install/network-uri-2.6.4.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/rope-utf16-splay-0.3.2.0/_install/rope-utf16-splay-0.3.2.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/some-1.0.3/_install/some-1.0.3.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/temporary-1.3/_install/temporary-1.3.conf.d --optghc=-package-db --optghc=/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/_install/lsp-types-1.4.0.0.conf.d --optghc=-package-db --optghc=/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/package.conf.inplace --optghc=-package-id --optghc=Diff-0.4.1 --optghc=-package-id --optghc=aeson-2.0.3.0 --optghc=-package-id --optghc=base-4.15.1.0 --optghc=-package-id --optghc=binary-0.8.8.0 --optghc=-package-id --optghc=bytestring-0.10.12.1 --optghc=-package-id --optghc=containers-0.6.4.1 --optghc=-package-id --optghc=data-default-0.7.1.1 --optghc=-package-id --optghc=deepseq-1.4.5.0 --optghc=-package-id --optghc=directory-1.3.6.2 --optghc=-package-id --optghc=dlist-1.0 --optghc=-package-id --optghc=filepath-1.4.2.1 --optghc=-package-id --optghc=hashable-1.3.5.0 --optghc=-package-id --optghc=hslogger-1.3.1.0 --optghc=-package-id --optghc=lens-5.0.1 --optghc=-package-id --optghc=mod-0.1.2.2 --optghc=-package-id --optghc=mtl-2.2.2 --optghc=-package-id --optghc=network-uri-2.6.4.1 --optghc=-package-id --optghc=rope-utf16-splay-0.3.2.0 --optghc=-package-id --optghc=scientific-0.3.7.0 --optghc=-package-id --optghc=some-1.0.3 --optghc=-package-id --optghc=template-haskell-2.17.0.0 --optghc=-package-id --optghc=temporary-1.3 --optghc=-package-id --optghc=text-1.2.5.0 --optghc=-package-id --optghc=unordered-containers-0.2.16.0 --optghc=-XHaskell2010 --optghc=-XStrictData --optghc=-Wall -B/nix/store/z8577sg7xny6fxhndrrrkpvzhn53w9vc-ghc-native-bignum-9.0.2/lib/ghc-9.0.2 src/Language/LSP/Types.hs src/Language/LSP/Types/Capabilities.hs src/Language/LSP/Types/Lens.hs src/Language/LSP/Types/SMethodMap.hs src/Language/LSP/VFS.hs src/Data/IxMap.hs src/Language/LSP/Types/CallHierarchy.hs src/Language/LSP/Types/Cancellation.hs src/Language/LSP/Types/ClientCapabilities.hs src/Language/LSP/Types/CodeAction.hs src/Language/LSP/Types/CodeLens.hs src/Language/LSP/Types/Command.hs src/Language/LSP/Types/Common.hs src/Language/LSP/Types/Completion.hs src/Language/LSP/Types/Configuration.hs src/Language/LSP/Types/Declaration.hs src/Language/LSP/Types/Definition.hs src/Language/LSP/Types/Diagnostic.hs src/Language/LSP/Types/DocumentColor.hs src/Language/LSP/Types/DocumentFilter.hs src/Language/LSP/Types/DocumentHighlight.hs src/Language/LSP/Types/DocumentLink.hs src/Language/LSP/Types/DocumentSymbol.hs src/Language/LSP/Types/FoldingRange.hs src/Language/LSP/Types/Formatting.hs src/Language/LSP/Types/Hover.hs src/Language/LSP/Types/Implementation.hs src/Language/LSP/Types/Initialize.hs src/Language/LSP/Types/Location.hs src/Language/LSP/Types/LspId.hs src/Language/LSP/Types/MarkupContent.hs src/Language/LSP/Types/Method.hs src/Language/LSP/Types/Message.hs src/Language/LSP/Types/Parsing.hs src/Language/LSP/Types/Progress.hs src/Language/LSP/Types/Registration.hs src/Language/LSP/Types/References.hs src/Language/LSP/Types/Rename.hs src/Language/LSP/Types/SelectionRange.hs src/Language/LSP/Types/ServerCapabilities.hs src/Language/LSP/Types/SemanticTokens.hs src/Language/LSP/Types/SignatureHelp.hs src/Language/LSP/Types/StaticRegistrationOptions.hs src/Language/LSP/Types/TextDocument.hs src/Language/LSP/Types/TypeDefinition.hs src/Language/LSP/Types/Uri.hs src/Language/LSP/Types/Utils.hs src/Language/LSP/Types/Window.hs src/Language/LSP/Types/WatchedFiles.hs src/Language/LSP/Types/WorkspaceEdit.hs src/Language/LSP/Types/WorkspaceFolders.hs src/Language/LSP/Types/WorkspaceSymbol.hs >>> /private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc/html/lsp-types/haddock-response42424-1.txt Environment: [("CABAL_VERBOSE","True"),("CC_WRAPPER_CC_PATH","external/local_config_cc/cc_wrapper.sh"),("CC_WRAPPER_CPU","darwin_arm64"),("CC_WRAPPER_PLATFORM","darwin"),("CODESIGN_ALLOCATE","/nix/store/3ibr5yy13sxl2vb5rig8fivj85sqcvf2-cctools-port-949.0.1/bin/codesign_allocate"),("HOME","/var/empty"),("LANG","C.UTF-8"),("LC_CTYPE","UTF-8"),("LD_LIBRARY_PATH",""),("LIBRARY_PATH",""),("PATH","/nix/store/xqbgx1y5xh2k13c6nizlprkp0j8mcw6w-clang-wrapper-12.0.1/bin:/nix/store/p90xw78bb3xsxg5v7k31qj5hpwm2pngp-llvm-12.0.1/bin:/nix/store/5havjxkv59cprx4czgi1lwnvv7y22dzi-posix-toolchain/bin"),("PWD","/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/external/lsp-types"),("PYTHONPATH","/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/runghc.runfiles:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/runghc.runfiles/:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/runghc.runfiles/bazel_tools:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/runghc.runfiles/com_github_digital_asset_daml:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/runghc.runfiles/local_config_cc:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/runghc.runfiles/rules_haskell:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/runghc.runfiles/rules_haskell_ghc_nixpkgs:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/runghc.runfiles/rules_python:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/cabal_wrapper.runfiles:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/cabal_wrapper.runfiles/:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/cabal_wrapper.runfiles/bazel_tools:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/cabal_wrapper.runfiles/com_github_digital_asset_daml:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/cabal_wrapper.runfiles/rules_haskell"),("RULES_HASKELL_DOCDIR_PATH","/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/base-4.15.1.0"),("RULES_HASKELL_EXEC_ROOT","/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml"),("RULES_HASKELL_GHC_PATH","/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/external/rules_haskell_ghc_nixpkgs/bin/ghc"),("RULES_HASKELL_GHC_PKG_PATH","/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/external/rules_haskell_ghc_nixpkgs/bin/ghc-pkg"),("RULES_HASKELL_LIBDIR_PATH","/nix/store/z8577sg7xny6fxhndrrrkpvzhn53w9vc-ghc-native-bignum-9.0.2/lib/ghc-9.0.2"),("RUNFILES_DIR","/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/runghc.runfiles"),("SDKROOT","macosx"),("SHLVL","0"),("TEMP","/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/tmp"),("TMP","/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/tmp"),("TMPDIR","/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/tmp"),("__CF_USER_TEXT_ENCODING","0x1F5:0x0:0x0")] /private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/external/rules_haskell_ghc_nixpkgs/bin/haddock '@/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc/html/lsp-types/haddock-response42424-1.txt' 0% ( 0 / 7) in 'Data.IxMap' Missing documentation for: Module header IxOrd (src/Data/IxMap.hs:17) IxMap (src/Data/IxMap.hs:21) emptyIxMap (src/Data/IxMap.hs:23) insertIxMap (src/Data/IxMap.hs:26) lookupIxMap (src/Data/IxMap.hs:31) pickFromIxMap (src/Data/IxMap.hs:37) `cc' failed in phase `Linker'. (Exit code: 134) /private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/external/rules_haskell_ghc_nixpkgs/bin/haddock returned ExitFailure 1 Target //compiler/damlc:damlc failed to build ERROR: /Users/builder/daml-andreas/compiler/damlc/BUILD.bazel:38:9 Middleman _middlemen/compiler_Sdamlc_Sdamlc-runfiles failed: (Exit 1): cabal_wrapper failed: error executing command (cd /private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml && \ exec env - \ CABAL_VERBOSE=True \ CC_WRAPPER_CC_PATH=external/local_config_cc/cc_wrapper.sh \ CC_WRAPPER_CPU=darwin_arm64 \ CC_WRAPPER_PLATFORM=darwin \ LANG=C.UTF-8 \ PATH=/nix/store/5havjxkv59cprx4czgi1lwnvv7y22dzi-posix-toolchain/bin \ RULES_HASKELL_DOCDIR_PATH=/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/base-4.15.1.0 \ RULES_HASKELL_GHC_PATH=external/rules_haskell_ghc_nixpkgs/bin/ghc \ RULES_HASKELL_GHC_PKG_PATH=external/rules_haskell_ghc_nixpkgs/bin/ghc-pkg \ RULES_HASKELL_LIBDIR_PATH=/nix/store/z8577sg7xny6fxhndrrrkpvzhn53w9vc-ghc-native-bignum-9.0.2/lib/ghc-9.0.2 \ SDKROOT=macosx \ bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/cabal_wrapper bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types_cabal_wrapper_args.json) Execution platform: @io_tweag_rules_nixpkgs//nixpkgs/platforms:host Use --sandbox_debug to see verbose messages from the sandbox INFO: Elapsed time: 344.702s, Critical Path: 329.09s INFO: 49 processes: 14 internal, 35 processwrapper-sandbox. FAILED: Build did NOT complete successfully FAILED: Build did NOT complete successfully ``` * Disable create-daml-app tests on MacOS M1 These fail to build because puppeteer fails to install Chromium on M1. See https://github.com/digital-asset/daml/pull/13250. * Resign binaries after patching in package-app Otherwise they fail to execute on MacOS Monterey on M1. They symptom is that executing or otherwise loading the binary (e.g. into lldb) fails with exit code -9 without further indications. * Use GHC with LLVM on MacOS M1 The native backend only supports M1 starting from GHC 9.2. However, we are still on GHC 9.0. We wrap GHC to ensure that the LLVM toolchain and the codesign tool are present in the environment and point to the correct versions provided by nixpkgs. * Update the CC toolchain for MacOS M1 compatibility Use nixpkgs `nix-support/cc-cflags` file to provide default flags instead of using `makeWrapper`. On M1 there was an issue where passing `-l` flags or `-isystem` to `cc -v` would cause the following errors: ``` lang version 11.1.0 Target: aarch64-apple-darwin Thread model: posix InstalledDir: /nix/store/v6iidz79b425hli98g45xq9iblapn1zy-clang-11.1.0/bin "/nix/store/b82mvqzvdx5mh1n9n77v8h5vk9fgqrxj-clang-wrapper-11.1.0/bin/ld" -demangle -lto_library /nix/store/v6iidz79b425hli98g45xq9iblapn1zy-clang-11.1.0/lib/libLTO.dylib -dynamic -arch arm64 -platform_version macos 11.0.0 0.0.0 -o a.out -L/nix/store/hc8a94w57ppwmn2gscm56pvlwi3zhyh1-libSystem-11.0.0/lib -L/nix/store/6f5ygwif1r523jj2qfwfiwix0fga4rgp-clang-11.1.0-lib/lib -L/nix/store/7pkxnbhpi0c10w18rirj8zxz3wv571nj-libcxx-11.1.0/lib -no_uuid -arch arm64 -lSystem /nix/store/b82mvqzvdx5mh1n9n77v8h5vk9fgqrxj-clang-wrapper-11.1.0/resource-root/lib/darwin/libclang_rt.osx.a Undefined symbols for architecture arm64: "_main", referenced from: implicit entry/start for main executable ld: symbol(s) not found for architecture arm64 ``` This also includes additional standard library search paths: `-isystem ${llvmPackages_12.libcxx.dev}/include/c++/v1` alone is not enough because some headers in it are [wrapper headers](https://gcc.gnu.org/onlinedocs/cpp/Wrapper-Headers.html) that use `include_next` directives. For these to resolve we need to add the compiler's builtin headers to the search path as well. This also sets `-Wno-elaborated-enum-base` to avoid build failures of absl on MacOS Monterey M1. ``` In file included from external/com_google_absl/absl/time/internal/cctz/src/time_zone_lookup.cc:26: In file included from /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFTimeZone.h:13: /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:474:9: error: non-defining declaration of enumeration with a fixed underlying type is only permitted as a standalone declaration; missing list of enumerators? [-Welaborated-enum-base] typedef CF_ENUM(CFIndex, CFComparisonResult) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFAvailability.h:169:55: note: expanded from macro 'CF_ENUM' \#define CF_ENUM(...) __CF_ENUM_GET_MACRO(__VA_ARGS__, __CF_NAMED_ENUM, __CF_ANON_ENUM, )(__VA_ARGS__) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFAvailability.h:134:48: note: expanded from macro '__CF_ENUM_GET_MACRO' \#define __CF_ENUM_GET_MACRO(_1, _2, NAME, ...) NAME ^ /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFAvailability.h:142:75: note: expanded from macro '__CF_NAMED_ENUM' \#define __CF_NAMED_ENUM(_type, _name) enum __CF_ENUM_ATTRIBUTES _name : _type _name; enum _name : _type ^~~~~~~ In file included from external/com_google_absl/absl/time/internal/cctz/src/time_zone_lookup.cc:26: In file included from /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFTimeZone.h:18: In file included from /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFString.h:17: /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFCharacterSet.h:62:9: error: non-defining declaration of enumeration with a fixed underlying type is only permitted as a standalone decla ration; missing list of enumerators? [-Welaborated-enum-base] typedef CF_ENUM(CFIndex, CFCharacterSetPredefinedSet) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFAvailability.h:169:55: note: expanded from macro 'CF_ENUM' \#define CF_ENUM(...) __CF_ENUM_GET_MACRO(__VA_ARGS__, __CF_NAMED_ENUM, __CF_ANON_ENUM, )(__VA_ARGS__) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFAvailability.h:134:48: note: expanded from macro '__CF_ENUM_GET_MACRO' \#define __CF_ENUM_GET_MACRO(_1, _2, NAME, ...) NAME ^ /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFAvailability.h:142:75: note: expanded from macro '__CF_NAMED_ENUM' \#define __CF_NAMED_ENUM(_type, _name) enum __CF_ENUM_ATTRIBUTES _name : _type _name; enum _name : _type ^~~~~~~ ... ``` * Link libc++ in fat_cc_library on MacOS * Build on native ARM M1 instead of Rosetta changelog_begin changelog_end * Drop unused ghcLLVMWrapper * Select ghcWithLLVM within Nix If we generally expose ghcWithLLVM from Nix and then select on the Bazel, then we'd need to filter that derivation out from the Nix and dev-tool build step on CI. * fmt * Update Node version in compatibility * Expose node in PATH in create-daml-app test It seems that the node update made the `--scripts-prepend-node-path` flag less effective than it was before. Without explicitly adding `node` to `PATH` the install step fails with the following error: ``` Failure: Command "CreateProcess {cmdspec = RawCommand "/home/aj/.cache/bazel/_bazel_aj/c437a451a7a277d35b539da616255ac8/sandbox/linux-sandbox/1435/execroot/compatibility/bazel-out/k8-opt/bin/create-daml-app-0.0.0-platform-2.0.0.runfiles/compatibility/external/node_nix/node_nix/lib/node_modules/npm/bin/npm-cli.js" ["install","--scripts-prepend-node-path"], cwd = Nothing, env = Nothing, std_in = Inherit, std_out = Inherit, std_err = Inherit, close_fds = False, create_group = False, delegate_ctlc = False, detach_console = False, create_new_console = False, new_session = False, child_group = Nothing, child_user = Nothing, use_process_jobs = False}" exited with ExitFailure 127 npm ERR! code 127 npm ERR! path /tmp/extra-dir-7515936101075/create-daml-app/ui/node_modules/puppeteer npm ERR! command failed npm ERR! command sh -c node install.js npm ERR! sh: line 1: node: command not found npm ERR! A complete log of this run can be found in: npm ERR! /tmp/extra-dir-7515936101074/_logs/2022-03-24T10_18_15_227Z-debug.log ``` * Skip create-daml-app compat tests pre 2.0.0 changelog_begin changelog_end In these tests the install step fails with the following error due to mismatch babel-jest dependency versions: ``` ==================== Test output for //:create-daml-app-1.8.1-platform-0.0.0: Create Daml App tests Getting Started Guide: WARNING: Specifying the template via daml new create-daml-app create-daml-app is deprecated. The recommended way of specifying the template is daml new create-daml-app --template create-daml-app Created a new project in "create-daml-app" based on the template "create-daml-app". > create-daml-app@0.1.0 test > react-scripts test --testURL='http://localhost:7575' There might be a problem with the project dependency tree. It is likely not a bug in Create React App, but something you need to fix locally. The react-scripts package provided by Create React App requires a dependency: "babel-jest": "^24.9.0" Don't try to install it manually: your package manager does it automatically. However, a different version of babel-jest was detected higher up in the tree: /tmp/extra-dir-3298351016846/create-daml-app/ui/node_modules/babel-jest (version: 25.5.1) Manually installing incompatible versions is known to cause hard-to-debug issues. If you would prefer to ignore this check, add SKIP_PREFLIGHT_CHECK=true to an .env file in your project. That will permanently disable this message but you might encounter other issues. To fix the dependency tree, try following the steps below in the exact order: 1. Delete package-lock.json (not package.json!) and/or yarn.lock in your project folder. 2. Delete node_modules in your project folder. 3. Remove "babel-jest" from dependencies and/or devDependencies in the package.json file in your project folder. 4. Run npm install or yarn, depending on the package manager you use. In most cases, this should be enough to fix the problem. If this has not helped, there are a few other things you can try: 5. If you used npm, install yarn (http://yarnpkg.com/) and repeat the above steps with it instead. This may help because npm has known issues with package hoisting which may get resolved in future versions. 6. Check if /tmp/extra-dir-3298351016846/create-daml-app/ui/node_modules/babel-jest is outside your project directory. For example, you might have accidentally installed something in your home folder. 7. Try running npm ls babel-jest in your project folder. This will tell you which other package (apart from the expected react-scripts) installed babel-jest. If nothing else helps, add SKIP_PREFLIGHT_CHECK=true to an .env file in your project. That would permanently disable this preflight check in case you want to proceed anyway. P.S. We know this message is long but please read the steps above :-) We hope you find them helpful! FAIL (125.62s) Create app from template (0.05s) Patch the application code with messaging feature Extract codegen output (0.06s) Set up libraries and workspaces (0.01s) Install Jest, Puppeteer and other dependencies (123.95s) Run Puppeteer end-to-end tests (1.54s) callProcess: /home/aj/.cache/bazel/_bazel_aj/c437a451a7a277d35b539da616255ac8/sandbox/linux-sandbox/2351/execroot/compatibility/bazel-out/k8-opt/bin/create-daml-app-1.8.1-platform-0.0.0.runfiles/compatibility/external/node_nix/node_nix/lib/node_modules/npm/bin/npm-cli.js "run" "test" "--ci" "--all" "--scripts-prepend-node-path" (exit 1): failed 1 out of 1 tests failed (125.62s) ================================================================================ ``` Applying the suggested `SKIP_PREFLIGHT_CHECK=true` fix leads to the following failure instead: ``` ==================== Test output for //:create-daml-app-1.9.0-platform-0.0.0: Create Daml App tests Getting Started Guide: WARNING: Specifying the template via daml new create-daml-app create-daml-app is deprecated. The recommended way of specifying the template is daml new create-daml-app --template create-daml-app Created a new project in "create-daml-app" based on the template "create-daml-app". > create-daml-app@0.1.0 test > react-scripts test --testURL='http://localhost:7575' PASS src/components/App.test.tsx ● Console console.debug daml-types/index.js:98 Registered template bbfcd72618817ef8c99eb663e1f80375835bd51efebdc69b55884ad7afb3a0ef:User:Message. console.debug daml-types/index.js:98 Registered template bbfcd72618817ef8c99eb663e1f80375835bd51efebdc69b55884ad7afb3a0ef:User:User. 12:42:55.745 [program-resource-pool-4] INFO c.d.l.sandbox.AkkaSubmissionsBridge - Instantiated Akka submissions bridge., context: {participantId: "sandbox"} 12:42:57.897 [program-resource-pool-3] INFO c.d.ledger.sandbox.SandboxOnXRunner - Initialized sandbox-on-x with conflict checking ledger bridge, version 0.0.0, run-mode = combined participant, index DB backend = h2database, participant-id = sandbox, ledger-id = create-daml-app-sandbox, port = 0, time mode = wall-clock time, allowed language versions = [min = LanguageVersion(V1,LanguageMinorVersion(6)), max = LanguageVersion(V1,LanguageMinorVersion(14))], authentication = all unauthenticated allowed, contract ids seeding = strong 24-03-2022 12:43:02.413 [main] INFO com.daml.http.Main - Config(ledgerHost=localhost, ledgerPort=34937, address=127.0.0.1, httpPort=7575, portFile=Some(json-api.port), packageReloadInterval=5 seconds, packageMaxInboundMessageSize=None, maxInboundMessageSize=4194304, tlsConfig=TlsConfiguration(false,None,None,None,None,REQUIRE,false,None), jdbcConfig=None, staticContentConfig=None, allowNonHttps=true, wsConfig=None, nonRepudiationCertificateFile=None, nonRepudiationPrivateKeyFile=None, nonRepudiationPrivateKeyAlgorithm=None, surrogateTpIdCacheMaxEntries=None), context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0"} 24-03-2022 12:43:02.745 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO akka.event.slf4j.Slf4jLogger - Slf4jLogger started 24-03-2022 12:43:03.041 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO com.daml.http.HttpService - HTTP Server pre-startup, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0"} 24-03-2022 12:43:03.251 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO com.daml.http.LedgerClient - Attempting to connect to the ledger localhost:34937 (600 attempts), context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0"} 24-03-2022 12:43:03.594 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO com.daml.http.LedgerClient - Attempt 1/600 succeeded!, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0"} 24-03-2022 12:43:03.596 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO com.daml.http.LedgerClient - Attempting to connect to the ledger localhost:34937 (600 attempts), context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0"} 24-03-2022 12:43:03.600 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO com.daml.http.LedgerClient - Attempt 1/600 succeeded!, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0"} 24-03-2022 12:43:03.601 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO com.daml.http.HttpService - contractDao: None, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0"} 24-03-2022 12:43:04.132 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO com.daml.http.Main - Started server: (ServerBinding(/127.0.0.1:7575),None), context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0"} 24-03-2022 12:43:05.280 [http-json-ledger-api-akka.actor.default-dispatcher-13] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "2ab72d48-cdef-4e00-ac17-0afda5084008"} 24-03-2022 12:43:05.791 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "2ab72d48-cdef-4e00-ac17-0afda5084008"} > create-daml-app@0.1.0 start > react-scripts start [HPM] Proxy created: function (pathname, req) { // Proxy requests to the http json api when in development const proxied = pathname.match("^/v1") && process.env.NODE_ENV === "development"; if (proxied) { console.log( `Request with path ${pathname} proxied from host ${req.headers.host} to host ${httpJsonDevUrl}` ); } return proxied; } -> http://localhost:undefined ℹ 「wds」: Project is running at http://192.168.1.114/ ℹ 「wds」: webpack output is served from ℹ 「wds」: Content not from webpack is served from /tmp/extra-dir-99443589994656/create-daml-app/ui/public ℹ 「wds」: 404s will fallback to / Starting the development server... 24-03-2022 12:43:07.495 [http-json-ledger-api-akka.actor.default-dispatcher-9] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "ce0131fd-6a4c-4eb1-8c1b-6d68418fde82"} 24-03-2022 12:43:07.606 [http-json-ledger-api-akka.actor.default-dispatcher-17] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "ce0131fd-6a4c-4eb1-8c1b-6d68418fde82"} 24-03-2022 12:43:07.623 [http-json-ledger-api-akka.actor.default-dispatcher-9] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "a4d1c7b0-406c-4297-a690-66ba2b692f19"} 24-03-2022 12:43:07.725 [http-json-ledger-api-akka.actor.default-dispatcher-16] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "a4d1c7b0-406c-4297-a690-66ba2b692f19"} 24-03-2022 12:43:07.741 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "bf65790a-38bc-4686-aa15-607c3c24661a"} 24-03-2022 12:43:07.846 [http-json-ledger-api-akka.actor.default-dispatcher-9] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "bf65790a-38bc-4686-aa15-607c3c24661a"} 24-03-2022 12:43:07.865 [http-json-ledger-api-akka.actor.default-dispatcher-13] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "3ab06283-270c-4994-852c-92c8c3b34ecc"} 24-03-2022 12:43:07.964 [http-json-ledger-api-akka.actor.default-dispatcher-14] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "3ab06283-270c-4994-852c-92c8c3b34ecc"} 24-03-2022 12:43:07.980 [http-json-ledger-api-akka.actor.default-dispatcher-8] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "b332b66a-6231-4492-817d-a2c58c85d04c"} 24-03-2022 12:43:08.084 [http-json-ledger-api-akka.actor.default-dispatcher-18] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "b332b66a-6231-4492-817d-a2c58c85d04c"} 24-03-2022 12:43:08.098 [http-json-ledger-api-akka.actor.default-dispatcher-17] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "8c77ce53-52b5-4e0c-993a-3f810b54bfec"} 24-03-2022 12:43:08.204 [http-json-ledger-api-akka.actor.default-dispatcher-9] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "8c77ce53-52b5-4e0c-993a-3f810b54bfec"} 24-03-2022 12:43:08.220 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "8813ad99-79c7-42c4-9719-5bdcfeb5077e"} 24-03-2022 12:43:08.326 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "8813ad99-79c7-42c4-9719-5bdcfeb5077e"} 24-03-2022 12:43:08.340 [http-json-ledger-api-akka.actor.default-dispatcher-18] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "deeca40b-0f05-47c9-927d-f71b0fe08ccb"} 24-03-2022 12:43:08.444 [http-json-ledger-api-akka.actor.default-dispatcher-18] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "deeca40b-0f05-47c9-927d-f71b0fe08ccb"} 24-03-2022 12:43:08.462 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "9be53420-eb4d-4ee3-9915-4a4381c51bea"} 24-03-2022 12:43:08.563 [http-json-ledger-api-akka.actor.default-dispatcher-18] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "9be53420-eb4d-4ee3-9915-4a4381c51bea"} 24-03-2022 12:43:08.576 [http-json-ledger-api-akka.actor.default-dispatcher-18] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "8d64b076-ff2b-4f5b-8653-95e5e949cb34"} 24-03-2022 12:43:08.685 [http-json-ledger-api-akka.actor.default-dispatcher-14] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "8d64b076-ff2b-4f5b-8653-95e5e949cb34"} 24-03-2022 12:43:08.697 [http-json-ledger-api-akka.actor.default-dispatcher-14] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "87246c50-00b7-453e-9771-83f176a3cbfc"} 24-03-2022 12:43:08.802 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "87246c50-00b7-453e-9771-83f176a3cbfc"} 24-03-2022 12:43:08.818 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "65bb8c95-a253-4ac5-a297-1abeff6ce44c"} 24-03-2022 12:43:08.920 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "65bb8c95-a253-4ac5-a297-1abeff6ce44c"} 24-03-2022 12:43:08.930 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/query from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "d45c0c95-1576-480c-b048-f59919a1d139"} 24-03-2022 12:43:10.016 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.PackageService - new package IDs loaded: bfcd37bd6b84768e86e432f5f6c33e25d9e7724a9d42e33875ff74f6348e733f, 518032f41fd0175461b35ae0c9691e08b4aea55e62915f8360af2cc7a1f2ba6c, cc348d369011362a5190fe96dd1f0dfbc697fdfd10e382b9e9666f0da05961b7, f78511c39cc293d5ed72acf5a4a81411af75a435df4106c5e37823af6589040b, 6839a6d3d430c569b2425e9391717b44ca324b88ba621d597778811b2d05031d, 99a2705ed38c1c26cbb8fe7acf36bbf626668e167a33335de932599219e0a235, 76bf0fd12bd945762a01f8fc5bbcdfa4d0ff20f8762af490f8f41d6237c6524f, e22bce619ae24ca3b8e6519281cb5a33b64b3190cc763248b4c3f9ad5087a92c, d58cf9939847921b2aab78eaa7b427dc4c649d25e6bee3c749ace4c3f52f5c97, 6c2c0667393c5f92f1885163068cd31800d2264eb088eb6fc740e11241b2bf06, c1f1f00558799eec139fb4f4c76f95fb52fa1837a5dd29600baa1c8ed1bdccfd, 733e38d36a2759688a4b2c4cec69d48e7b55ecc8dedc8067b815926c917a182a, 057eed1fd48c238491b8ea06b9b5bf85a5d4c9275dd3f6183e0e6b01730cc2ba, 52af8c65ac2c4b3d61637558935d2b0a92369ec4da39978a29f90a5f738f3e14, d14e08374fc7197d6a0de468c968ae8ba3aadbf9315476fd39071831f5923662, e491352788e56ca4603acc411ffe1a49fefd76ed8b163af86cf5ee5f4c38645b, 40f452260bef3f29dede136108fc08a88d5a5250310281067087da6f0baddff7, 8a7806365bbd98d88b4c13832ebfa305f6abaeaf32cfa2b7dd25c4fa489b79fb, bbfcd72618817ef8c99eb663e1f80375835bd51efebdc69b55884ad7afb3a0ef, context: {ledger_id: "create-daml-app-sandbox", cmd: "GetActiveContractsRequest(OneAnd(TemplateId(Some(bbfcd72618817ef8c99eb663e1f80375835bd51efebdc69b55884ad7afb3a0ef),User,User),Set()),Map(),None)", request_id: "d45c0c95-1576-480c-b048-f59919a1d139", instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", application_id: "create-daml-app", read_as: "List()", act_as: "List(party-c276900f)"} 24-03-2022 12:43:10.192 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "d45c0c95-1576-480c-b048-f59919a1d139"} 24-03-2022 12:43:10.420 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/create from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "90767a4d-bf5f-4a9c-a633-9c9bf4374ab1"} 24-03-2022 12:43:10.490 [http-json-ledger-api-akka.actor.default-dispatcher-11] INFO com.daml.http.CommandService - Submitting create command, context: {command_id: "9371a5a2-1ab5-4deb-8cec-ad21c0e620dc", ledger_id: "create-daml-app-sandbox", request_id: "90767a4d-bf5f-4a9c-a633-9c9bf4374ab1", instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", application_id: "create-daml-app", template_id: "TemplateId(bbfcd72618817ef8c99eb663e1f80375835bd51efebdc69b55884ad7afb3a0ef,User,User)", read_as: "List()", act_as: "List(party-c276900f)"} 24-03-2022 12:43:12.870 [http-json-ledger-api-akka.actor.default-dispatcher-17] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "90767a4d-bf5f-4a9c-a633-9c9bf4374ab1"} 24-03-2022 12:43:12.885 [http-json-ledger-api-akka.actor.default-dispatcher-17] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/fetch from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "fd827c73-d3b8-4e42-877a-ce9af707da2a"} 24-03-2022 12:43:12.992 [http-json-ledger-api-akka.actor.default-dispatcher-11] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "fd827c73-d3b8-4e42-877a-ce9af707da2a"} 24-03-2022 12:43:13.004 [http-json-ledger-api-akka.actor.default-dispatcher-11] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/query from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "94adec23-cb1a-464b-9fad-8bf7da06b99f"} 24-03-2022 12:43:13.017 [http-json-ledger-api-akka.actor.default-dispatcher-13] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "94adec23-cb1a-464b-9fad-8bf7da06b99f"} 24-03-2022 12:43:13.074 [http-json-ledger-api-akka.actor.default-dispatcher-7] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "42f7aaf6-f3f7-4138-a4c6-1be224c100bc"} 24-03-2022 12:43:13.121 [http-json-ledger-api-akka.actor.default-dispatcher-17] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "42f7aaf6-f3f7-4138-a4c6-1be224c100bc"} Compiled successfully! You can now view create-daml-app in the browser. Local: http://localhost:3000 On Your Network: http://192.168.1.114:3000 Note that the development build is not optimized. To create a production build, use npm run build. Request with path /v1/fetch proxied from host localhost:3000 to host http://localhost:undefined 24-03-2022 12:43:53.540 [http-json-ledger-api-akka.actor.default-dispatcher-11] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "f1da2b78-e020-40fc-b4cc-e635fc78f8fb"} 24-03-2022 12:43:53.681 [http-json-ledger-api-akka.actor.default-dispatcher-7] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "f1da2b78-e020-40fc-b4cc-e635fc78f8fb"} 24-03-2022 12:43:53.690 [http-json-ledger-api-akka.actor.default-dispatcher-7] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "42e89b95-f5b7-4c39-bcd8-4264e86a924d"} 24-03-2022 12:43:53.802 [http-json-ledger-api-akka.actor.default-dispatcher-13] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "42e89b95-f5b7-4c39-bcd8-4264e86a924d"} 24-03-2022 12:43:53.814 [http-json-ledger-api-akka.actor.default-dispatcher-13] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "fd54814b-fc1f-479b-b65a-1b3bc59392b8"} 24-03-2022 12:43:53.923 [http-json-ledger-api-akka.actor.default-dispatcher-6] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "fd54814b-fc1f-479b-b65a-1b3bc59392b8"} Request with path /v1/fetch proxied from host localhost:3000 to host http://localhost:undefined 24-03-2022 12:44:24.809 [http-json-ledger-api-akka.actor.default-dispatcher-17] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "cde08b6a-68c1-4f7d-9d20-f5bde5c478aa"} 24-03-2022 12:44:24.880 [http-json-ledger-api-akka.actor.default-dispatcher-9] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "cde08b6a-68c1-4f7d-9d20-f5bde5c478aa"} Request with path /v1/fetch proxied from host localhost:3000 to host http://localhost:undefined 24-03-2022 12:44:55.691 [http-json-ledger-api-akka.actor.default-dispatcher-8] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "8dfa15a7-044d-41f7-9597-37662c2ff5ff"} 24-03-2022 12:44:55.818 [http-json-ledger-api-akka.actor.default-dispatcher-6] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "8dfa15a7-044d-41f7-9597-37662c2ff5ff"} 24-03-2022 12:44:55.828 [http-json-ledger-api-akka.actor.default-dispatcher-6] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "fe3af4d3-7e89-41a5-bfb3-ec639967a0f8"} 24-03-2022 12:44:55.938 [http-json-ledger-api-akka.actor.default-dispatcher-8] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "fe3af4d3-7e89-41a5-bfb3-ec639967a0f8"} Request with path /v1/fetch proxied from host localhost:3000 to host http://localhost:undefined FAIL src/index.test.ts (154.562s) ● Console console.debug daml-types/index.js:98 Registered template bbfcd72618817ef8c99eb663e1f80375835bd51efebdc69b55884ad7afb3a0ef:User:Message. console.debug daml-types/index.js:98 Registered template bbfcd72618817ef8c99eb663e1f80375835bd51efebdc69b55884ad7afb3a0ef:User:User. ● log in as a new user, log out and log back in TimeoutError: waiting for selector ".test-select-main-menu" failed: timeout 30000ms exceeded 277 | await usernameInput.type(partyName); 278 | await page.click(".test-select-login-button"); > 279 | await page.waitForSelector(".test-select-main-menu"); | ^ 280 | }; 281 | // LOGIN_FUNCTION_END 282 | at new WaitTask (node_modules/puppeteer/lib/DOMWorld.js:407:34) at DOMWorld._waitForSelectorOrXPath (node_modules/puppeteer/lib/DOMWorld.js:332:26) at DOMWorld.waitForSelector (node_modules/puppeteer/lib/DOMWorld.js:315:21) at Frame.waitForSelector (node_modules/puppeteer/lib/FrameManager.js:384:51) at Frame.<anonymous> (node_modules/puppeteer/lib/helper.js:117:27) at Page.waitForSelector (node_modules/puppeteer/lib/Page.js:867:33) at login (src/index.test.ts:279:14) at Object.<anonymous> (src/index.test.ts:313:3) ● log in as three different users and start following each other TimeoutError: waiting for selector ".test-select-main-menu" failed: timeout 30000ms exceeded 277 | await usernameInput.type(partyName); 278 | await page.click(".test-select-login-button"); > 279 | await page.waitForSelector(".test-select-main-menu"); | ^ 280 | }; 281 | // LOGIN_FUNCTION_END 282 | at new WaitTask (node_modules/puppeteer/lib/DOMWorld.js:407:34) at DOMWorld._waitForSelectorOrXPath (node_modules/puppeteer/lib/DOMWorld.js:332:26) at DOMWorld.waitForSelector (node_modules/puppeteer/lib/DOMWorld.js:315:21) at Frame.waitForSelector (node_modules/puppeteer/lib/FrameManager.js:384:51) at Frame.<anonymous> (node_modules/puppeteer/lib/helper.js:117:27) at Page.waitForSelector (node_modules/puppeteer/lib/Page.js:867:33) at login (src/index.test.ts:279:14) at Object.<anonymous> (src/index.test.ts:349:3) ● error when following self TimeoutError: waiting for selector ".test-select-main-menu" failed: timeout 30000ms exceeded 277 | await usernameInput.type(partyName); 278 | await page.click(".test-select-login-button"); > 279 | await page.waitForSelector(".test-select-main-menu"); | ^ 280 | }; 281 | // LOGIN_FUNCTION_END 282 | at new WaitTask (node_modules/puppeteer/lib/DOMWorld.js:407:34) at DOMWorld._waitForSelectorOrXPath (node_modules/puppeteer/lib/DOMWorld.js:332:26) at DOMWorld.waitForSelector (node_modules/puppeteer/lib/DOMWorld.js:315:21) at Frame.waitForSelector (node_modules/puppeteer/lib/FrameManager.js:384:51) at Frame.<anonymous> (node_modules/puppeteer/lib/helper.js:117:27) at Page.waitForSelector (node_modules/puppeteer/lib/Page.js:867:33) at login (src/index.test.ts:279:14) at Object.<anonymous> (src/index.test.ts:455:3) ● error when adding a user that you are already following TimeoutError: waiting for selector ".test-select-main-menu" failed: timeout 30000ms exceeded 277 | await usernameInput.type(partyName); 278 | await page.click(".test-select-login-button"); > 279 | await page.waitForSelector(".test-select-main-menu"); | ^ 280 | }; 281 | // LOGIN_FUNCTION_END 282 | at new WaitTask (node_modules/puppeteer/lib/DOMWorld.js:407:34) at DOMWorld._waitForSelectorOrXPath (node_modules/puppeteer/lib/DOMWorld.js:332:26) at DOMWorld.waitForSelector (node_modules/puppeteer/lib/DOMWorld.js:315:21) at Frame.waitForSelector (node_modules/puppeteer/lib/FrameManager.js:384:51) at Frame.<anonymous> (node_modules/puppeteer/lib/helper.js:117:27) at Page.waitForSelector (node_modules/puppeteer/lib/Page.js:867:33) at login (src/index.test.ts:279:14) at Object.<anonymous> (src/index.test.ts:471:3) Test Suites: 1 failed, 1 passed, 2 total Tests: 4 failed, 3 passed, 7 total Snapshots: 0 total Time: 155.201s Ran all test suites. 12:45:26.673 [program-resource-pool-6] INFO c.d.g.a.server.akka.ServerAdapter - SERVER_IS_SHUTTING_DOWN(1,0): Server is shutting down, context: {err-context: "{location=ServerAdapter.scala:59}"} 12:45:26.675 [program-resource-pool-6] INFO c.d.g.a.server.akka.ServerAdapter - SERVER_IS_SHUTTING_DOWN(1,0): Server is shutting down, context: {err-context: "{location=ServerAdapter.scala:59}"} 12:45:26.676 [program-resource-pool-6] INFO c.d.g.a.server.akka.ServerAdapter - SERVER_IS_SHUTTING_DOWN(1,0): Server is shutting down, context: {err-context: "{location=ServerAdapter.scala:59}"} 12:45:26.677 [program-resource-pool-6] INFO c.d.g.a.server.akka.ServerAdapter - SERVER_IS_SHUTTING_DOWN(1,0): Server is shutting down, context: {err-context: "{location=ServerAdapter.scala:59}"} [WARN] [03/24/2022 12:45:26.723] [program-resource-pool-6] [CoordinatedShutdown(akka://sandbox-on-x)] Could not addJvmShutdownHook, due to: Shutdown in progress [INFO] [03/24/2022 12:45:26.724] [program-resource-pool-6] [CoordinatedShutdown(akka://sandbox-on-x)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 24-03-2022 12:45:26.630 [shutdownHook1] INFO com.daml.http.HttpService - Stopping server..., context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0"} 12:45:26.648 [program-resource-pool-6] INFO c.d.g.a.server.akka.ServerAdapter - SERVER_IS_SHUTTING_DOWN(1,0): Server is shutting down, context: {err-context: "{location=ServerAdapter.scala:59}"} FAIL (278.22s) Create app from template (0.04s) Patch the application code with messaging feature Extract codegen output (0.04s) Set up libraries and workspaces Install Jest, Puppeteer and other dependencies (120.36s) Run Puppeteer end-to-end tests (157.77s) callProcess: /home/aj/.cache/bazel/_bazel_aj/c437a451a7a277d35b539da616255ac8/sandbox/linux-sandbox/2357/execroot/compatibility/bazel-out/k8-opt/bin/create-daml-app-1.9.0-platform-0.0.0.runfiles/compatibility/external/node_nix/node_nix/lib/node_modules/npm/bin/npm-cli.js "run" "test" "--ci" "--all" "--scripts-prepend-node-path" (exit 1): failed 1 out of 1 tests failed (278.22s) ================================================================================ ``` * Revert "Skip create-daml-app compat tests pre 2.0.0" This reverts commit 762e61941f164e5deb10fc752f391b69003377cf. * Revert "Expose node in PATH in create-daml-app test" This reverts commit 8541b39d0f1b36c63366b90f97a69f7d950c92c5. * Revert "Update Node version in compatibility" This reverts commit 389639402d19c3ffa714e22bc61e042f82070b74. * Keep using NodeJS 14 for the compatibility tests NodeJS 16 is needed for M1 compatibility, but it breaks the compatibility tests. So, for now, we stick to the older version for the compatibility tests. Co-authored-by: Andreas Herrmann <andreas.herrmann@tweag.io>
2022-04-07 18:50:53 +03:00
) if not is_windows else None
2019-04-04 11:33:38 +03:00
Darwin M1 Support (#13401) * Update rules_nixpkgs and rules_sh rules_sh was an implicit dependency before. We are now depending on it explicitly to be able to control the version. * Patch rules_nixpkgs to detect ARM M1 This should be upstreamed. * Patch rules_haskell for ARM M1 compatibility * Detect MacOS M1 OS and architecture. * Consistently use the CC toolchains' linker. This is important when we switch to GHC with LLVM. * Detect Darwin M1 in os_info.bzl * Use the new rules_nixpkgs host platform The old flags hard-coded the CPU architecture. The new platform automatically inherits from Bazel's builtin host platform. * Import the Go toolchain from rules_nixpkgs * Update nodejs to version 16 * Disable Haddock on lsp-types We're also disabling it on the other haskell_cabal_library instances, and it is causing build errors on M1. ``` Running Haddock on library for lsp-types-1.4.0.0.. creating /private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc/html/lsp-types creating /private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc/html creating /private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc creating /private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc/html creating /private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc/html/lsp-types /private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc/html/lsp-types/haddock-response42424-1.txt contents: <<< --prologue=/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc/html/lsp-types/haddock-prologue42424-0.txt --dump-interface=/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc/html/lsp-types/lsp-types.haddock --package-name=lsp-types --package-version=1.4.0.0 --since-qual=external --hide=Language.LSP.Types.CallHierarchy --hide=Language.LSP.Types.Cancellation --hide=Language.LSP.Types.ClientCapabilities --hide=Language.LSP.Types.CodeAction --hide=Language.LSP.Types.CodeLens --hide=Language.LSP.Types.Command --hide=Language.LSP.Types.Common --hide=Language.LSP.Types.Completion --hide=Language.LSP.Types.Configuration --hide=Language.LSP.Types.Declaration --hide=Language.LSP.Types.Definition --hide=Language.LSP.Types.Diagnostic --hide=Language.LSP.Types.DocumentColor --hide=Language.LSP.Types.DocumentFilter --hide=Language.LSP.Types.DocumentHighlight --hide=Language.LSP.Types.DocumentLink --hide=Language.LSP.Types.DocumentSymbol --hide=Language.LSP.Types.FoldingRange --hide=Language.LSP.Types.Formatting --hide=Language.LSP.Types.Hover --hide=Language.LSP.Types.Implementation --hide=Language.LSP.Types.Initialize --hide=Language.LSP.Types.Location --hide=Language.LSP.Types.LspId --hide=Language.LSP.Types.MarkupContent --hide=Language.LSP.Types.Method --hide=Language.LSP.Types.Message --hide=Language.LSP.Types.Parsing --hide=Language.LSP.Types.Progress --hide=Language.LSP.Types.Registration --hide=Language.LSP.Types.References --hide=Language.LSP.Types.Rename --hide=Language.LSP.Types.SelectionRange --hide=Language.LSP.Types.ServerCapabilities --hide=Language.LSP.Types.SemanticTokens --hide=Language.LSP.Types.SignatureHelp --hide=Language.LSP.Types.StaticRegistrationOptions --hide=Language.LSP.Types.TextDocument --hide=Language.LSP.Types.TypeDefinition --hide=Language.LSP.Types.Uri --hide=Language.LSP.Types.Utils --hide=Language.LSP.Types.Window --hide=Language.LSP.Types.WatchedFiles --hide=Language.LSP.Types.WorkspaceEdit --hide=Language.LSP.Types.WorkspaceFolders --hide=Language.LSP.Types.WorkspaceSymbol --html --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/array-0.5.4.0,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/array-0.5.4.0/array.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/base-4.15.1.0,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/base-4.15.1.0/base.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/binary-0.8.8.0,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/binary-0.8.8.0/binary.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/bytestring-0.10.12.1,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/bytestring-0.10.12.1/bytestring.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/containers-0.6.4.1,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/containers-0.6.4.1/containers.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/deepseq-1.4.5.0,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/deepseq-1.4.5.0/deepseq.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/directory-1.3.6.2,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/directory-1.3.6.2/directory.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/exceptions-0.10.4,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/exceptions-0.10.4/exceptions.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/filepath-1.4.2.1,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/filepath-1.4.2.1/filepath.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/ghc-bignum-1.1,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/ghc-bignum-1.1/ghc-bignum.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/ghc-boot-th-9.0.2,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/ghc-boot-th-9.0.2/ghc-boot-th.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/ghc-prim-0.7.0,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/ghc-prim-0.7.0/ghc-prim.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/integer-gmp-1.1,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/integer-gmp-1.1/integer-gmp.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/mtl-2.2.2,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/mtl-2.2.2/mtl.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/parsec-3.1.14.0,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/parsec-3.1.14.0/parsec.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/pretty-1.1.3.6,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/pretty-1.1.3.6/pretty.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/stm-2.5.0.0,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/stm-2.5.0.0/stm.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/template-haskell-2.17.0.0,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/template-haskell-2.17.0.0/template-haskell.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/text-1.2.5.0,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/text-1.2.5.0/text.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/time-1.9.3,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/time-1.9.3/time.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/transformers-0.5.6.2,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/transformers-0.5.6.2/transformers.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/unix-2.7.2.2,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/unix-2.7.2.2/unix.haddock --odir=/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc/html/lsp-types/ --title=lsp-types-1.4.0.0:\ Haskell\ library\ for\ the\ Microsoft\ Language\ Server\ Protocol,\ data\ types --optghc=-fbuilding-cabal-package --optghc=-O --optghc=-outputdir --optghc=../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build --optghc=-odir --optghc=../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build/tmp-42424 --optghc=-hidir --optghc=../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build/tmp-42424 --optghc=-stubdir --optghc=../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build/tmp-42424 --optghc=-i --optghc=-i../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build --optghc=-isrc --optghc=-i../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build/autogen --optghc=-i../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build/global-autogen --optghc=-I../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build/autogen --optghc=-I../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build/global-autogen --optghc=-I../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build --optghc=-optP-D__HADDOCK_VERSION__=2251 --optghc=-optP-include --optghc=-optP../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build/autogen/cabal_macros.h --optghc=-this-unit-id --optghc=lsp-types-1.4.0.0 --optghc=-hide-all-packages --optghc=-Wmissing-home-modules --optghc=-no-user-package-db --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/Diff-0.4.1/_install/Diff-0.4.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/base-orphans-0.8.6/_install/base-orphans-0.8.6.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/OneTuple-0.3.1/_install/OneTuple-0.3.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/splitmix-0.1.0.4/_install/splitmix-0.1.0.4.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/random-1.2.1/_install/random-1.2.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/QuickCheck-2.14.2/_install/QuickCheck-2.14.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/hashable-1.3.5.0/_install/hashable-1.3.5.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/integer-logarithms-1.0.3.1/_install/integer-logarithms-1.0.3.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/primitive-0.7.3.0/_install/primitive-0.7.3.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/scientific-0.3.7.0/_install/scientific-0.3.7.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/attoparsec-0.14.4/_install/attoparsec-0.14.4-attoparsec-internal.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/attoparsec-0.14.4/_install/attoparsec-0.14.4.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/base-compat-0.11.2/_install/base-compat-0.11.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/base-compat-batteries-0.11.2/_install/base-compat-batteries-0.11.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/data-fix-0.3.2/_install/data-fix-0.3.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/dlist-1.0/_install/dlist-1.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/indexed-traversable-0.1.2/_install/indexed-traversable-0.1.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/tagged-0.8.6.1/_install/tagged-0.8.6.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/unordered-containers-0.2.16.0/_install/unordered-containers-0.2.16.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/vector-0.12.3.1/_install/vector-0.12.3.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/indexed-traversable-instances-0.1.1/_install/indexed-traversable-instances-0.1.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/distributive-0.6.2.1/_install/distributive-0.6.2.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/transformers-compat-0.6.6/_install/transformers-compat-0.6.6.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/comonad-5.0.8/_install/comonad-5.0.8.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/th-abstraction-0.4.3.0/_install/th-abstraction-0.4.3.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/bifunctors-5.5.11/_install/bifunctors-5.5.11.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/StateVar-1.2.2/_install/StateVar-1.2.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/contravariant-1.5.5/_install/contravariant-1.5.5.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/semigroupoids-5.3.7/_install/semigroupoids-5.3.7.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/assoc-1.0.2/_install/assoc-1.0.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/these-1.1.1.1/_install/these-1.1.1.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/semialign-1.2.0.1/_install/semialign-1.2.0.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/strict-0.4.0.1/_install/strict-0.4.0.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/text-short-0.1.5/_install/text-short-0.1.5.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/time-compat-1.9.6.1/_install/time-compat-1.9.6.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/uuid-types-1.0.5/_install/uuid-types-1.0.5.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/witherable-0.4.2/_install/witherable-0.4.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/aeson-2.0.3.0/_install/aeson-2.0.3.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/data-default-class-0.1.2.0/_install/data-default-class-0.1.2.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/data-default-instances-containers-0.0.1/_install/data-default-instances-containers-0.0.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/data-default-instances-dlist-0.0.1/_install/data-default-instances-dlist-0.0.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/old-locale-1.0.0.7/_install/old-locale-1.0.0.7.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/data-default-instances-old-locale-0.0.1/_install/data-default-instances-old-locale-0.0.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/data-default-0.7.1.1/_install/data-default-0.7.1.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/network-3.1.2.7/_install/network-3.1.2.7.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/network-bsd-2.8.1.0/_install/network-bsd-2.8.1.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/hslogger-1.3.1.0/_install/hslogger-1.3.1.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/call-stack-0.4.0/_install/call-stack-0.4.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/profunctors-5.6.2/_install/profunctors-5.6.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/transformers-base-0.4.6/_install/transformers-base-0.4.6.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/free-5.1.7/_install/free-5.1.7.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/semigroups-0.19.2/_install/semigroups-0.19.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/void-0.7.3/_install/void-0.7.3.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/adjunctions-4.4/_install/adjunctions-4.4.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/invariant-0.5.5/_install/invariant-0.5.5.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/kan-extensions-5.2.3/_install/kan-extensions-5.2.3.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/parallel-3.2.2.0/_install/parallel-3.2.2.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/reflection-2.1.6/_install/reflection-2.1.6.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/lens-5.0.1/_install/lens-5.0.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/semirings-0.6/_install/semirings-0.6.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/mod-0.1.2.2/_install/mod-0.1.2.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/th-compat-0.1.3/_install/th-compat-0.1.3.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/network-uri-2.6.4.1/_install/network-uri-2.6.4.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/rope-utf16-splay-0.3.2.0/_install/rope-utf16-splay-0.3.2.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/some-1.0.3/_install/some-1.0.3.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/temporary-1.3/_install/temporary-1.3.conf.d --optghc=-package-db --optghc=/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/_install/lsp-types-1.4.0.0.conf.d --optghc=-package-db --optghc=/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/package.conf.inplace --optghc=-package-id --optghc=Diff-0.4.1 --optghc=-package-id --optghc=aeson-2.0.3.0 --optghc=-package-id --optghc=base-4.15.1.0 --optghc=-package-id --optghc=binary-0.8.8.0 --optghc=-package-id --optghc=bytestring-0.10.12.1 --optghc=-package-id --optghc=containers-0.6.4.1 --optghc=-package-id --optghc=data-default-0.7.1.1 --optghc=-package-id --optghc=deepseq-1.4.5.0 --optghc=-package-id --optghc=directory-1.3.6.2 --optghc=-package-id --optghc=dlist-1.0 --optghc=-package-id --optghc=filepath-1.4.2.1 --optghc=-package-id --optghc=hashable-1.3.5.0 --optghc=-package-id --optghc=hslogger-1.3.1.0 --optghc=-package-id --optghc=lens-5.0.1 --optghc=-package-id --optghc=mod-0.1.2.2 --optghc=-package-id --optghc=mtl-2.2.2 --optghc=-package-id --optghc=network-uri-2.6.4.1 --optghc=-package-id --optghc=rope-utf16-splay-0.3.2.0 --optghc=-package-id --optghc=scientific-0.3.7.0 --optghc=-package-id --optghc=some-1.0.3 --optghc=-package-id --optghc=template-haskell-2.17.0.0 --optghc=-package-id --optghc=temporary-1.3 --optghc=-package-id --optghc=text-1.2.5.0 --optghc=-package-id --optghc=unordered-containers-0.2.16.0 --optghc=-XHaskell2010 --optghc=-XStrictData --optghc=-Wall -B/nix/store/z8577sg7xny6fxhndrrrkpvzhn53w9vc-ghc-native-bignum-9.0.2/lib/ghc-9.0.2 src/Language/LSP/Types.hs src/Language/LSP/Types/Capabilities.hs src/Language/LSP/Types/Lens.hs src/Language/LSP/Types/SMethodMap.hs src/Language/LSP/VFS.hs src/Data/IxMap.hs src/Language/LSP/Types/CallHierarchy.hs src/Language/LSP/Types/Cancellation.hs src/Language/LSP/Types/ClientCapabilities.hs src/Language/LSP/Types/CodeAction.hs src/Language/LSP/Types/CodeLens.hs src/Language/LSP/Types/Command.hs src/Language/LSP/Types/Common.hs src/Language/LSP/Types/Completion.hs src/Language/LSP/Types/Configuration.hs src/Language/LSP/Types/Declaration.hs src/Language/LSP/Types/Definition.hs src/Language/LSP/Types/Diagnostic.hs src/Language/LSP/Types/DocumentColor.hs src/Language/LSP/Types/DocumentFilter.hs src/Language/LSP/Types/DocumentHighlight.hs src/Language/LSP/Types/DocumentLink.hs src/Language/LSP/Types/DocumentSymbol.hs src/Language/LSP/Types/FoldingRange.hs src/Language/LSP/Types/Formatting.hs src/Language/LSP/Types/Hover.hs src/Language/LSP/Types/Implementation.hs src/Language/LSP/Types/Initialize.hs src/Language/LSP/Types/Location.hs src/Language/LSP/Types/LspId.hs src/Language/LSP/Types/MarkupContent.hs src/Language/LSP/Types/Method.hs src/Language/LSP/Types/Message.hs src/Language/LSP/Types/Parsing.hs src/Language/LSP/Types/Progress.hs src/Language/LSP/Types/Registration.hs src/Language/LSP/Types/References.hs src/Language/LSP/Types/Rename.hs src/Language/LSP/Types/SelectionRange.hs src/Language/LSP/Types/ServerCapabilities.hs src/Language/LSP/Types/SemanticTokens.hs src/Language/LSP/Types/SignatureHelp.hs src/Language/LSP/Types/StaticRegistrationOptions.hs src/Language/LSP/Types/TextDocument.hs src/Language/LSP/Types/TypeDefinition.hs src/Language/LSP/Types/Uri.hs src/Language/LSP/Types/Utils.hs src/Language/LSP/Types/Window.hs src/Language/LSP/Types/WatchedFiles.hs src/Language/LSP/Types/WorkspaceEdit.hs src/Language/LSP/Types/WorkspaceFolders.hs src/Language/LSP/Types/WorkspaceSymbol.hs >>> /private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc/html/lsp-types/haddock-response42424-1.txt Environment: [("CABAL_VERBOSE","True"),("CC_WRAPPER_CC_PATH","external/local_config_cc/cc_wrapper.sh"),("CC_WRAPPER_CPU","darwin_arm64"),("CC_WRAPPER_PLATFORM","darwin"),("CODESIGN_ALLOCATE","/nix/store/3ibr5yy13sxl2vb5rig8fivj85sqcvf2-cctools-port-949.0.1/bin/codesign_allocate"),("HOME","/var/empty"),("LANG","C.UTF-8"),("LC_CTYPE","UTF-8"),("LD_LIBRARY_PATH",""),("LIBRARY_PATH",""),("PATH","/nix/store/xqbgx1y5xh2k13c6nizlprkp0j8mcw6w-clang-wrapper-12.0.1/bin:/nix/store/p90xw78bb3xsxg5v7k31qj5hpwm2pngp-llvm-12.0.1/bin:/nix/store/5havjxkv59cprx4czgi1lwnvv7y22dzi-posix-toolchain/bin"),("PWD","/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/external/lsp-types"),("PYTHONPATH","/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/runghc.runfiles:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/runghc.runfiles/:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/runghc.runfiles/bazel_tools:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/runghc.runfiles/com_github_digital_asset_daml:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/runghc.runfiles/local_config_cc:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/runghc.runfiles/rules_haskell:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/runghc.runfiles/rules_haskell_ghc_nixpkgs:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/runghc.runfiles/rules_python:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/cabal_wrapper.runfiles:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/cabal_wrapper.runfiles/:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/cabal_wrapper.runfiles/bazel_tools:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/cabal_wrapper.runfiles/com_github_digital_asset_daml:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/cabal_wrapper.runfiles/rules_haskell"),("RULES_HASKELL_DOCDIR_PATH","/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/base-4.15.1.0"),("RULES_HASKELL_EXEC_ROOT","/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml"),("RULES_HASKELL_GHC_PATH","/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/external/rules_haskell_ghc_nixpkgs/bin/ghc"),("RULES_HASKELL_GHC_PKG_PATH","/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/external/rules_haskell_ghc_nixpkgs/bin/ghc-pkg"),("RULES_HASKELL_LIBDIR_PATH","/nix/store/z8577sg7xny6fxhndrrrkpvzhn53w9vc-ghc-native-bignum-9.0.2/lib/ghc-9.0.2"),("RUNFILES_DIR","/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/runghc.runfiles"),("SDKROOT","macosx"),("SHLVL","0"),("TEMP","/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/tmp"),("TMP","/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/tmp"),("TMPDIR","/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/tmp"),("__CF_USER_TEXT_ENCODING","0x1F5:0x0:0x0")] /private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/external/rules_haskell_ghc_nixpkgs/bin/haddock '@/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc/html/lsp-types/haddock-response42424-1.txt' 0% ( 0 / 7) in 'Data.IxMap' Missing documentation for: Module header IxOrd (src/Data/IxMap.hs:17) IxMap (src/Data/IxMap.hs:21) emptyIxMap (src/Data/IxMap.hs:23) insertIxMap (src/Data/IxMap.hs:26) lookupIxMap (src/Data/IxMap.hs:31) pickFromIxMap (src/Data/IxMap.hs:37) `cc' failed in phase `Linker'. (Exit code: 134) /private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/external/rules_haskell_ghc_nixpkgs/bin/haddock returned ExitFailure 1 Target //compiler/damlc:damlc failed to build ERROR: /Users/builder/daml-andreas/compiler/damlc/BUILD.bazel:38:9 Middleman _middlemen/compiler_Sdamlc_Sdamlc-runfiles failed: (Exit 1): cabal_wrapper failed: error executing command (cd /private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml && \ exec env - \ CABAL_VERBOSE=True \ CC_WRAPPER_CC_PATH=external/local_config_cc/cc_wrapper.sh \ CC_WRAPPER_CPU=darwin_arm64 \ CC_WRAPPER_PLATFORM=darwin \ LANG=C.UTF-8 \ PATH=/nix/store/5havjxkv59cprx4czgi1lwnvv7y22dzi-posix-toolchain/bin \ RULES_HASKELL_DOCDIR_PATH=/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/base-4.15.1.0 \ RULES_HASKELL_GHC_PATH=external/rules_haskell_ghc_nixpkgs/bin/ghc \ RULES_HASKELL_GHC_PKG_PATH=external/rules_haskell_ghc_nixpkgs/bin/ghc-pkg \ RULES_HASKELL_LIBDIR_PATH=/nix/store/z8577sg7xny6fxhndrrrkpvzhn53w9vc-ghc-native-bignum-9.0.2/lib/ghc-9.0.2 \ SDKROOT=macosx \ bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/cabal_wrapper bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types_cabal_wrapper_args.json) Execution platform: @io_tweag_rules_nixpkgs//nixpkgs/platforms:host Use --sandbox_debug to see verbose messages from the sandbox INFO: Elapsed time: 344.702s, Critical Path: 329.09s INFO: 49 processes: 14 internal, 35 processwrapper-sandbox. FAILED: Build did NOT complete successfully FAILED: Build did NOT complete successfully ``` * Disable create-daml-app tests on MacOS M1 These fail to build because puppeteer fails to install Chromium on M1. See https://github.com/digital-asset/daml/pull/13250. * Resign binaries after patching in package-app Otherwise they fail to execute on MacOS Monterey on M1. They symptom is that executing or otherwise loading the binary (e.g. into lldb) fails with exit code -9 without further indications. * Use GHC with LLVM on MacOS M1 The native backend only supports M1 starting from GHC 9.2. However, we are still on GHC 9.0. We wrap GHC to ensure that the LLVM toolchain and the codesign tool are present in the environment and point to the correct versions provided by nixpkgs. * Update the CC toolchain for MacOS M1 compatibility Use nixpkgs `nix-support/cc-cflags` file to provide default flags instead of using `makeWrapper`. On M1 there was an issue where passing `-l` flags or `-isystem` to `cc -v` would cause the following errors: ``` lang version 11.1.0 Target: aarch64-apple-darwin Thread model: posix InstalledDir: /nix/store/v6iidz79b425hli98g45xq9iblapn1zy-clang-11.1.0/bin "/nix/store/b82mvqzvdx5mh1n9n77v8h5vk9fgqrxj-clang-wrapper-11.1.0/bin/ld" -demangle -lto_library /nix/store/v6iidz79b425hli98g45xq9iblapn1zy-clang-11.1.0/lib/libLTO.dylib -dynamic -arch arm64 -platform_version macos 11.0.0 0.0.0 -o a.out -L/nix/store/hc8a94w57ppwmn2gscm56pvlwi3zhyh1-libSystem-11.0.0/lib -L/nix/store/6f5ygwif1r523jj2qfwfiwix0fga4rgp-clang-11.1.0-lib/lib -L/nix/store/7pkxnbhpi0c10w18rirj8zxz3wv571nj-libcxx-11.1.0/lib -no_uuid -arch arm64 -lSystem /nix/store/b82mvqzvdx5mh1n9n77v8h5vk9fgqrxj-clang-wrapper-11.1.0/resource-root/lib/darwin/libclang_rt.osx.a Undefined symbols for architecture arm64: "_main", referenced from: implicit entry/start for main executable ld: symbol(s) not found for architecture arm64 ``` This also includes additional standard library search paths: `-isystem ${llvmPackages_12.libcxx.dev}/include/c++/v1` alone is not enough because some headers in it are [wrapper headers](https://gcc.gnu.org/onlinedocs/cpp/Wrapper-Headers.html) that use `include_next` directives. For these to resolve we need to add the compiler's builtin headers to the search path as well. This also sets `-Wno-elaborated-enum-base` to avoid build failures of absl on MacOS Monterey M1. ``` In file included from external/com_google_absl/absl/time/internal/cctz/src/time_zone_lookup.cc:26: In file included from /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFTimeZone.h:13: /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:474:9: error: non-defining declaration of enumeration with a fixed underlying type is only permitted as a standalone declaration; missing list of enumerators? [-Welaborated-enum-base] typedef CF_ENUM(CFIndex, CFComparisonResult) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFAvailability.h:169:55: note: expanded from macro 'CF_ENUM' \#define CF_ENUM(...) __CF_ENUM_GET_MACRO(__VA_ARGS__, __CF_NAMED_ENUM, __CF_ANON_ENUM, )(__VA_ARGS__) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFAvailability.h:134:48: note: expanded from macro '__CF_ENUM_GET_MACRO' \#define __CF_ENUM_GET_MACRO(_1, _2, NAME, ...) NAME ^ /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFAvailability.h:142:75: note: expanded from macro '__CF_NAMED_ENUM' \#define __CF_NAMED_ENUM(_type, _name) enum __CF_ENUM_ATTRIBUTES _name : _type _name; enum _name : _type ^~~~~~~ In file included from external/com_google_absl/absl/time/internal/cctz/src/time_zone_lookup.cc:26: In file included from /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFTimeZone.h:18: In file included from /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFString.h:17: /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFCharacterSet.h:62:9: error: non-defining declaration of enumeration with a fixed underlying type is only permitted as a standalone decla ration; missing list of enumerators? [-Welaborated-enum-base] typedef CF_ENUM(CFIndex, CFCharacterSetPredefinedSet) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFAvailability.h:169:55: note: expanded from macro 'CF_ENUM' \#define CF_ENUM(...) __CF_ENUM_GET_MACRO(__VA_ARGS__, __CF_NAMED_ENUM, __CF_ANON_ENUM, )(__VA_ARGS__) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFAvailability.h:134:48: note: expanded from macro '__CF_ENUM_GET_MACRO' \#define __CF_ENUM_GET_MACRO(_1, _2, NAME, ...) NAME ^ /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFAvailability.h:142:75: note: expanded from macro '__CF_NAMED_ENUM' \#define __CF_NAMED_ENUM(_type, _name) enum __CF_ENUM_ATTRIBUTES _name : _type _name; enum _name : _type ^~~~~~~ ... ``` * Link libc++ in fat_cc_library on MacOS * Build on native ARM M1 instead of Rosetta changelog_begin changelog_end * Drop unused ghcLLVMWrapper * Select ghcWithLLVM within Nix If we generally expose ghcWithLLVM from Nix and then select on the Bazel, then we'd need to filter that derivation out from the Nix and dev-tool build step on CI. * fmt * Update Node version in compatibility * Expose node in PATH in create-daml-app test It seems that the node update made the `--scripts-prepend-node-path` flag less effective than it was before. Without explicitly adding `node` to `PATH` the install step fails with the following error: ``` Failure: Command "CreateProcess {cmdspec = RawCommand "/home/aj/.cache/bazel/_bazel_aj/c437a451a7a277d35b539da616255ac8/sandbox/linux-sandbox/1435/execroot/compatibility/bazel-out/k8-opt/bin/create-daml-app-0.0.0-platform-2.0.0.runfiles/compatibility/external/node_nix/node_nix/lib/node_modules/npm/bin/npm-cli.js" ["install","--scripts-prepend-node-path"], cwd = Nothing, env = Nothing, std_in = Inherit, std_out = Inherit, std_err = Inherit, close_fds = False, create_group = False, delegate_ctlc = False, detach_console = False, create_new_console = False, new_session = False, child_group = Nothing, child_user = Nothing, use_process_jobs = False}" exited with ExitFailure 127 npm ERR! code 127 npm ERR! path /tmp/extra-dir-7515936101075/create-daml-app/ui/node_modules/puppeteer npm ERR! command failed npm ERR! command sh -c node install.js npm ERR! sh: line 1: node: command not found npm ERR! A complete log of this run can be found in: npm ERR! /tmp/extra-dir-7515936101074/_logs/2022-03-24T10_18_15_227Z-debug.log ``` * Skip create-daml-app compat tests pre 2.0.0 changelog_begin changelog_end In these tests the install step fails with the following error due to mismatch babel-jest dependency versions: ``` ==================== Test output for //:create-daml-app-1.8.1-platform-0.0.0: Create Daml App tests Getting Started Guide: WARNING: Specifying the template via daml new create-daml-app create-daml-app is deprecated. The recommended way of specifying the template is daml new create-daml-app --template create-daml-app Created a new project in "create-daml-app" based on the template "create-daml-app". > create-daml-app@0.1.0 test > react-scripts test --testURL='http://localhost:7575' There might be a problem with the project dependency tree. It is likely not a bug in Create React App, but something you need to fix locally. The react-scripts package provided by Create React App requires a dependency: "babel-jest": "^24.9.0" Don't try to install it manually: your package manager does it automatically. However, a different version of babel-jest was detected higher up in the tree: /tmp/extra-dir-3298351016846/create-daml-app/ui/node_modules/babel-jest (version: 25.5.1) Manually installing incompatible versions is known to cause hard-to-debug issues. If you would prefer to ignore this check, add SKIP_PREFLIGHT_CHECK=true to an .env file in your project. That will permanently disable this message but you might encounter other issues. To fix the dependency tree, try following the steps below in the exact order: 1. Delete package-lock.json (not package.json!) and/or yarn.lock in your project folder. 2. Delete node_modules in your project folder. 3. Remove "babel-jest" from dependencies and/or devDependencies in the package.json file in your project folder. 4. Run npm install or yarn, depending on the package manager you use. In most cases, this should be enough to fix the problem. If this has not helped, there are a few other things you can try: 5. If you used npm, install yarn (http://yarnpkg.com/) and repeat the above steps with it instead. This may help because npm has known issues with package hoisting which may get resolved in future versions. 6. Check if /tmp/extra-dir-3298351016846/create-daml-app/ui/node_modules/babel-jest is outside your project directory. For example, you might have accidentally installed something in your home folder. 7. Try running npm ls babel-jest in your project folder. This will tell you which other package (apart from the expected react-scripts) installed babel-jest. If nothing else helps, add SKIP_PREFLIGHT_CHECK=true to an .env file in your project. That would permanently disable this preflight check in case you want to proceed anyway. P.S. We know this message is long but please read the steps above :-) We hope you find them helpful! FAIL (125.62s) Create app from template (0.05s) Patch the application code with messaging feature Extract codegen output (0.06s) Set up libraries and workspaces (0.01s) Install Jest, Puppeteer and other dependencies (123.95s) Run Puppeteer end-to-end tests (1.54s) callProcess: /home/aj/.cache/bazel/_bazel_aj/c437a451a7a277d35b539da616255ac8/sandbox/linux-sandbox/2351/execroot/compatibility/bazel-out/k8-opt/bin/create-daml-app-1.8.1-platform-0.0.0.runfiles/compatibility/external/node_nix/node_nix/lib/node_modules/npm/bin/npm-cli.js "run" "test" "--ci" "--all" "--scripts-prepend-node-path" (exit 1): failed 1 out of 1 tests failed (125.62s) ================================================================================ ``` Applying the suggested `SKIP_PREFLIGHT_CHECK=true` fix leads to the following failure instead: ``` ==================== Test output for //:create-daml-app-1.9.0-platform-0.0.0: Create Daml App tests Getting Started Guide: WARNING: Specifying the template via daml new create-daml-app create-daml-app is deprecated. The recommended way of specifying the template is daml new create-daml-app --template create-daml-app Created a new project in "create-daml-app" based on the template "create-daml-app". > create-daml-app@0.1.0 test > react-scripts test --testURL='http://localhost:7575' PASS src/components/App.test.tsx ● Console console.debug daml-types/index.js:98 Registered template bbfcd72618817ef8c99eb663e1f80375835bd51efebdc69b55884ad7afb3a0ef:User:Message. console.debug daml-types/index.js:98 Registered template bbfcd72618817ef8c99eb663e1f80375835bd51efebdc69b55884ad7afb3a0ef:User:User. 12:42:55.745 [program-resource-pool-4] INFO c.d.l.sandbox.AkkaSubmissionsBridge - Instantiated Akka submissions bridge., context: {participantId: "sandbox"} 12:42:57.897 [program-resource-pool-3] INFO c.d.ledger.sandbox.SandboxOnXRunner - Initialized sandbox-on-x with conflict checking ledger bridge, version 0.0.0, run-mode = combined participant, index DB backend = h2database, participant-id = sandbox, ledger-id = create-daml-app-sandbox, port = 0, time mode = wall-clock time, allowed language versions = [min = LanguageVersion(V1,LanguageMinorVersion(6)), max = LanguageVersion(V1,LanguageMinorVersion(14))], authentication = all unauthenticated allowed, contract ids seeding = strong 24-03-2022 12:43:02.413 [main] INFO com.daml.http.Main - Config(ledgerHost=localhost, ledgerPort=34937, address=127.0.0.1, httpPort=7575, portFile=Some(json-api.port), packageReloadInterval=5 seconds, packageMaxInboundMessageSize=None, maxInboundMessageSize=4194304, tlsConfig=TlsConfiguration(false,None,None,None,None,REQUIRE,false,None), jdbcConfig=None, staticContentConfig=None, allowNonHttps=true, wsConfig=None, nonRepudiationCertificateFile=None, nonRepudiationPrivateKeyFile=None, nonRepudiationPrivateKeyAlgorithm=None, surrogateTpIdCacheMaxEntries=None), context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0"} 24-03-2022 12:43:02.745 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO akka.event.slf4j.Slf4jLogger - Slf4jLogger started 24-03-2022 12:43:03.041 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO com.daml.http.HttpService - HTTP Server pre-startup, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0"} 24-03-2022 12:43:03.251 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO com.daml.http.LedgerClient - Attempting to connect to the ledger localhost:34937 (600 attempts), context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0"} 24-03-2022 12:43:03.594 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO com.daml.http.LedgerClient - Attempt 1/600 succeeded!, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0"} 24-03-2022 12:43:03.596 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO com.daml.http.LedgerClient - Attempting to connect to the ledger localhost:34937 (600 attempts), context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0"} 24-03-2022 12:43:03.600 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO com.daml.http.LedgerClient - Attempt 1/600 succeeded!, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0"} 24-03-2022 12:43:03.601 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO com.daml.http.HttpService - contractDao: None, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0"} 24-03-2022 12:43:04.132 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO com.daml.http.Main - Started server: (ServerBinding(/127.0.0.1:7575),None), context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0"} 24-03-2022 12:43:05.280 [http-json-ledger-api-akka.actor.default-dispatcher-13] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "2ab72d48-cdef-4e00-ac17-0afda5084008"} 24-03-2022 12:43:05.791 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "2ab72d48-cdef-4e00-ac17-0afda5084008"} > create-daml-app@0.1.0 start > react-scripts start [HPM] Proxy created: function (pathname, req) { // Proxy requests to the http json api when in development const proxied = pathname.match("^/v1") && process.env.NODE_ENV === "development"; if (proxied) { console.log( `Request with path ${pathname} proxied from host ${req.headers.host} to host ${httpJsonDevUrl}` ); } return proxied; } -> http://localhost:undefined ℹ 「wds」: Project is running at http://192.168.1.114/ ℹ 「wds」: webpack output is served from ℹ 「wds」: Content not from webpack is served from /tmp/extra-dir-99443589994656/create-daml-app/ui/public ℹ 「wds」: 404s will fallback to / Starting the development server... 24-03-2022 12:43:07.495 [http-json-ledger-api-akka.actor.default-dispatcher-9] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "ce0131fd-6a4c-4eb1-8c1b-6d68418fde82"} 24-03-2022 12:43:07.606 [http-json-ledger-api-akka.actor.default-dispatcher-17] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "ce0131fd-6a4c-4eb1-8c1b-6d68418fde82"} 24-03-2022 12:43:07.623 [http-json-ledger-api-akka.actor.default-dispatcher-9] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "a4d1c7b0-406c-4297-a690-66ba2b692f19"} 24-03-2022 12:43:07.725 [http-json-ledger-api-akka.actor.default-dispatcher-16] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "a4d1c7b0-406c-4297-a690-66ba2b692f19"} 24-03-2022 12:43:07.741 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "bf65790a-38bc-4686-aa15-607c3c24661a"} 24-03-2022 12:43:07.846 [http-json-ledger-api-akka.actor.default-dispatcher-9] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "bf65790a-38bc-4686-aa15-607c3c24661a"} 24-03-2022 12:43:07.865 [http-json-ledger-api-akka.actor.default-dispatcher-13] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "3ab06283-270c-4994-852c-92c8c3b34ecc"} 24-03-2022 12:43:07.964 [http-json-ledger-api-akka.actor.default-dispatcher-14] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "3ab06283-270c-4994-852c-92c8c3b34ecc"} 24-03-2022 12:43:07.980 [http-json-ledger-api-akka.actor.default-dispatcher-8] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "b332b66a-6231-4492-817d-a2c58c85d04c"} 24-03-2022 12:43:08.084 [http-json-ledger-api-akka.actor.default-dispatcher-18] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "b332b66a-6231-4492-817d-a2c58c85d04c"} 24-03-2022 12:43:08.098 [http-json-ledger-api-akka.actor.default-dispatcher-17] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "8c77ce53-52b5-4e0c-993a-3f810b54bfec"} 24-03-2022 12:43:08.204 [http-json-ledger-api-akka.actor.default-dispatcher-9] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "8c77ce53-52b5-4e0c-993a-3f810b54bfec"} 24-03-2022 12:43:08.220 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "8813ad99-79c7-42c4-9719-5bdcfeb5077e"} 24-03-2022 12:43:08.326 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "8813ad99-79c7-42c4-9719-5bdcfeb5077e"} 24-03-2022 12:43:08.340 [http-json-ledger-api-akka.actor.default-dispatcher-18] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "deeca40b-0f05-47c9-927d-f71b0fe08ccb"} 24-03-2022 12:43:08.444 [http-json-ledger-api-akka.actor.default-dispatcher-18] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "deeca40b-0f05-47c9-927d-f71b0fe08ccb"} 24-03-2022 12:43:08.462 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "9be53420-eb4d-4ee3-9915-4a4381c51bea"} 24-03-2022 12:43:08.563 [http-json-ledger-api-akka.actor.default-dispatcher-18] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "9be53420-eb4d-4ee3-9915-4a4381c51bea"} 24-03-2022 12:43:08.576 [http-json-ledger-api-akka.actor.default-dispatcher-18] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "8d64b076-ff2b-4f5b-8653-95e5e949cb34"} 24-03-2022 12:43:08.685 [http-json-ledger-api-akka.actor.default-dispatcher-14] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "8d64b076-ff2b-4f5b-8653-95e5e949cb34"} 24-03-2022 12:43:08.697 [http-json-ledger-api-akka.actor.default-dispatcher-14] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "87246c50-00b7-453e-9771-83f176a3cbfc"} 24-03-2022 12:43:08.802 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "87246c50-00b7-453e-9771-83f176a3cbfc"} 24-03-2022 12:43:08.818 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "65bb8c95-a253-4ac5-a297-1abeff6ce44c"} 24-03-2022 12:43:08.920 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "65bb8c95-a253-4ac5-a297-1abeff6ce44c"} 24-03-2022 12:43:08.930 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/query from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "d45c0c95-1576-480c-b048-f59919a1d139"} 24-03-2022 12:43:10.016 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.PackageService - new package IDs loaded: bfcd37bd6b84768e86e432f5f6c33e25d9e7724a9d42e33875ff74f6348e733f, 518032f41fd0175461b35ae0c9691e08b4aea55e62915f8360af2cc7a1f2ba6c, cc348d369011362a5190fe96dd1f0dfbc697fdfd10e382b9e9666f0da05961b7, f78511c39cc293d5ed72acf5a4a81411af75a435df4106c5e37823af6589040b, 6839a6d3d430c569b2425e9391717b44ca324b88ba621d597778811b2d05031d, 99a2705ed38c1c26cbb8fe7acf36bbf626668e167a33335de932599219e0a235, 76bf0fd12bd945762a01f8fc5bbcdfa4d0ff20f8762af490f8f41d6237c6524f, e22bce619ae24ca3b8e6519281cb5a33b64b3190cc763248b4c3f9ad5087a92c, d58cf9939847921b2aab78eaa7b427dc4c649d25e6bee3c749ace4c3f52f5c97, 6c2c0667393c5f92f1885163068cd31800d2264eb088eb6fc740e11241b2bf06, c1f1f00558799eec139fb4f4c76f95fb52fa1837a5dd29600baa1c8ed1bdccfd, 733e38d36a2759688a4b2c4cec69d48e7b55ecc8dedc8067b815926c917a182a, 057eed1fd48c238491b8ea06b9b5bf85a5d4c9275dd3f6183e0e6b01730cc2ba, 52af8c65ac2c4b3d61637558935d2b0a92369ec4da39978a29f90a5f738f3e14, d14e08374fc7197d6a0de468c968ae8ba3aadbf9315476fd39071831f5923662, e491352788e56ca4603acc411ffe1a49fefd76ed8b163af86cf5ee5f4c38645b, 40f452260bef3f29dede136108fc08a88d5a5250310281067087da6f0baddff7, 8a7806365bbd98d88b4c13832ebfa305f6abaeaf32cfa2b7dd25c4fa489b79fb, bbfcd72618817ef8c99eb663e1f80375835bd51efebdc69b55884ad7afb3a0ef, context: {ledger_id: "create-daml-app-sandbox", cmd: "GetActiveContractsRequest(OneAnd(TemplateId(Some(bbfcd72618817ef8c99eb663e1f80375835bd51efebdc69b55884ad7afb3a0ef),User,User),Set()),Map(),None)", request_id: "d45c0c95-1576-480c-b048-f59919a1d139", instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", application_id: "create-daml-app", read_as: "List()", act_as: "List(party-c276900f)"} 24-03-2022 12:43:10.192 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "d45c0c95-1576-480c-b048-f59919a1d139"} 24-03-2022 12:43:10.420 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/create from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "90767a4d-bf5f-4a9c-a633-9c9bf4374ab1"} 24-03-2022 12:43:10.490 [http-json-ledger-api-akka.actor.default-dispatcher-11] INFO com.daml.http.CommandService - Submitting create command, context: {command_id: "9371a5a2-1ab5-4deb-8cec-ad21c0e620dc", ledger_id: "create-daml-app-sandbox", request_id: "90767a4d-bf5f-4a9c-a633-9c9bf4374ab1", instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", application_id: "create-daml-app", template_id: "TemplateId(bbfcd72618817ef8c99eb663e1f80375835bd51efebdc69b55884ad7afb3a0ef,User,User)", read_as: "List()", act_as: "List(party-c276900f)"} 24-03-2022 12:43:12.870 [http-json-ledger-api-akka.actor.default-dispatcher-17] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "90767a4d-bf5f-4a9c-a633-9c9bf4374ab1"} 24-03-2022 12:43:12.885 [http-json-ledger-api-akka.actor.default-dispatcher-17] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/fetch from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "fd827c73-d3b8-4e42-877a-ce9af707da2a"} 24-03-2022 12:43:12.992 [http-json-ledger-api-akka.actor.default-dispatcher-11] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "fd827c73-d3b8-4e42-877a-ce9af707da2a"} 24-03-2022 12:43:13.004 [http-json-ledger-api-akka.actor.default-dispatcher-11] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/query from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "94adec23-cb1a-464b-9fad-8bf7da06b99f"} 24-03-2022 12:43:13.017 [http-json-ledger-api-akka.actor.default-dispatcher-13] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "94adec23-cb1a-464b-9fad-8bf7da06b99f"} 24-03-2022 12:43:13.074 [http-json-ledger-api-akka.actor.default-dispatcher-7] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "42f7aaf6-f3f7-4138-a4c6-1be224c100bc"} 24-03-2022 12:43:13.121 [http-json-ledger-api-akka.actor.default-dispatcher-17] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "42f7aaf6-f3f7-4138-a4c6-1be224c100bc"} Compiled successfully! You can now view create-daml-app in the browser. Local: http://localhost:3000 On Your Network: http://192.168.1.114:3000 Note that the development build is not optimized. To create a production build, use npm run build. Request with path /v1/fetch proxied from host localhost:3000 to host http://localhost:undefined 24-03-2022 12:43:53.540 [http-json-ledger-api-akka.actor.default-dispatcher-11] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "f1da2b78-e020-40fc-b4cc-e635fc78f8fb"} 24-03-2022 12:43:53.681 [http-json-ledger-api-akka.actor.default-dispatcher-7] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "f1da2b78-e020-40fc-b4cc-e635fc78f8fb"} 24-03-2022 12:43:53.690 [http-json-ledger-api-akka.actor.default-dispatcher-7] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "42e89b95-f5b7-4c39-bcd8-4264e86a924d"} 24-03-2022 12:43:53.802 [http-json-ledger-api-akka.actor.default-dispatcher-13] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "42e89b95-f5b7-4c39-bcd8-4264e86a924d"} 24-03-2022 12:43:53.814 [http-json-ledger-api-akka.actor.default-dispatcher-13] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "fd54814b-fc1f-479b-b65a-1b3bc59392b8"} 24-03-2022 12:43:53.923 [http-json-ledger-api-akka.actor.default-dispatcher-6] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "fd54814b-fc1f-479b-b65a-1b3bc59392b8"} Request with path /v1/fetch proxied from host localhost:3000 to host http://localhost:undefined 24-03-2022 12:44:24.809 [http-json-ledger-api-akka.actor.default-dispatcher-17] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "cde08b6a-68c1-4f7d-9d20-f5bde5c478aa"} 24-03-2022 12:44:24.880 [http-json-ledger-api-akka.actor.default-dispatcher-9] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "cde08b6a-68c1-4f7d-9d20-f5bde5c478aa"} Request with path /v1/fetch proxied from host localhost:3000 to host http://localhost:undefined 24-03-2022 12:44:55.691 [http-json-ledger-api-akka.actor.default-dispatcher-8] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "8dfa15a7-044d-41f7-9597-37662c2ff5ff"} 24-03-2022 12:44:55.818 [http-json-ledger-api-akka.actor.default-dispatcher-6] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "8dfa15a7-044d-41f7-9597-37662c2ff5ff"} 24-03-2022 12:44:55.828 [http-json-ledger-api-akka.actor.default-dispatcher-6] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "fe3af4d3-7e89-41a5-bfb3-ec639967a0f8"} 24-03-2022 12:44:55.938 [http-json-ledger-api-akka.actor.default-dispatcher-8] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "fe3af4d3-7e89-41a5-bfb3-ec639967a0f8"} Request with path /v1/fetch proxied from host localhost:3000 to host http://localhost:undefined FAIL src/index.test.ts (154.562s) ● Console console.debug daml-types/index.js:98 Registered template bbfcd72618817ef8c99eb663e1f80375835bd51efebdc69b55884ad7afb3a0ef:User:Message. console.debug daml-types/index.js:98 Registered template bbfcd72618817ef8c99eb663e1f80375835bd51efebdc69b55884ad7afb3a0ef:User:User. ● log in as a new user, log out and log back in TimeoutError: waiting for selector ".test-select-main-menu" failed: timeout 30000ms exceeded 277 | await usernameInput.type(partyName); 278 | await page.click(".test-select-login-button"); > 279 | await page.waitForSelector(".test-select-main-menu"); | ^ 280 | }; 281 | // LOGIN_FUNCTION_END 282 | at new WaitTask (node_modules/puppeteer/lib/DOMWorld.js:407:34) at DOMWorld._waitForSelectorOrXPath (node_modules/puppeteer/lib/DOMWorld.js:332:26) at DOMWorld.waitForSelector (node_modules/puppeteer/lib/DOMWorld.js:315:21) at Frame.waitForSelector (node_modules/puppeteer/lib/FrameManager.js:384:51) at Frame.<anonymous> (node_modules/puppeteer/lib/helper.js:117:27) at Page.waitForSelector (node_modules/puppeteer/lib/Page.js:867:33) at login (src/index.test.ts:279:14) at Object.<anonymous> (src/index.test.ts:313:3) ● log in as three different users and start following each other TimeoutError: waiting for selector ".test-select-main-menu" failed: timeout 30000ms exceeded 277 | await usernameInput.type(partyName); 278 | await page.click(".test-select-login-button"); > 279 | await page.waitForSelector(".test-select-main-menu"); | ^ 280 | }; 281 | // LOGIN_FUNCTION_END 282 | at new WaitTask (node_modules/puppeteer/lib/DOMWorld.js:407:34) at DOMWorld._waitForSelectorOrXPath (node_modules/puppeteer/lib/DOMWorld.js:332:26) at DOMWorld.waitForSelector (node_modules/puppeteer/lib/DOMWorld.js:315:21) at Frame.waitForSelector (node_modules/puppeteer/lib/FrameManager.js:384:51) at Frame.<anonymous> (node_modules/puppeteer/lib/helper.js:117:27) at Page.waitForSelector (node_modules/puppeteer/lib/Page.js:867:33) at login (src/index.test.ts:279:14) at Object.<anonymous> (src/index.test.ts:349:3) ● error when following self TimeoutError: waiting for selector ".test-select-main-menu" failed: timeout 30000ms exceeded 277 | await usernameInput.type(partyName); 278 | await page.click(".test-select-login-button"); > 279 | await page.waitForSelector(".test-select-main-menu"); | ^ 280 | }; 281 | // LOGIN_FUNCTION_END 282 | at new WaitTask (node_modules/puppeteer/lib/DOMWorld.js:407:34) at DOMWorld._waitForSelectorOrXPath (node_modules/puppeteer/lib/DOMWorld.js:332:26) at DOMWorld.waitForSelector (node_modules/puppeteer/lib/DOMWorld.js:315:21) at Frame.waitForSelector (node_modules/puppeteer/lib/FrameManager.js:384:51) at Frame.<anonymous> (node_modules/puppeteer/lib/helper.js:117:27) at Page.waitForSelector (node_modules/puppeteer/lib/Page.js:867:33) at login (src/index.test.ts:279:14) at Object.<anonymous> (src/index.test.ts:455:3) ● error when adding a user that you are already following TimeoutError: waiting for selector ".test-select-main-menu" failed: timeout 30000ms exceeded 277 | await usernameInput.type(partyName); 278 | await page.click(".test-select-login-button"); > 279 | await page.waitForSelector(".test-select-main-menu"); | ^ 280 | }; 281 | // LOGIN_FUNCTION_END 282 | at new WaitTask (node_modules/puppeteer/lib/DOMWorld.js:407:34) at DOMWorld._waitForSelectorOrXPath (node_modules/puppeteer/lib/DOMWorld.js:332:26) at DOMWorld.waitForSelector (node_modules/puppeteer/lib/DOMWorld.js:315:21) at Frame.waitForSelector (node_modules/puppeteer/lib/FrameManager.js:384:51) at Frame.<anonymous> (node_modules/puppeteer/lib/helper.js:117:27) at Page.waitForSelector (node_modules/puppeteer/lib/Page.js:867:33) at login (src/index.test.ts:279:14) at Object.<anonymous> (src/index.test.ts:471:3) Test Suites: 1 failed, 1 passed, 2 total Tests: 4 failed, 3 passed, 7 total Snapshots: 0 total Time: 155.201s Ran all test suites. 12:45:26.673 [program-resource-pool-6] INFO c.d.g.a.server.akka.ServerAdapter - SERVER_IS_SHUTTING_DOWN(1,0): Server is shutting down, context: {err-context: "{location=ServerAdapter.scala:59}"} 12:45:26.675 [program-resource-pool-6] INFO c.d.g.a.server.akka.ServerAdapter - SERVER_IS_SHUTTING_DOWN(1,0): Server is shutting down, context: {err-context: "{location=ServerAdapter.scala:59}"} 12:45:26.676 [program-resource-pool-6] INFO c.d.g.a.server.akka.ServerAdapter - SERVER_IS_SHUTTING_DOWN(1,0): Server is shutting down, context: {err-context: "{location=ServerAdapter.scala:59}"} 12:45:26.677 [program-resource-pool-6] INFO c.d.g.a.server.akka.ServerAdapter - SERVER_IS_SHUTTING_DOWN(1,0): Server is shutting down, context: {err-context: "{location=ServerAdapter.scala:59}"} [WARN] [03/24/2022 12:45:26.723] [program-resource-pool-6] [CoordinatedShutdown(akka://sandbox-on-x)] Could not addJvmShutdownHook, due to: Shutdown in progress [INFO] [03/24/2022 12:45:26.724] [program-resource-pool-6] [CoordinatedShutdown(akka://sandbox-on-x)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 24-03-2022 12:45:26.630 [shutdownHook1] INFO com.daml.http.HttpService - Stopping server..., context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0"} 12:45:26.648 [program-resource-pool-6] INFO c.d.g.a.server.akka.ServerAdapter - SERVER_IS_SHUTTING_DOWN(1,0): Server is shutting down, context: {err-context: "{location=ServerAdapter.scala:59}"} FAIL (278.22s) Create app from template (0.04s) Patch the application code with messaging feature Extract codegen output (0.04s) Set up libraries and workspaces Install Jest, Puppeteer and other dependencies (120.36s) Run Puppeteer end-to-end tests (157.77s) callProcess: /home/aj/.cache/bazel/_bazel_aj/c437a451a7a277d35b539da616255ac8/sandbox/linux-sandbox/2357/execroot/compatibility/bazel-out/k8-opt/bin/create-daml-app-1.9.0-platform-0.0.0.runfiles/compatibility/external/node_nix/node_nix/lib/node_modules/npm/bin/npm-cli.js "run" "test" "--ci" "--all" "--scripts-prepend-node-path" (exit 1): failed 1 out of 1 tests failed (278.22s) ================================================================================ ``` * Revert "Skip create-daml-app compat tests pre 2.0.0" This reverts commit 762e61941f164e5deb10fc752f391b69003377cf. * Revert "Expose node in PATH in create-daml-app test" This reverts commit 8541b39d0f1b36c63366b90f97a69f7d950c92c5. * Revert "Update Node version in compatibility" This reverts commit 389639402d19c3ffa714e22bc61e042f82070b74. * Keep using NodeJS 14 for the compatibility tests NodeJS 16 is needed for M1 compatibility, but it breaks the compatibility tests. So, for now, we stick to the older version for the compatibility tests. Co-authored-by: Andreas Herrmann <andreas.herrmann@tweag.io>
2022-04-07 18:50:53 +03:00
load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains")
2019-04-04 11:33:38 +03:00
Darwin M1 Support (#13401) * Update rules_nixpkgs and rules_sh rules_sh was an implicit dependency before. We are now depending on it explicitly to be able to control the version. * Patch rules_nixpkgs to detect ARM M1 This should be upstreamed. * Patch rules_haskell for ARM M1 compatibility * Detect MacOS M1 OS and architecture. * Consistently use the CC toolchains' linker. This is important when we switch to GHC with LLVM. * Detect Darwin M1 in os_info.bzl * Use the new rules_nixpkgs host platform The old flags hard-coded the CPU architecture. The new platform automatically inherits from Bazel's builtin host platform. * Import the Go toolchain from rules_nixpkgs * Update nodejs to version 16 * Disable Haddock on lsp-types We're also disabling it on the other haskell_cabal_library instances, and it is causing build errors on M1. ``` Running Haddock on library for lsp-types-1.4.0.0.. creating /private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc/html/lsp-types creating /private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc/html creating /private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc creating /private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc/html creating /private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc/html/lsp-types /private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc/html/lsp-types/haddock-response42424-1.txt contents: <<< --prologue=/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc/html/lsp-types/haddock-prologue42424-0.txt --dump-interface=/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc/html/lsp-types/lsp-types.haddock --package-name=lsp-types --package-version=1.4.0.0 --since-qual=external --hide=Language.LSP.Types.CallHierarchy --hide=Language.LSP.Types.Cancellation --hide=Language.LSP.Types.ClientCapabilities --hide=Language.LSP.Types.CodeAction --hide=Language.LSP.Types.CodeLens --hide=Language.LSP.Types.Command --hide=Language.LSP.Types.Common --hide=Language.LSP.Types.Completion --hide=Language.LSP.Types.Configuration --hide=Language.LSP.Types.Declaration --hide=Language.LSP.Types.Definition --hide=Language.LSP.Types.Diagnostic --hide=Language.LSP.Types.DocumentColor --hide=Language.LSP.Types.DocumentFilter --hide=Language.LSP.Types.DocumentHighlight --hide=Language.LSP.Types.DocumentLink --hide=Language.LSP.Types.DocumentSymbol --hide=Language.LSP.Types.FoldingRange --hide=Language.LSP.Types.Formatting --hide=Language.LSP.Types.Hover --hide=Language.LSP.Types.Implementation --hide=Language.LSP.Types.Initialize --hide=Language.LSP.Types.Location --hide=Language.LSP.Types.LspId --hide=Language.LSP.Types.MarkupContent --hide=Language.LSP.Types.Method --hide=Language.LSP.Types.Message --hide=Language.LSP.Types.Parsing --hide=Language.LSP.Types.Progress --hide=Language.LSP.Types.Registration --hide=Language.LSP.Types.References --hide=Language.LSP.Types.Rename --hide=Language.LSP.Types.SelectionRange --hide=Language.LSP.Types.ServerCapabilities --hide=Language.LSP.Types.SemanticTokens --hide=Language.LSP.Types.SignatureHelp --hide=Language.LSP.Types.StaticRegistrationOptions --hide=Language.LSP.Types.TextDocument --hide=Language.LSP.Types.TypeDefinition --hide=Language.LSP.Types.Uri --hide=Language.LSP.Types.Utils --hide=Language.LSP.Types.Window --hide=Language.LSP.Types.WatchedFiles --hide=Language.LSP.Types.WorkspaceEdit --hide=Language.LSP.Types.WorkspaceFolders --hide=Language.LSP.Types.WorkspaceSymbol --html --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/array-0.5.4.0,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/array-0.5.4.0/array.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/base-4.15.1.0,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/base-4.15.1.0/base.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/binary-0.8.8.0,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/binary-0.8.8.0/binary.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/bytestring-0.10.12.1,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/bytestring-0.10.12.1/bytestring.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/containers-0.6.4.1,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/containers-0.6.4.1/containers.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/deepseq-1.4.5.0,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/deepseq-1.4.5.0/deepseq.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/directory-1.3.6.2,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/directory-1.3.6.2/directory.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/exceptions-0.10.4,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/exceptions-0.10.4/exceptions.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/filepath-1.4.2.1,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/filepath-1.4.2.1/filepath.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/ghc-bignum-1.1,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/ghc-bignum-1.1/ghc-bignum.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/ghc-boot-th-9.0.2,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/ghc-boot-th-9.0.2/ghc-boot-th.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/ghc-prim-0.7.0,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/ghc-prim-0.7.0/ghc-prim.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/integer-gmp-1.1,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/integer-gmp-1.1/integer-gmp.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/mtl-2.2.2,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/mtl-2.2.2/mtl.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/parsec-3.1.14.0,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/parsec-3.1.14.0/parsec.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/pretty-1.1.3.6,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/pretty-1.1.3.6/pretty.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/stm-2.5.0.0,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/stm-2.5.0.0/stm.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/template-haskell-2.17.0.0,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/template-haskell-2.17.0.0/template-haskell.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/text-1.2.5.0,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/text-1.2.5.0/text.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/time-1.9.3,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/time-1.9.3/time.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/transformers-0.5.6.2,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/transformers-0.5.6.2/transformers.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/unix-2.7.2.2,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/unix-2.7.2.2/unix.haddock --odir=/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc/html/lsp-types/ --title=lsp-types-1.4.0.0:\ Haskell\ library\ for\ the\ Microsoft\ Language\ Server\ Protocol,\ data\ types --optghc=-fbuilding-cabal-package --optghc=-O --optghc=-outputdir --optghc=../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build --optghc=-odir --optghc=../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build/tmp-42424 --optghc=-hidir --optghc=../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build/tmp-42424 --optghc=-stubdir --optghc=../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build/tmp-42424 --optghc=-i --optghc=-i../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build --optghc=-isrc --optghc=-i../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build/autogen --optghc=-i../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build/global-autogen --optghc=-I../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build/autogen --optghc=-I../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build/global-autogen --optghc=-I../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build --optghc=-optP-D__HADDOCK_VERSION__=2251 --optghc=-optP-include --optghc=-optP../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build/autogen/cabal_macros.h --optghc=-this-unit-id --optghc=lsp-types-1.4.0.0 --optghc=-hide-all-packages --optghc=-Wmissing-home-modules --optghc=-no-user-package-db --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/Diff-0.4.1/_install/Diff-0.4.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/base-orphans-0.8.6/_install/base-orphans-0.8.6.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/OneTuple-0.3.1/_install/OneTuple-0.3.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/splitmix-0.1.0.4/_install/splitmix-0.1.0.4.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/random-1.2.1/_install/random-1.2.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/QuickCheck-2.14.2/_install/QuickCheck-2.14.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/hashable-1.3.5.0/_install/hashable-1.3.5.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/integer-logarithms-1.0.3.1/_install/integer-logarithms-1.0.3.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/primitive-0.7.3.0/_install/primitive-0.7.3.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/scientific-0.3.7.0/_install/scientific-0.3.7.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/attoparsec-0.14.4/_install/attoparsec-0.14.4-attoparsec-internal.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/attoparsec-0.14.4/_install/attoparsec-0.14.4.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/base-compat-0.11.2/_install/base-compat-0.11.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/base-compat-batteries-0.11.2/_install/base-compat-batteries-0.11.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/data-fix-0.3.2/_install/data-fix-0.3.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/dlist-1.0/_install/dlist-1.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/indexed-traversable-0.1.2/_install/indexed-traversable-0.1.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/tagged-0.8.6.1/_install/tagged-0.8.6.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/unordered-containers-0.2.16.0/_install/unordered-containers-0.2.16.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/vector-0.12.3.1/_install/vector-0.12.3.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/indexed-traversable-instances-0.1.1/_install/indexed-traversable-instances-0.1.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/distributive-0.6.2.1/_install/distributive-0.6.2.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/transformers-compat-0.6.6/_install/transformers-compat-0.6.6.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/comonad-5.0.8/_install/comonad-5.0.8.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/th-abstraction-0.4.3.0/_install/th-abstraction-0.4.3.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/bifunctors-5.5.11/_install/bifunctors-5.5.11.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/StateVar-1.2.2/_install/StateVar-1.2.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/contravariant-1.5.5/_install/contravariant-1.5.5.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/semigroupoids-5.3.7/_install/semigroupoids-5.3.7.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/assoc-1.0.2/_install/assoc-1.0.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/these-1.1.1.1/_install/these-1.1.1.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/semialign-1.2.0.1/_install/semialign-1.2.0.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/strict-0.4.0.1/_install/strict-0.4.0.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/text-short-0.1.5/_install/text-short-0.1.5.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/time-compat-1.9.6.1/_install/time-compat-1.9.6.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/uuid-types-1.0.5/_install/uuid-types-1.0.5.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/witherable-0.4.2/_install/witherable-0.4.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/aeson-2.0.3.0/_install/aeson-2.0.3.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/data-default-class-0.1.2.0/_install/data-default-class-0.1.2.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/data-default-instances-containers-0.0.1/_install/data-default-instances-containers-0.0.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/data-default-instances-dlist-0.0.1/_install/data-default-instances-dlist-0.0.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/old-locale-1.0.0.7/_install/old-locale-1.0.0.7.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/data-default-instances-old-locale-0.0.1/_install/data-default-instances-old-locale-0.0.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/data-default-0.7.1.1/_install/data-default-0.7.1.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/network-3.1.2.7/_install/network-3.1.2.7.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/network-bsd-2.8.1.0/_install/network-bsd-2.8.1.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/hslogger-1.3.1.0/_install/hslogger-1.3.1.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/call-stack-0.4.0/_install/call-stack-0.4.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/profunctors-5.6.2/_install/profunctors-5.6.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/transformers-base-0.4.6/_install/transformers-base-0.4.6.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/free-5.1.7/_install/free-5.1.7.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/semigroups-0.19.2/_install/semigroups-0.19.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/void-0.7.3/_install/void-0.7.3.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/adjunctions-4.4/_install/adjunctions-4.4.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/invariant-0.5.5/_install/invariant-0.5.5.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/kan-extensions-5.2.3/_install/kan-extensions-5.2.3.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/parallel-3.2.2.0/_install/parallel-3.2.2.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/reflection-2.1.6/_install/reflection-2.1.6.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/lens-5.0.1/_install/lens-5.0.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/semirings-0.6/_install/semirings-0.6.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/mod-0.1.2.2/_install/mod-0.1.2.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/th-compat-0.1.3/_install/th-compat-0.1.3.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/network-uri-2.6.4.1/_install/network-uri-2.6.4.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/rope-utf16-splay-0.3.2.0/_install/rope-utf16-splay-0.3.2.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/some-1.0.3/_install/some-1.0.3.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/temporary-1.3/_install/temporary-1.3.conf.d --optghc=-package-db --optghc=/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/_install/lsp-types-1.4.0.0.conf.d --optghc=-package-db --optghc=/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/package.conf.inplace --optghc=-package-id --optghc=Diff-0.4.1 --optghc=-package-id --optghc=aeson-2.0.3.0 --optghc=-package-id --optghc=base-4.15.1.0 --optghc=-package-id --optghc=binary-0.8.8.0 --optghc=-package-id --optghc=bytestring-0.10.12.1 --optghc=-package-id --optghc=containers-0.6.4.1 --optghc=-package-id --optghc=data-default-0.7.1.1 --optghc=-package-id --optghc=deepseq-1.4.5.0 --optghc=-package-id --optghc=directory-1.3.6.2 --optghc=-package-id --optghc=dlist-1.0 --optghc=-package-id --optghc=filepath-1.4.2.1 --optghc=-package-id --optghc=hashable-1.3.5.0 --optghc=-package-id --optghc=hslogger-1.3.1.0 --optghc=-package-id --optghc=lens-5.0.1 --optghc=-package-id --optghc=mod-0.1.2.2 --optghc=-package-id --optghc=mtl-2.2.2 --optghc=-package-id --optghc=network-uri-2.6.4.1 --optghc=-package-id --optghc=rope-utf16-splay-0.3.2.0 --optghc=-package-id --optghc=scientific-0.3.7.0 --optghc=-package-id --optghc=some-1.0.3 --optghc=-package-id --optghc=template-haskell-2.17.0.0 --optghc=-package-id --optghc=temporary-1.3 --optghc=-package-id --optghc=text-1.2.5.0 --optghc=-package-id --optghc=unordered-containers-0.2.16.0 --optghc=-XHaskell2010 --optghc=-XStrictData --optghc=-Wall -B/nix/store/z8577sg7xny6fxhndrrrkpvzhn53w9vc-ghc-native-bignum-9.0.2/lib/ghc-9.0.2 src/Language/LSP/Types.hs src/Language/LSP/Types/Capabilities.hs src/Language/LSP/Types/Lens.hs src/Language/LSP/Types/SMethodMap.hs src/Language/LSP/VFS.hs src/Data/IxMap.hs src/Language/LSP/Types/CallHierarchy.hs src/Language/LSP/Types/Cancellation.hs src/Language/LSP/Types/ClientCapabilities.hs src/Language/LSP/Types/CodeAction.hs src/Language/LSP/Types/CodeLens.hs src/Language/LSP/Types/Command.hs src/Language/LSP/Types/Common.hs src/Language/LSP/Types/Completion.hs src/Language/LSP/Types/Configuration.hs src/Language/LSP/Types/Declaration.hs src/Language/LSP/Types/Definition.hs src/Language/LSP/Types/Diagnostic.hs src/Language/LSP/Types/DocumentColor.hs src/Language/LSP/Types/DocumentFilter.hs src/Language/LSP/Types/DocumentHighlight.hs src/Language/LSP/Types/DocumentLink.hs src/Language/LSP/Types/DocumentSymbol.hs src/Language/LSP/Types/FoldingRange.hs src/Language/LSP/Types/Formatting.hs src/Language/LSP/Types/Hover.hs src/Language/LSP/Types/Implementation.hs src/Language/LSP/Types/Initialize.hs src/Language/LSP/Types/Location.hs src/Language/LSP/Types/LspId.hs src/Language/LSP/Types/MarkupContent.hs src/Language/LSP/Types/Method.hs src/Language/LSP/Types/Message.hs src/Language/LSP/Types/Parsing.hs src/Language/LSP/Types/Progress.hs src/Language/LSP/Types/Registration.hs src/Language/LSP/Types/References.hs src/Language/LSP/Types/Rename.hs src/Language/LSP/Types/SelectionRange.hs src/Language/LSP/Types/ServerCapabilities.hs src/Language/LSP/Types/SemanticTokens.hs src/Language/LSP/Types/SignatureHelp.hs src/Language/LSP/Types/StaticRegistrationOptions.hs src/Language/LSP/Types/TextDocument.hs src/Language/LSP/Types/TypeDefinition.hs src/Language/LSP/Types/Uri.hs src/Language/LSP/Types/Utils.hs src/Language/LSP/Types/Window.hs src/Language/LSP/Types/WatchedFiles.hs src/Language/LSP/Types/WorkspaceEdit.hs src/Language/LSP/Types/WorkspaceFolders.hs src/Language/LSP/Types/WorkspaceSymbol.hs >>> /private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc/html/lsp-types/haddock-response42424-1.txt Environment: [("CABAL_VERBOSE","True"),("CC_WRAPPER_CC_PATH","external/local_config_cc/cc_wrapper.sh"),("CC_WRAPPER_CPU","darwin_arm64"),("CC_WRAPPER_PLATFORM","darwin"),("CODESIGN_ALLOCATE","/nix/store/3ibr5yy13sxl2vb5rig8fivj85sqcvf2-cctools-port-949.0.1/bin/codesign_allocate"),("HOME","/var/empty"),("LANG","C.UTF-8"),("LC_CTYPE","UTF-8"),("LD_LIBRARY_PATH",""),("LIBRARY_PATH",""),("PATH","/nix/store/xqbgx1y5xh2k13c6nizlprkp0j8mcw6w-clang-wrapper-12.0.1/bin:/nix/store/p90xw78bb3xsxg5v7k31qj5hpwm2pngp-llvm-12.0.1/bin:/nix/store/5havjxkv59cprx4czgi1lwnvv7y22dzi-posix-toolchain/bin"),("PWD","/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/external/lsp-types"),("PYTHONPATH","/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/runghc.runfiles:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/runghc.runfiles/:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/runghc.runfiles/bazel_tools:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/runghc.runfiles/com_github_digital_asset_daml:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/runghc.runfiles/local_config_cc:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/runghc.runfiles/rules_haskell:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/runghc.runfiles/rules_haskell_ghc_nixpkgs:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/runghc.runfiles/rules_python:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/cabal_wrapper.runfiles:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/cabal_wrapper.runfiles/:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/cabal_wrapper.runfiles/bazel_tools:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/cabal_wrapper.runfiles/com_github_digital_asset_daml:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/cabal_wrapper.runfiles/rules_haskell"),("RULES_HASKELL_DOCDIR_PATH","/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/base-4.15.1.0"),("RULES_HASKELL_EXEC_ROOT","/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml"),("RULES_HASKELL_GHC_PATH","/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/external/rules_haskell_ghc_nixpkgs/bin/ghc"),("RULES_HASKELL_GHC_PKG_PATH","/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/external/rules_haskell_ghc_nixpkgs/bin/ghc-pkg"),("RULES_HASKELL_LIBDIR_PATH","/nix/store/z8577sg7xny6fxhndrrrkpvzhn53w9vc-ghc-native-bignum-9.0.2/lib/ghc-9.0.2"),("RUNFILES_DIR","/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/runghc.runfiles"),("SDKROOT","macosx"),("SHLVL","0"),("TEMP","/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/tmp"),("TMP","/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/tmp"),("TMPDIR","/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/tmp"),("__CF_USER_TEXT_ENCODING","0x1F5:0x0:0x0")] /private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/external/rules_haskell_ghc_nixpkgs/bin/haddock '@/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc/html/lsp-types/haddock-response42424-1.txt' 0% ( 0 / 7) in 'Data.IxMap' Missing documentation for: Module header IxOrd (src/Data/IxMap.hs:17) IxMap (src/Data/IxMap.hs:21) emptyIxMap (src/Data/IxMap.hs:23) insertIxMap (src/Data/IxMap.hs:26) lookupIxMap (src/Data/IxMap.hs:31) pickFromIxMap (src/Data/IxMap.hs:37) `cc' failed in phase `Linker'. (Exit code: 134) /private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/external/rules_haskell_ghc_nixpkgs/bin/haddock returned ExitFailure 1 Target //compiler/damlc:damlc failed to build ERROR: /Users/builder/daml-andreas/compiler/damlc/BUILD.bazel:38:9 Middleman _middlemen/compiler_Sdamlc_Sdamlc-runfiles failed: (Exit 1): cabal_wrapper failed: error executing command (cd /private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml && \ exec env - \ CABAL_VERBOSE=True \ CC_WRAPPER_CC_PATH=external/local_config_cc/cc_wrapper.sh \ CC_WRAPPER_CPU=darwin_arm64 \ CC_WRAPPER_PLATFORM=darwin \ LANG=C.UTF-8 \ PATH=/nix/store/5havjxkv59cprx4czgi1lwnvv7y22dzi-posix-toolchain/bin \ RULES_HASKELL_DOCDIR_PATH=/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/base-4.15.1.0 \ RULES_HASKELL_GHC_PATH=external/rules_haskell_ghc_nixpkgs/bin/ghc \ RULES_HASKELL_GHC_PKG_PATH=external/rules_haskell_ghc_nixpkgs/bin/ghc-pkg \ RULES_HASKELL_LIBDIR_PATH=/nix/store/z8577sg7xny6fxhndrrrkpvzhn53w9vc-ghc-native-bignum-9.0.2/lib/ghc-9.0.2 \ SDKROOT=macosx \ bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/cabal_wrapper bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types_cabal_wrapper_args.json) Execution platform: @io_tweag_rules_nixpkgs//nixpkgs/platforms:host Use --sandbox_debug to see verbose messages from the sandbox INFO: Elapsed time: 344.702s, Critical Path: 329.09s INFO: 49 processes: 14 internal, 35 processwrapper-sandbox. FAILED: Build did NOT complete successfully FAILED: Build did NOT complete successfully ``` * Disable create-daml-app tests on MacOS M1 These fail to build because puppeteer fails to install Chromium on M1. See https://github.com/digital-asset/daml/pull/13250. * Resign binaries after patching in package-app Otherwise they fail to execute on MacOS Monterey on M1. They symptom is that executing or otherwise loading the binary (e.g. into lldb) fails with exit code -9 without further indications. * Use GHC with LLVM on MacOS M1 The native backend only supports M1 starting from GHC 9.2. However, we are still on GHC 9.0. We wrap GHC to ensure that the LLVM toolchain and the codesign tool are present in the environment and point to the correct versions provided by nixpkgs. * Update the CC toolchain for MacOS M1 compatibility Use nixpkgs `nix-support/cc-cflags` file to provide default flags instead of using `makeWrapper`. On M1 there was an issue where passing `-l` flags or `-isystem` to `cc -v` would cause the following errors: ``` lang version 11.1.0 Target: aarch64-apple-darwin Thread model: posix InstalledDir: /nix/store/v6iidz79b425hli98g45xq9iblapn1zy-clang-11.1.0/bin "/nix/store/b82mvqzvdx5mh1n9n77v8h5vk9fgqrxj-clang-wrapper-11.1.0/bin/ld" -demangle -lto_library /nix/store/v6iidz79b425hli98g45xq9iblapn1zy-clang-11.1.0/lib/libLTO.dylib -dynamic -arch arm64 -platform_version macos 11.0.0 0.0.0 -o a.out -L/nix/store/hc8a94w57ppwmn2gscm56pvlwi3zhyh1-libSystem-11.0.0/lib -L/nix/store/6f5ygwif1r523jj2qfwfiwix0fga4rgp-clang-11.1.0-lib/lib -L/nix/store/7pkxnbhpi0c10w18rirj8zxz3wv571nj-libcxx-11.1.0/lib -no_uuid -arch arm64 -lSystem /nix/store/b82mvqzvdx5mh1n9n77v8h5vk9fgqrxj-clang-wrapper-11.1.0/resource-root/lib/darwin/libclang_rt.osx.a Undefined symbols for architecture arm64: "_main", referenced from: implicit entry/start for main executable ld: symbol(s) not found for architecture arm64 ``` This also includes additional standard library search paths: `-isystem ${llvmPackages_12.libcxx.dev}/include/c++/v1` alone is not enough because some headers in it are [wrapper headers](https://gcc.gnu.org/onlinedocs/cpp/Wrapper-Headers.html) that use `include_next` directives. For these to resolve we need to add the compiler's builtin headers to the search path as well. This also sets `-Wno-elaborated-enum-base` to avoid build failures of absl on MacOS Monterey M1. ``` In file included from external/com_google_absl/absl/time/internal/cctz/src/time_zone_lookup.cc:26: In file included from /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFTimeZone.h:13: /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:474:9: error: non-defining declaration of enumeration with a fixed underlying type is only permitted as a standalone declaration; missing list of enumerators? [-Welaborated-enum-base] typedef CF_ENUM(CFIndex, CFComparisonResult) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFAvailability.h:169:55: note: expanded from macro 'CF_ENUM' \#define CF_ENUM(...) __CF_ENUM_GET_MACRO(__VA_ARGS__, __CF_NAMED_ENUM, __CF_ANON_ENUM, )(__VA_ARGS__) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFAvailability.h:134:48: note: expanded from macro '__CF_ENUM_GET_MACRO' \#define __CF_ENUM_GET_MACRO(_1, _2, NAME, ...) NAME ^ /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFAvailability.h:142:75: note: expanded from macro '__CF_NAMED_ENUM' \#define __CF_NAMED_ENUM(_type, _name) enum __CF_ENUM_ATTRIBUTES _name : _type _name; enum _name : _type ^~~~~~~ In file included from external/com_google_absl/absl/time/internal/cctz/src/time_zone_lookup.cc:26: In file included from /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFTimeZone.h:18: In file included from /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFString.h:17: /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFCharacterSet.h:62:9: error: non-defining declaration of enumeration with a fixed underlying type is only permitted as a standalone decla ration; missing list of enumerators? [-Welaborated-enum-base] typedef CF_ENUM(CFIndex, CFCharacterSetPredefinedSet) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFAvailability.h:169:55: note: expanded from macro 'CF_ENUM' \#define CF_ENUM(...) __CF_ENUM_GET_MACRO(__VA_ARGS__, __CF_NAMED_ENUM, __CF_ANON_ENUM, )(__VA_ARGS__) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFAvailability.h:134:48: note: expanded from macro '__CF_ENUM_GET_MACRO' \#define __CF_ENUM_GET_MACRO(_1, _2, NAME, ...) NAME ^ /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFAvailability.h:142:75: note: expanded from macro '__CF_NAMED_ENUM' \#define __CF_NAMED_ENUM(_type, _name) enum __CF_ENUM_ATTRIBUTES _name : _type _name; enum _name : _type ^~~~~~~ ... ``` * Link libc++ in fat_cc_library on MacOS * Build on native ARM M1 instead of Rosetta changelog_begin changelog_end * Drop unused ghcLLVMWrapper * Select ghcWithLLVM within Nix If we generally expose ghcWithLLVM from Nix and then select on the Bazel, then we'd need to filter that derivation out from the Nix and dev-tool build step on CI. * fmt * Update Node version in compatibility * Expose node in PATH in create-daml-app test It seems that the node update made the `--scripts-prepend-node-path` flag less effective than it was before. Without explicitly adding `node` to `PATH` the install step fails with the following error: ``` Failure: Command "CreateProcess {cmdspec = RawCommand "/home/aj/.cache/bazel/_bazel_aj/c437a451a7a277d35b539da616255ac8/sandbox/linux-sandbox/1435/execroot/compatibility/bazel-out/k8-opt/bin/create-daml-app-0.0.0-platform-2.0.0.runfiles/compatibility/external/node_nix/node_nix/lib/node_modules/npm/bin/npm-cli.js" ["install","--scripts-prepend-node-path"], cwd = Nothing, env = Nothing, std_in = Inherit, std_out = Inherit, std_err = Inherit, close_fds = False, create_group = False, delegate_ctlc = False, detach_console = False, create_new_console = False, new_session = False, child_group = Nothing, child_user = Nothing, use_process_jobs = False}" exited with ExitFailure 127 npm ERR! code 127 npm ERR! path /tmp/extra-dir-7515936101075/create-daml-app/ui/node_modules/puppeteer npm ERR! command failed npm ERR! command sh -c node install.js npm ERR! sh: line 1: node: command not found npm ERR! A complete log of this run can be found in: npm ERR! /tmp/extra-dir-7515936101074/_logs/2022-03-24T10_18_15_227Z-debug.log ``` * Skip create-daml-app compat tests pre 2.0.0 changelog_begin changelog_end In these tests the install step fails with the following error due to mismatch babel-jest dependency versions: ``` ==================== Test output for //:create-daml-app-1.8.1-platform-0.0.0: Create Daml App tests Getting Started Guide: WARNING: Specifying the template via daml new create-daml-app create-daml-app is deprecated. The recommended way of specifying the template is daml new create-daml-app --template create-daml-app Created a new project in "create-daml-app" based on the template "create-daml-app". > create-daml-app@0.1.0 test > react-scripts test --testURL='http://localhost:7575' There might be a problem with the project dependency tree. It is likely not a bug in Create React App, but something you need to fix locally. The react-scripts package provided by Create React App requires a dependency: "babel-jest": "^24.9.0" Don't try to install it manually: your package manager does it automatically. However, a different version of babel-jest was detected higher up in the tree: /tmp/extra-dir-3298351016846/create-daml-app/ui/node_modules/babel-jest (version: 25.5.1) Manually installing incompatible versions is known to cause hard-to-debug issues. If you would prefer to ignore this check, add SKIP_PREFLIGHT_CHECK=true to an .env file in your project. That will permanently disable this message but you might encounter other issues. To fix the dependency tree, try following the steps below in the exact order: 1. Delete package-lock.json (not package.json!) and/or yarn.lock in your project folder. 2. Delete node_modules in your project folder. 3. Remove "babel-jest" from dependencies and/or devDependencies in the package.json file in your project folder. 4. Run npm install or yarn, depending on the package manager you use. In most cases, this should be enough to fix the problem. If this has not helped, there are a few other things you can try: 5. If you used npm, install yarn (http://yarnpkg.com/) and repeat the above steps with it instead. This may help because npm has known issues with package hoisting which may get resolved in future versions. 6. Check if /tmp/extra-dir-3298351016846/create-daml-app/ui/node_modules/babel-jest is outside your project directory. For example, you might have accidentally installed something in your home folder. 7. Try running npm ls babel-jest in your project folder. This will tell you which other package (apart from the expected react-scripts) installed babel-jest. If nothing else helps, add SKIP_PREFLIGHT_CHECK=true to an .env file in your project. That would permanently disable this preflight check in case you want to proceed anyway. P.S. We know this message is long but please read the steps above :-) We hope you find them helpful! FAIL (125.62s) Create app from template (0.05s) Patch the application code with messaging feature Extract codegen output (0.06s) Set up libraries and workspaces (0.01s) Install Jest, Puppeteer and other dependencies (123.95s) Run Puppeteer end-to-end tests (1.54s) callProcess: /home/aj/.cache/bazel/_bazel_aj/c437a451a7a277d35b539da616255ac8/sandbox/linux-sandbox/2351/execroot/compatibility/bazel-out/k8-opt/bin/create-daml-app-1.8.1-platform-0.0.0.runfiles/compatibility/external/node_nix/node_nix/lib/node_modules/npm/bin/npm-cli.js "run" "test" "--ci" "--all" "--scripts-prepend-node-path" (exit 1): failed 1 out of 1 tests failed (125.62s) ================================================================================ ``` Applying the suggested `SKIP_PREFLIGHT_CHECK=true` fix leads to the following failure instead: ``` ==================== Test output for //:create-daml-app-1.9.0-platform-0.0.0: Create Daml App tests Getting Started Guide: WARNING: Specifying the template via daml new create-daml-app create-daml-app is deprecated. The recommended way of specifying the template is daml new create-daml-app --template create-daml-app Created a new project in "create-daml-app" based on the template "create-daml-app". > create-daml-app@0.1.0 test > react-scripts test --testURL='http://localhost:7575' PASS src/components/App.test.tsx ● Console console.debug daml-types/index.js:98 Registered template bbfcd72618817ef8c99eb663e1f80375835bd51efebdc69b55884ad7afb3a0ef:User:Message. console.debug daml-types/index.js:98 Registered template bbfcd72618817ef8c99eb663e1f80375835bd51efebdc69b55884ad7afb3a0ef:User:User. 12:42:55.745 [program-resource-pool-4] INFO c.d.l.sandbox.AkkaSubmissionsBridge - Instantiated Akka submissions bridge., context: {participantId: "sandbox"} 12:42:57.897 [program-resource-pool-3] INFO c.d.ledger.sandbox.SandboxOnXRunner - Initialized sandbox-on-x with conflict checking ledger bridge, version 0.0.0, run-mode = combined participant, index DB backend = h2database, participant-id = sandbox, ledger-id = create-daml-app-sandbox, port = 0, time mode = wall-clock time, allowed language versions = [min = LanguageVersion(V1,LanguageMinorVersion(6)), max = LanguageVersion(V1,LanguageMinorVersion(14))], authentication = all unauthenticated allowed, contract ids seeding = strong 24-03-2022 12:43:02.413 [main] INFO com.daml.http.Main - Config(ledgerHost=localhost, ledgerPort=34937, address=127.0.0.1, httpPort=7575, portFile=Some(json-api.port), packageReloadInterval=5 seconds, packageMaxInboundMessageSize=None, maxInboundMessageSize=4194304, tlsConfig=TlsConfiguration(false,None,None,None,None,REQUIRE,false,None), jdbcConfig=None, staticContentConfig=None, allowNonHttps=true, wsConfig=None, nonRepudiationCertificateFile=None, nonRepudiationPrivateKeyFile=None, nonRepudiationPrivateKeyAlgorithm=None, surrogateTpIdCacheMaxEntries=None), context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0"} 24-03-2022 12:43:02.745 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO akka.event.slf4j.Slf4jLogger - Slf4jLogger started 24-03-2022 12:43:03.041 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO com.daml.http.HttpService - HTTP Server pre-startup, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0"} 24-03-2022 12:43:03.251 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO com.daml.http.LedgerClient - Attempting to connect to the ledger localhost:34937 (600 attempts), context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0"} 24-03-2022 12:43:03.594 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO com.daml.http.LedgerClient - Attempt 1/600 succeeded!, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0"} 24-03-2022 12:43:03.596 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO com.daml.http.LedgerClient - Attempting to connect to the ledger localhost:34937 (600 attempts), context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0"} 24-03-2022 12:43:03.600 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO com.daml.http.LedgerClient - Attempt 1/600 succeeded!, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0"} 24-03-2022 12:43:03.601 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO com.daml.http.HttpService - contractDao: None, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0"} 24-03-2022 12:43:04.132 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO com.daml.http.Main - Started server: (ServerBinding(/127.0.0.1:7575),None), context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0"} 24-03-2022 12:43:05.280 [http-json-ledger-api-akka.actor.default-dispatcher-13] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "2ab72d48-cdef-4e00-ac17-0afda5084008"} 24-03-2022 12:43:05.791 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "2ab72d48-cdef-4e00-ac17-0afda5084008"} > create-daml-app@0.1.0 start > react-scripts start [HPM] Proxy created: function (pathname, req) { // Proxy requests to the http json api when in development const proxied = pathname.match("^/v1") && process.env.NODE_ENV === "development"; if (proxied) { console.log( `Request with path ${pathname} proxied from host ${req.headers.host} to host ${httpJsonDevUrl}` ); } return proxied; } -> http://localhost:undefined ℹ 「wds」: Project is running at http://192.168.1.114/ ℹ 「wds」: webpack output is served from ℹ 「wds」: Content not from webpack is served from /tmp/extra-dir-99443589994656/create-daml-app/ui/public ℹ 「wds」: 404s will fallback to / Starting the development server... 24-03-2022 12:43:07.495 [http-json-ledger-api-akka.actor.default-dispatcher-9] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "ce0131fd-6a4c-4eb1-8c1b-6d68418fde82"} 24-03-2022 12:43:07.606 [http-json-ledger-api-akka.actor.default-dispatcher-17] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "ce0131fd-6a4c-4eb1-8c1b-6d68418fde82"} 24-03-2022 12:43:07.623 [http-json-ledger-api-akka.actor.default-dispatcher-9] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "a4d1c7b0-406c-4297-a690-66ba2b692f19"} 24-03-2022 12:43:07.725 [http-json-ledger-api-akka.actor.default-dispatcher-16] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "a4d1c7b0-406c-4297-a690-66ba2b692f19"} 24-03-2022 12:43:07.741 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "bf65790a-38bc-4686-aa15-607c3c24661a"} 24-03-2022 12:43:07.846 [http-json-ledger-api-akka.actor.default-dispatcher-9] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "bf65790a-38bc-4686-aa15-607c3c24661a"} 24-03-2022 12:43:07.865 [http-json-ledger-api-akka.actor.default-dispatcher-13] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "3ab06283-270c-4994-852c-92c8c3b34ecc"} 24-03-2022 12:43:07.964 [http-json-ledger-api-akka.actor.default-dispatcher-14] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "3ab06283-270c-4994-852c-92c8c3b34ecc"} 24-03-2022 12:43:07.980 [http-json-ledger-api-akka.actor.default-dispatcher-8] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "b332b66a-6231-4492-817d-a2c58c85d04c"} 24-03-2022 12:43:08.084 [http-json-ledger-api-akka.actor.default-dispatcher-18] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "b332b66a-6231-4492-817d-a2c58c85d04c"} 24-03-2022 12:43:08.098 [http-json-ledger-api-akka.actor.default-dispatcher-17] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "8c77ce53-52b5-4e0c-993a-3f810b54bfec"} 24-03-2022 12:43:08.204 [http-json-ledger-api-akka.actor.default-dispatcher-9] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "8c77ce53-52b5-4e0c-993a-3f810b54bfec"} 24-03-2022 12:43:08.220 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "8813ad99-79c7-42c4-9719-5bdcfeb5077e"} 24-03-2022 12:43:08.326 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "8813ad99-79c7-42c4-9719-5bdcfeb5077e"} 24-03-2022 12:43:08.340 [http-json-ledger-api-akka.actor.default-dispatcher-18] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "deeca40b-0f05-47c9-927d-f71b0fe08ccb"} 24-03-2022 12:43:08.444 [http-json-ledger-api-akka.actor.default-dispatcher-18] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "deeca40b-0f05-47c9-927d-f71b0fe08ccb"} 24-03-2022 12:43:08.462 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "9be53420-eb4d-4ee3-9915-4a4381c51bea"} 24-03-2022 12:43:08.563 [http-json-ledger-api-akka.actor.default-dispatcher-18] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "9be53420-eb4d-4ee3-9915-4a4381c51bea"} 24-03-2022 12:43:08.576 [http-json-ledger-api-akka.actor.default-dispatcher-18] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "8d64b076-ff2b-4f5b-8653-95e5e949cb34"} 24-03-2022 12:43:08.685 [http-json-ledger-api-akka.actor.default-dispatcher-14] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "8d64b076-ff2b-4f5b-8653-95e5e949cb34"} 24-03-2022 12:43:08.697 [http-json-ledger-api-akka.actor.default-dispatcher-14] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "87246c50-00b7-453e-9771-83f176a3cbfc"} 24-03-2022 12:43:08.802 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "87246c50-00b7-453e-9771-83f176a3cbfc"} 24-03-2022 12:43:08.818 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "65bb8c95-a253-4ac5-a297-1abeff6ce44c"} 24-03-2022 12:43:08.920 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "65bb8c95-a253-4ac5-a297-1abeff6ce44c"} 24-03-2022 12:43:08.930 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/query from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "d45c0c95-1576-480c-b048-f59919a1d139"} 24-03-2022 12:43:10.016 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.PackageService - new package IDs loaded: bfcd37bd6b84768e86e432f5f6c33e25d9e7724a9d42e33875ff74f6348e733f, 518032f41fd0175461b35ae0c9691e08b4aea55e62915f8360af2cc7a1f2ba6c, cc348d369011362a5190fe96dd1f0dfbc697fdfd10e382b9e9666f0da05961b7, f78511c39cc293d5ed72acf5a4a81411af75a435df4106c5e37823af6589040b, 6839a6d3d430c569b2425e9391717b44ca324b88ba621d597778811b2d05031d, 99a2705ed38c1c26cbb8fe7acf36bbf626668e167a33335de932599219e0a235, 76bf0fd12bd945762a01f8fc5bbcdfa4d0ff20f8762af490f8f41d6237c6524f, e22bce619ae24ca3b8e6519281cb5a33b64b3190cc763248b4c3f9ad5087a92c, d58cf9939847921b2aab78eaa7b427dc4c649d25e6bee3c749ace4c3f52f5c97, 6c2c0667393c5f92f1885163068cd31800d2264eb088eb6fc740e11241b2bf06, c1f1f00558799eec139fb4f4c76f95fb52fa1837a5dd29600baa1c8ed1bdccfd, 733e38d36a2759688a4b2c4cec69d48e7b55ecc8dedc8067b815926c917a182a, 057eed1fd48c238491b8ea06b9b5bf85a5d4c9275dd3f6183e0e6b01730cc2ba, 52af8c65ac2c4b3d61637558935d2b0a92369ec4da39978a29f90a5f738f3e14, d14e08374fc7197d6a0de468c968ae8ba3aadbf9315476fd39071831f5923662, e491352788e56ca4603acc411ffe1a49fefd76ed8b163af86cf5ee5f4c38645b, 40f452260bef3f29dede136108fc08a88d5a5250310281067087da6f0baddff7, 8a7806365bbd98d88b4c13832ebfa305f6abaeaf32cfa2b7dd25c4fa489b79fb, bbfcd72618817ef8c99eb663e1f80375835bd51efebdc69b55884ad7afb3a0ef, context: {ledger_id: "create-daml-app-sandbox", cmd: "GetActiveContractsRequest(OneAnd(TemplateId(Some(bbfcd72618817ef8c99eb663e1f80375835bd51efebdc69b55884ad7afb3a0ef),User,User),Set()),Map(),None)", request_id: "d45c0c95-1576-480c-b048-f59919a1d139", instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", application_id: "create-daml-app", read_as: "List()", act_as: "List(party-c276900f)"} 24-03-2022 12:43:10.192 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "d45c0c95-1576-480c-b048-f59919a1d139"} 24-03-2022 12:43:10.420 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/create from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "90767a4d-bf5f-4a9c-a633-9c9bf4374ab1"} 24-03-2022 12:43:10.490 [http-json-ledger-api-akka.actor.default-dispatcher-11] INFO com.daml.http.CommandService - Submitting create command, context: {command_id: "9371a5a2-1ab5-4deb-8cec-ad21c0e620dc", ledger_id: "create-daml-app-sandbox", request_id: "90767a4d-bf5f-4a9c-a633-9c9bf4374ab1", instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", application_id: "create-daml-app", template_id: "TemplateId(bbfcd72618817ef8c99eb663e1f80375835bd51efebdc69b55884ad7afb3a0ef,User,User)", read_as: "List()", act_as: "List(party-c276900f)"} 24-03-2022 12:43:12.870 [http-json-ledger-api-akka.actor.default-dispatcher-17] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "90767a4d-bf5f-4a9c-a633-9c9bf4374ab1"} 24-03-2022 12:43:12.885 [http-json-ledger-api-akka.actor.default-dispatcher-17] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/fetch from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "fd827c73-d3b8-4e42-877a-ce9af707da2a"} 24-03-2022 12:43:12.992 [http-json-ledger-api-akka.actor.default-dispatcher-11] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "fd827c73-d3b8-4e42-877a-ce9af707da2a"} 24-03-2022 12:43:13.004 [http-json-ledger-api-akka.actor.default-dispatcher-11] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/query from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "94adec23-cb1a-464b-9fad-8bf7da06b99f"} 24-03-2022 12:43:13.017 [http-json-ledger-api-akka.actor.default-dispatcher-13] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "94adec23-cb1a-464b-9fad-8bf7da06b99f"} 24-03-2022 12:43:13.074 [http-json-ledger-api-akka.actor.default-dispatcher-7] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "42f7aaf6-f3f7-4138-a4c6-1be224c100bc"} 24-03-2022 12:43:13.121 [http-json-ledger-api-akka.actor.default-dispatcher-17] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "42f7aaf6-f3f7-4138-a4c6-1be224c100bc"} Compiled successfully! You can now view create-daml-app in the browser. Local: http://localhost:3000 On Your Network: http://192.168.1.114:3000 Note that the development build is not optimized. To create a production build, use npm run build. Request with path /v1/fetch proxied from host localhost:3000 to host http://localhost:undefined 24-03-2022 12:43:53.540 [http-json-ledger-api-akka.actor.default-dispatcher-11] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "f1da2b78-e020-40fc-b4cc-e635fc78f8fb"} 24-03-2022 12:43:53.681 [http-json-ledger-api-akka.actor.default-dispatcher-7] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "f1da2b78-e020-40fc-b4cc-e635fc78f8fb"} 24-03-2022 12:43:53.690 [http-json-ledger-api-akka.actor.default-dispatcher-7] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "42e89b95-f5b7-4c39-bcd8-4264e86a924d"} 24-03-2022 12:43:53.802 [http-json-ledger-api-akka.actor.default-dispatcher-13] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "42e89b95-f5b7-4c39-bcd8-4264e86a924d"} 24-03-2022 12:43:53.814 [http-json-ledger-api-akka.actor.default-dispatcher-13] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "fd54814b-fc1f-479b-b65a-1b3bc59392b8"} 24-03-2022 12:43:53.923 [http-json-ledger-api-akka.actor.default-dispatcher-6] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "fd54814b-fc1f-479b-b65a-1b3bc59392b8"} Request with path /v1/fetch proxied from host localhost:3000 to host http://localhost:undefined 24-03-2022 12:44:24.809 [http-json-ledger-api-akka.actor.default-dispatcher-17] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "cde08b6a-68c1-4f7d-9d20-f5bde5c478aa"} 24-03-2022 12:44:24.880 [http-json-ledger-api-akka.actor.default-dispatcher-9] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "cde08b6a-68c1-4f7d-9d20-f5bde5c478aa"} Request with path /v1/fetch proxied from host localhost:3000 to host http://localhost:undefined 24-03-2022 12:44:55.691 [http-json-ledger-api-akka.actor.default-dispatcher-8] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "8dfa15a7-044d-41f7-9597-37662c2ff5ff"} 24-03-2022 12:44:55.818 [http-json-ledger-api-akka.actor.default-dispatcher-6] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "8dfa15a7-044d-41f7-9597-37662c2ff5ff"} 24-03-2022 12:44:55.828 [http-json-ledger-api-akka.actor.default-dispatcher-6] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "fe3af4d3-7e89-41a5-bfb3-ec639967a0f8"} 24-03-2022 12:44:55.938 [http-json-ledger-api-akka.actor.default-dispatcher-8] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "fe3af4d3-7e89-41a5-bfb3-ec639967a0f8"} Request with path /v1/fetch proxied from host localhost:3000 to host http://localhost:undefined FAIL src/index.test.ts (154.562s) ● Console console.debug daml-types/index.js:98 Registered template bbfcd72618817ef8c99eb663e1f80375835bd51efebdc69b55884ad7afb3a0ef:User:Message. console.debug daml-types/index.js:98 Registered template bbfcd72618817ef8c99eb663e1f80375835bd51efebdc69b55884ad7afb3a0ef:User:User. ● log in as a new user, log out and log back in TimeoutError: waiting for selector ".test-select-main-menu" failed: timeout 30000ms exceeded 277 | await usernameInput.type(partyName); 278 | await page.click(".test-select-login-button"); > 279 | await page.waitForSelector(".test-select-main-menu"); | ^ 280 | }; 281 | // LOGIN_FUNCTION_END 282 | at new WaitTask (node_modules/puppeteer/lib/DOMWorld.js:407:34) at DOMWorld._waitForSelectorOrXPath (node_modules/puppeteer/lib/DOMWorld.js:332:26) at DOMWorld.waitForSelector (node_modules/puppeteer/lib/DOMWorld.js:315:21) at Frame.waitForSelector (node_modules/puppeteer/lib/FrameManager.js:384:51) at Frame.<anonymous> (node_modules/puppeteer/lib/helper.js:117:27) at Page.waitForSelector (node_modules/puppeteer/lib/Page.js:867:33) at login (src/index.test.ts:279:14) at Object.<anonymous> (src/index.test.ts:313:3) ● log in as three different users and start following each other TimeoutError: waiting for selector ".test-select-main-menu" failed: timeout 30000ms exceeded 277 | await usernameInput.type(partyName); 278 | await page.click(".test-select-login-button"); > 279 | await page.waitForSelector(".test-select-main-menu"); | ^ 280 | }; 281 | // LOGIN_FUNCTION_END 282 | at new WaitTask (node_modules/puppeteer/lib/DOMWorld.js:407:34) at DOMWorld._waitForSelectorOrXPath (node_modules/puppeteer/lib/DOMWorld.js:332:26) at DOMWorld.waitForSelector (node_modules/puppeteer/lib/DOMWorld.js:315:21) at Frame.waitForSelector (node_modules/puppeteer/lib/FrameManager.js:384:51) at Frame.<anonymous> (node_modules/puppeteer/lib/helper.js:117:27) at Page.waitForSelector (node_modules/puppeteer/lib/Page.js:867:33) at login (src/index.test.ts:279:14) at Object.<anonymous> (src/index.test.ts:349:3) ● error when following self TimeoutError: waiting for selector ".test-select-main-menu" failed: timeout 30000ms exceeded 277 | await usernameInput.type(partyName); 278 | await page.click(".test-select-login-button"); > 279 | await page.waitForSelector(".test-select-main-menu"); | ^ 280 | }; 281 | // LOGIN_FUNCTION_END 282 | at new WaitTask (node_modules/puppeteer/lib/DOMWorld.js:407:34) at DOMWorld._waitForSelectorOrXPath (node_modules/puppeteer/lib/DOMWorld.js:332:26) at DOMWorld.waitForSelector (node_modules/puppeteer/lib/DOMWorld.js:315:21) at Frame.waitForSelector (node_modules/puppeteer/lib/FrameManager.js:384:51) at Frame.<anonymous> (node_modules/puppeteer/lib/helper.js:117:27) at Page.waitForSelector (node_modules/puppeteer/lib/Page.js:867:33) at login (src/index.test.ts:279:14) at Object.<anonymous> (src/index.test.ts:455:3) ● error when adding a user that you are already following TimeoutError: waiting for selector ".test-select-main-menu" failed: timeout 30000ms exceeded 277 | await usernameInput.type(partyName); 278 | await page.click(".test-select-login-button"); > 279 | await page.waitForSelector(".test-select-main-menu"); | ^ 280 | }; 281 | // LOGIN_FUNCTION_END 282 | at new WaitTask (node_modules/puppeteer/lib/DOMWorld.js:407:34) at DOMWorld._waitForSelectorOrXPath (node_modules/puppeteer/lib/DOMWorld.js:332:26) at DOMWorld.waitForSelector (node_modules/puppeteer/lib/DOMWorld.js:315:21) at Frame.waitForSelector (node_modules/puppeteer/lib/FrameManager.js:384:51) at Frame.<anonymous> (node_modules/puppeteer/lib/helper.js:117:27) at Page.waitForSelector (node_modules/puppeteer/lib/Page.js:867:33) at login (src/index.test.ts:279:14) at Object.<anonymous> (src/index.test.ts:471:3) Test Suites: 1 failed, 1 passed, 2 total Tests: 4 failed, 3 passed, 7 total Snapshots: 0 total Time: 155.201s Ran all test suites. 12:45:26.673 [program-resource-pool-6] INFO c.d.g.a.server.akka.ServerAdapter - SERVER_IS_SHUTTING_DOWN(1,0): Server is shutting down, context: {err-context: "{location=ServerAdapter.scala:59}"} 12:45:26.675 [program-resource-pool-6] INFO c.d.g.a.server.akka.ServerAdapter - SERVER_IS_SHUTTING_DOWN(1,0): Server is shutting down, context: {err-context: "{location=ServerAdapter.scala:59}"} 12:45:26.676 [program-resource-pool-6] INFO c.d.g.a.server.akka.ServerAdapter - SERVER_IS_SHUTTING_DOWN(1,0): Server is shutting down, context: {err-context: "{location=ServerAdapter.scala:59}"} 12:45:26.677 [program-resource-pool-6] INFO c.d.g.a.server.akka.ServerAdapter - SERVER_IS_SHUTTING_DOWN(1,0): Server is shutting down, context: {err-context: "{location=ServerAdapter.scala:59}"} [WARN] [03/24/2022 12:45:26.723] [program-resource-pool-6] [CoordinatedShutdown(akka://sandbox-on-x)] Could not addJvmShutdownHook, due to: Shutdown in progress [INFO] [03/24/2022 12:45:26.724] [program-resource-pool-6] [CoordinatedShutdown(akka://sandbox-on-x)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 24-03-2022 12:45:26.630 [shutdownHook1] INFO com.daml.http.HttpService - Stopping server..., context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0"} 12:45:26.648 [program-resource-pool-6] INFO c.d.g.a.server.akka.ServerAdapter - SERVER_IS_SHUTTING_DOWN(1,0): Server is shutting down, context: {err-context: "{location=ServerAdapter.scala:59}"} FAIL (278.22s) Create app from template (0.04s) Patch the application code with messaging feature Extract codegen output (0.04s) Set up libraries and workspaces Install Jest, Puppeteer and other dependencies (120.36s) Run Puppeteer end-to-end tests (157.77s) callProcess: /home/aj/.cache/bazel/_bazel_aj/c437a451a7a277d35b539da616255ac8/sandbox/linux-sandbox/2357/execroot/compatibility/bazel-out/k8-opt/bin/create-daml-app-1.9.0-platform-0.0.0.runfiles/compatibility/external/node_nix/node_nix/lib/node_modules/npm/bin/npm-cli.js "run" "test" "--ci" "--all" "--scripts-prepend-node-path" (exit 1): failed 1 out of 1 tests failed (278.22s) ================================================================================ ``` * Revert "Skip create-daml-app compat tests pre 2.0.0" This reverts commit 762e61941f164e5deb10fc752f391b69003377cf. * Revert "Expose node in PATH in create-daml-app test" This reverts commit 8541b39d0f1b36c63366b90f97a69f7d950c92c5. * Revert "Update Node version in compatibility" This reverts commit 389639402d19c3ffa714e22bc61e042f82070b74. * Keep using NodeJS 14 for the compatibility tests NodeJS 16 is needed for M1 compatibility, but it breaks the compatibility tests. So, for now, we stick to the older version for the compatibility tests. Co-authored-by: Andreas Herrmann <andreas.herrmann@tweag.io>
2022-04-07 18:50:53 +03:00
go_register_toolchains(version = "1.16.9") if is_windows else None
2019-04-04 11:33:38 +03:00
Update protobuf docs plugin (#11880) * Try to upgrade protobuf docs plugin changelog_begin changelog_end * Fix extension number 65020 is already registered Building `//ledger-api/grpc-definitions:ledger-api-docs` [failed with](https://github.com/digital-asset/daml/issues/11761#issuecomment-978947565) ``` panic: proto: extension number 65020 is already registered on message google.protobuf.FieldOptions ``` Go dependencies are now pulled in via Gazelle. By default Gazelle will generate new proto rules for any `.proto` files encountered in third party Go dependencies. However, many of these already have pregenerated `.pb.go` files generate with the appropriate configuration. The problem can be avoided by configuring Gazelle to not generate new proto rules, but instead use pre-existing `.pb.go` files. For reference the field number is set in [go-proto-validators](https://github.com/mwitkow/go-proto-validators/blob/32a686adf8b5194d3ea07d632d49b6fb344af678/validator.proto#L19) which is an indirect dependency through protoc-gen-doc. In this case we need to update protoc-gen-validate to v0.6.2 to include https://github.com/envoyproxy/protoc-gen-validate/commit/4f41f10dde19ec4dd9dd8cf6f7537139f52fb58b which fixes unknown label errors. * ./fmt * Expose gRPC status.proto for Haskell bindings * Update Gazelle to support embedsrcs on Windows `protoc-gen-doc` relies on `go:embed` file embedding https://github.com/pseudomuto/protoc-gen-doc/blob/2dde01902b28e8b2201d935467bc4308ec912255/resources.go#L8. Gazelle supports `embedsrcs`, however, it did not generate the attribute correctly on Windows due to the different directory separator. This is fixed in https://github.com/bazelbuild/bazel-gazelle/pull/1101. * Add gazelle to compatibility workspace It's loaded into `@daml`'s top-level `BUILD` file and ends up being a dependency of the compatibility workspace as well. * shift go_googleapis import * Delete dead code protobuf is imported transitively. * Document how to add Go dependencies Co-authored-by: Moritz Kiefer <moritz.kiefer@purelyfunctional.org> Co-authored-by: Andreas Herrmann <andreas.herrmann@tweag.io>
2021-11-25 23:51:24 +03:00
# gazelle:repo bazel_gazelle
load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")
load("//:go_deps.bzl", "go_deps")
# gazelle:repository_macro go_deps.bzl%go_deps
go_deps()
Darwin M1 Support (#13401) * Update rules_nixpkgs and rules_sh rules_sh was an implicit dependency before. We are now depending on it explicitly to be able to control the version. * Patch rules_nixpkgs to detect ARM M1 This should be upstreamed. * Patch rules_haskell for ARM M1 compatibility * Detect MacOS M1 OS and architecture. * Consistently use the CC toolchains' linker. This is important when we switch to GHC with LLVM. * Detect Darwin M1 in os_info.bzl * Use the new rules_nixpkgs host platform The old flags hard-coded the CPU architecture. The new platform automatically inherits from Bazel's builtin host platform. * Import the Go toolchain from rules_nixpkgs * Update nodejs to version 16 * Disable Haddock on lsp-types We're also disabling it on the other haskell_cabal_library instances, and it is causing build errors on M1. ``` Running Haddock on library for lsp-types-1.4.0.0.. creating /private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc/html/lsp-types creating /private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc/html creating /private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc creating /private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc/html creating /private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc/html/lsp-types /private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc/html/lsp-types/haddock-response42424-1.txt contents: <<< --prologue=/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc/html/lsp-types/haddock-prologue42424-0.txt --dump-interface=/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc/html/lsp-types/lsp-types.haddock --package-name=lsp-types --package-version=1.4.0.0 --since-qual=external --hide=Language.LSP.Types.CallHierarchy --hide=Language.LSP.Types.Cancellation --hide=Language.LSP.Types.ClientCapabilities --hide=Language.LSP.Types.CodeAction --hide=Language.LSP.Types.CodeLens --hide=Language.LSP.Types.Command --hide=Language.LSP.Types.Common --hide=Language.LSP.Types.Completion --hide=Language.LSP.Types.Configuration --hide=Language.LSP.Types.Declaration --hide=Language.LSP.Types.Definition --hide=Language.LSP.Types.Diagnostic --hide=Language.LSP.Types.DocumentColor --hide=Language.LSP.Types.DocumentFilter --hide=Language.LSP.Types.DocumentHighlight --hide=Language.LSP.Types.DocumentLink --hide=Language.LSP.Types.DocumentSymbol --hide=Language.LSP.Types.FoldingRange --hide=Language.LSP.Types.Formatting --hide=Language.LSP.Types.Hover --hide=Language.LSP.Types.Implementation --hide=Language.LSP.Types.Initialize --hide=Language.LSP.Types.Location --hide=Language.LSP.Types.LspId --hide=Language.LSP.Types.MarkupContent --hide=Language.LSP.Types.Method --hide=Language.LSP.Types.Message --hide=Language.LSP.Types.Parsing --hide=Language.LSP.Types.Progress --hide=Language.LSP.Types.Registration --hide=Language.LSP.Types.References --hide=Language.LSP.Types.Rename --hide=Language.LSP.Types.SelectionRange --hide=Language.LSP.Types.ServerCapabilities --hide=Language.LSP.Types.SemanticTokens --hide=Language.LSP.Types.SignatureHelp --hide=Language.LSP.Types.StaticRegistrationOptions --hide=Language.LSP.Types.TextDocument --hide=Language.LSP.Types.TypeDefinition --hide=Language.LSP.Types.Uri --hide=Language.LSP.Types.Utils --hide=Language.LSP.Types.Window --hide=Language.LSP.Types.WatchedFiles --hide=Language.LSP.Types.WorkspaceEdit --hide=Language.LSP.Types.WorkspaceFolders --hide=Language.LSP.Types.WorkspaceSymbol --html --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/array-0.5.4.0,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/array-0.5.4.0/array.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/base-4.15.1.0,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/base-4.15.1.0/base.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/binary-0.8.8.0,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/binary-0.8.8.0/binary.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/bytestring-0.10.12.1,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/bytestring-0.10.12.1/bytestring.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/containers-0.6.4.1,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/containers-0.6.4.1/containers.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/deepseq-1.4.5.0,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/deepseq-1.4.5.0/deepseq.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/directory-1.3.6.2,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/directory-1.3.6.2/directory.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/exceptions-0.10.4,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/exceptions-0.10.4/exceptions.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/filepath-1.4.2.1,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/filepath-1.4.2.1/filepath.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/ghc-bignum-1.1,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/ghc-bignum-1.1/ghc-bignum.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/ghc-boot-th-9.0.2,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/ghc-boot-th-9.0.2/ghc-boot-th.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/ghc-prim-0.7.0,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/ghc-prim-0.7.0/ghc-prim.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/integer-gmp-1.1,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/integer-gmp-1.1/integer-gmp.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/mtl-2.2.2,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/mtl-2.2.2/mtl.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/parsec-3.1.14.0,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/parsec-3.1.14.0/parsec.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/pretty-1.1.3.6,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/pretty-1.1.3.6/pretty.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/stm-2.5.0.0,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/stm-2.5.0.0/stm.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/template-haskell-2.17.0.0,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/template-haskell-2.17.0.0/template-haskell.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/text-1.2.5.0,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/text-1.2.5.0/text.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/time-1.9.3,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/time-1.9.3/time.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/transformers-0.5.6.2,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/transformers-0.5.6.2/transformers.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/unix-2.7.2.2,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/unix-2.7.2.2/unix.haddock --odir=/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc/html/lsp-types/ --title=lsp-types-1.4.0.0:\ Haskell\ library\ for\ the\ Microsoft\ Language\ Server\ Protocol,\ data\ types --optghc=-fbuilding-cabal-package --optghc=-O --optghc=-outputdir --optghc=../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build --optghc=-odir --optghc=../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build/tmp-42424 --optghc=-hidir --optghc=../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build/tmp-42424 --optghc=-stubdir --optghc=../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build/tmp-42424 --optghc=-i --optghc=-i../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build --optghc=-isrc --optghc=-i../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build/autogen --optghc=-i../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build/global-autogen --optghc=-I../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build/autogen --optghc=-I../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build/global-autogen --optghc=-I../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build --optghc=-optP-D__HADDOCK_VERSION__=2251 --optghc=-optP-include --optghc=-optP../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build/autogen/cabal_macros.h --optghc=-this-unit-id --optghc=lsp-types-1.4.0.0 --optghc=-hide-all-packages --optghc=-Wmissing-home-modules --optghc=-no-user-package-db --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/Diff-0.4.1/_install/Diff-0.4.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/base-orphans-0.8.6/_install/base-orphans-0.8.6.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/OneTuple-0.3.1/_install/OneTuple-0.3.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/splitmix-0.1.0.4/_install/splitmix-0.1.0.4.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/random-1.2.1/_install/random-1.2.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/QuickCheck-2.14.2/_install/QuickCheck-2.14.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/hashable-1.3.5.0/_install/hashable-1.3.5.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/integer-logarithms-1.0.3.1/_install/integer-logarithms-1.0.3.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/primitive-0.7.3.0/_install/primitive-0.7.3.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/scientific-0.3.7.0/_install/scientific-0.3.7.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/attoparsec-0.14.4/_install/attoparsec-0.14.4-attoparsec-internal.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/attoparsec-0.14.4/_install/attoparsec-0.14.4.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/base-compat-0.11.2/_install/base-compat-0.11.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/base-compat-batteries-0.11.2/_install/base-compat-batteries-0.11.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/data-fix-0.3.2/_install/data-fix-0.3.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/dlist-1.0/_install/dlist-1.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/indexed-traversable-0.1.2/_install/indexed-traversable-0.1.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/tagged-0.8.6.1/_install/tagged-0.8.6.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/unordered-containers-0.2.16.0/_install/unordered-containers-0.2.16.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/vector-0.12.3.1/_install/vector-0.12.3.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/indexed-traversable-instances-0.1.1/_install/indexed-traversable-instances-0.1.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/distributive-0.6.2.1/_install/distributive-0.6.2.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/transformers-compat-0.6.6/_install/transformers-compat-0.6.6.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/comonad-5.0.8/_install/comonad-5.0.8.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/th-abstraction-0.4.3.0/_install/th-abstraction-0.4.3.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/bifunctors-5.5.11/_install/bifunctors-5.5.11.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/StateVar-1.2.2/_install/StateVar-1.2.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/contravariant-1.5.5/_install/contravariant-1.5.5.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/semigroupoids-5.3.7/_install/semigroupoids-5.3.7.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/assoc-1.0.2/_install/assoc-1.0.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/these-1.1.1.1/_install/these-1.1.1.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/semialign-1.2.0.1/_install/semialign-1.2.0.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/strict-0.4.0.1/_install/strict-0.4.0.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/text-short-0.1.5/_install/text-short-0.1.5.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/time-compat-1.9.6.1/_install/time-compat-1.9.6.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/uuid-types-1.0.5/_install/uuid-types-1.0.5.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/witherable-0.4.2/_install/witherable-0.4.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/aeson-2.0.3.0/_install/aeson-2.0.3.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/data-default-class-0.1.2.0/_install/data-default-class-0.1.2.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/data-default-instances-containers-0.0.1/_install/data-default-instances-containers-0.0.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/data-default-instances-dlist-0.0.1/_install/data-default-instances-dlist-0.0.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/old-locale-1.0.0.7/_install/old-locale-1.0.0.7.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/data-default-instances-old-locale-0.0.1/_install/data-default-instances-old-locale-0.0.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/data-default-0.7.1.1/_install/data-default-0.7.1.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/network-3.1.2.7/_install/network-3.1.2.7.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/network-bsd-2.8.1.0/_install/network-bsd-2.8.1.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/hslogger-1.3.1.0/_install/hslogger-1.3.1.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/call-stack-0.4.0/_install/call-stack-0.4.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/profunctors-5.6.2/_install/profunctors-5.6.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/transformers-base-0.4.6/_install/transformers-base-0.4.6.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/free-5.1.7/_install/free-5.1.7.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/semigroups-0.19.2/_install/semigroups-0.19.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/void-0.7.3/_install/void-0.7.3.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/adjunctions-4.4/_install/adjunctions-4.4.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/invariant-0.5.5/_install/invariant-0.5.5.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/kan-extensions-5.2.3/_install/kan-extensions-5.2.3.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/parallel-3.2.2.0/_install/parallel-3.2.2.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/reflection-2.1.6/_install/reflection-2.1.6.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/lens-5.0.1/_install/lens-5.0.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/semirings-0.6/_install/semirings-0.6.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/mod-0.1.2.2/_install/mod-0.1.2.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/th-compat-0.1.3/_install/th-compat-0.1.3.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/network-uri-2.6.4.1/_install/network-uri-2.6.4.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/rope-utf16-splay-0.3.2.0/_install/rope-utf16-splay-0.3.2.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/some-1.0.3/_install/some-1.0.3.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/temporary-1.3/_install/temporary-1.3.conf.d --optghc=-package-db --optghc=/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/_install/lsp-types-1.4.0.0.conf.d --optghc=-package-db --optghc=/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/package.conf.inplace --optghc=-package-id --optghc=Diff-0.4.1 --optghc=-package-id --optghc=aeson-2.0.3.0 --optghc=-package-id --optghc=base-4.15.1.0 --optghc=-package-id --optghc=binary-0.8.8.0 --optghc=-package-id --optghc=bytestring-0.10.12.1 --optghc=-package-id --optghc=containers-0.6.4.1 --optghc=-package-id --optghc=data-default-0.7.1.1 --optghc=-package-id --optghc=deepseq-1.4.5.0 --optghc=-package-id --optghc=directory-1.3.6.2 --optghc=-package-id --optghc=dlist-1.0 --optghc=-package-id --optghc=filepath-1.4.2.1 --optghc=-package-id --optghc=hashable-1.3.5.0 --optghc=-package-id --optghc=hslogger-1.3.1.0 --optghc=-package-id --optghc=lens-5.0.1 --optghc=-package-id --optghc=mod-0.1.2.2 --optghc=-package-id --optghc=mtl-2.2.2 --optghc=-package-id --optghc=network-uri-2.6.4.1 --optghc=-package-id --optghc=rope-utf16-splay-0.3.2.0 --optghc=-package-id --optghc=scientific-0.3.7.0 --optghc=-package-id --optghc=some-1.0.3 --optghc=-package-id --optghc=template-haskell-2.17.0.0 --optghc=-package-id --optghc=temporary-1.3 --optghc=-package-id --optghc=text-1.2.5.0 --optghc=-package-id --optghc=unordered-containers-0.2.16.0 --optghc=-XHaskell2010 --optghc=-XStrictData --optghc=-Wall -B/nix/store/z8577sg7xny6fxhndrrrkpvzhn53w9vc-ghc-native-bignum-9.0.2/lib/ghc-9.0.2 src/Language/LSP/Types.hs src/Language/LSP/Types/Capabilities.hs src/Language/LSP/Types/Lens.hs src/Language/LSP/Types/SMethodMap.hs src/Language/LSP/VFS.hs src/Data/IxMap.hs src/Language/LSP/Types/CallHierarchy.hs src/Language/LSP/Types/Cancellation.hs src/Language/LSP/Types/ClientCapabilities.hs src/Language/LSP/Types/CodeAction.hs src/Language/LSP/Types/CodeLens.hs src/Language/LSP/Types/Command.hs src/Language/LSP/Types/Common.hs src/Language/LSP/Types/Completion.hs src/Language/LSP/Types/Configuration.hs src/Language/LSP/Types/Declaration.hs src/Language/LSP/Types/Definition.hs src/Language/LSP/Types/Diagnostic.hs src/Language/LSP/Types/DocumentColor.hs src/Language/LSP/Types/DocumentFilter.hs src/Language/LSP/Types/DocumentHighlight.hs src/Language/LSP/Types/DocumentLink.hs src/Language/LSP/Types/DocumentSymbol.hs src/Language/LSP/Types/FoldingRange.hs src/Language/LSP/Types/Formatting.hs src/Language/LSP/Types/Hover.hs src/Language/LSP/Types/Implementation.hs src/Language/LSP/Types/Initialize.hs src/Language/LSP/Types/Location.hs src/Language/LSP/Types/LspId.hs src/Language/LSP/Types/MarkupContent.hs src/Language/LSP/Types/Method.hs src/Language/LSP/Types/Message.hs src/Language/LSP/Types/Parsing.hs src/Language/LSP/Types/Progress.hs src/Language/LSP/Types/Registration.hs src/Language/LSP/Types/References.hs src/Language/LSP/Types/Rename.hs src/Language/LSP/Types/SelectionRange.hs src/Language/LSP/Types/ServerCapabilities.hs src/Language/LSP/Types/SemanticTokens.hs src/Language/LSP/Types/SignatureHelp.hs src/Language/LSP/Types/StaticRegistrationOptions.hs src/Language/LSP/Types/TextDocument.hs src/Language/LSP/Types/TypeDefinition.hs src/Language/LSP/Types/Uri.hs src/Language/LSP/Types/Utils.hs src/Language/LSP/Types/Window.hs src/Language/LSP/Types/WatchedFiles.hs src/Language/LSP/Types/WorkspaceEdit.hs src/Language/LSP/Types/WorkspaceFolders.hs src/Language/LSP/Types/WorkspaceSymbol.hs >>> /private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc/html/lsp-types/haddock-response42424-1.txt Environment: [("CABAL_VERBOSE","True"),("CC_WRAPPER_CC_PATH","external/local_config_cc/cc_wrapper.sh"),("CC_WRAPPER_CPU","darwin_arm64"),("CC_WRAPPER_PLATFORM","darwin"),("CODESIGN_ALLOCATE","/nix/store/3ibr5yy13sxl2vb5rig8fivj85sqcvf2-cctools-port-949.0.1/bin/codesign_allocate"),("HOME","/var/empty"),("LANG","C.UTF-8"),("LC_CTYPE","UTF-8"),("LD_LIBRARY_PATH",""),("LIBRARY_PATH",""),("PATH","/nix/store/xqbgx1y5xh2k13c6nizlprkp0j8mcw6w-clang-wrapper-12.0.1/bin:/nix/store/p90xw78bb3xsxg5v7k31qj5hpwm2pngp-llvm-12.0.1/bin:/nix/store/5havjxkv59cprx4czgi1lwnvv7y22dzi-posix-toolchain/bin"),("PWD","/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/external/lsp-types"),("PYTHONPATH","/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/runghc.runfiles:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/runghc.runfiles/:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/runghc.runfiles/bazel_tools:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/runghc.runfiles/com_github_digital_asset_daml:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/runghc.runfiles/local_config_cc:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/runghc.runfiles/rules_haskell:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/runghc.runfiles/rules_haskell_ghc_nixpkgs:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/runghc.runfiles/rules_python:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/cabal_wrapper.runfiles:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/cabal_wrapper.runfiles/:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/cabal_wrapper.runfiles/bazel_tools:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/cabal_wrapper.runfiles/com_github_digital_asset_daml:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/cabal_wrapper.runfiles/rules_haskell"),("RULES_HASKELL_DOCDIR_PATH","/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/base-4.15.1.0"),("RULES_HASKELL_EXEC_ROOT","/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml"),("RULES_HASKELL_GHC_PATH","/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/external/rules_haskell_ghc_nixpkgs/bin/ghc"),("RULES_HASKELL_GHC_PKG_PATH","/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/external/rules_haskell_ghc_nixpkgs/bin/ghc-pkg"),("RULES_HASKELL_LIBDIR_PATH","/nix/store/z8577sg7xny6fxhndrrrkpvzhn53w9vc-ghc-native-bignum-9.0.2/lib/ghc-9.0.2"),("RUNFILES_DIR","/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/runghc.runfiles"),("SDKROOT","macosx"),("SHLVL","0"),("TEMP","/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/tmp"),("TMP","/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/tmp"),("TMPDIR","/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/tmp"),("__CF_USER_TEXT_ENCODING","0x1F5:0x0:0x0")] /private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/external/rules_haskell_ghc_nixpkgs/bin/haddock '@/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc/html/lsp-types/haddock-response42424-1.txt' 0% ( 0 / 7) in 'Data.IxMap' Missing documentation for: Module header IxOrd (src/Data/IxMap.hs:17) IxMap (src/Data/IxMap.hs:21) emptyIxMap (src/Data/IxMap.hs:23) insertIxMap (src/Data/IxMap.hs:26) lookupIxMap (src/Data/IxMap.hs:31) pickFromIxMap (src/Data/IxMap.hs:37) `cc' failed in phase `Linker'. (Exit code: 134) /private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/external/rules_haskell_ghc_nixpkgs/bin/haddock returned ExitFailure 1 Target //compiler/damlc:damlc failed to build ERROR: /Users/builder/daml-andreas/compiler/damlc/BUILD.bazel:38:9 Middleman _middlemen/compiler_Sdamlc_Sdamlc-runfiles failed: (Exit 1): cabal_wrapper failed: error executing command (cd /private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml && \ exec env - \ CABAL_VERBOSE=True \ CC_WRAPPER_CC_PATH=external/local_config_cc/cc_wrapper.sh \ CC_WRAPPER_CPU=darwin_arm64 \ CC_WRAPPER_PLATFORM=darwin \ LANG=C.UTF-8 \ PATH=/nix/store/5havjxkv59cprx4czgi1lwnvv7y22dzi-posix-toolchain/bin \ RULES_HASKELL_DOCDIR_PATH=/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/base-4.15.1.0 \ RULES_HASKELL_GHC_PATH=external/rules_haskell_ghc_nixpkgs/bin/ghc \ RULES_HASKELL_GHC_PKG_PATH=external/rules_haskell_ghc_nixpkgs/bin/ghc-pkg \ RULES_HASKELL_LIBDIR_PATH=/nix/store/z8577sg7xny6fxhndrrrkpvzhn53w9vc-ghc-native-bignum-9.0.2/lib/ghc-9.0.2 \ SDKROOT=macosx \ bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/cabal_wrapper bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types_cabal_wrapper_args.json) Execution platform: @io_tweag_rules_nixpkgs//nixpkgs/platforms:host Use --sandbox_debug to see verbose messages from the sandbox INFO: Elapsed time: 344.702s, Critical Path: 329.09s INFO: 49 processes: 14 internal, 35 processwrapper-sandbox. FAILED: Build did NOT complete successfully FAILED: Build did NOT complete successfully ``` * Disable create-daml-app tests on MacOS M1 These fail to build because puppeteer fails to install Chromium on M1. See https://github.com/digital-asset/daml/pull/13250. * Resign binaries after patching in package-app Otherwise they fail to execute on MacOS Monterey on M1. They symptom is that executing or otherwise loading the binary (e.g. into lldb) fails with exit code -9 without further indications. * Use GHC with LLVM on MacOS M1 The native backend only supports M1 starting from GHC 9.2. However, we are still on GHC 9.0. We wrap GHC to ensure that the LLVM toolchain and the codesign tool are present in the environment and point to the correct versions provided by nixpkgs. * Update the CC toolchain for MacOS M1 compatibility Use nixpkgs `nix-support/cc-cflags` file to provide default flags instead of using `makeWrapper`. On M1 there was an issue where passing `-l` flags or `-isystem` to `cc -v` would cause the following errors: ``` lang version 11.1.0 Target: aarch64-apple-darwin Thread model: posix InstalledDir: /nix/store/v6iidz79b425hli98g45xq9iblapn1zy-clang-11.1.0/bin "/nix/store/b82mvqzvdx5mh1n9n77v8h5vk9fgqrxj-clang-wrapper-11.1.0/bin/ld" -demangle -lto_library /nix/store/v6iidz79b425hli98g45xq9iblapn1zy-clang-11.1.0/lib/libLTO.dylib -dynamic -arch arm64 -platform_version macos 11.0.0 0.0.0 -o a.out -L/nix/store/hc8a94w57ppwmn2gscm56pvlwi3zhyh1-libSystem-11.0.0/lib -L/nix/store/6f5ygwif1r523jj2qfwfiwix0fga4rgp-clang-11.1.0-lib/lib -L/nix/store/7pkxnbhpi0c10w18rirj8zxz3wv571nj-libcxx-11.1.0/lib -no_uuid -arch arm64 -lSystem /nix/store/b82mvqzvdx5mh1n9n77v8h5vk9fgqrxj-clang-wrapper-11.1.0/resource-root/lib/darwin/libclang_rt.osx.a Undefined symbols for architecture arm64: "_main", referenced from: implicit entry/start for main executable ld: symbol(s) not found for architecture arm64 ``` This also includes additional standard library search paths: `-isystem ${llvmPackages_12.libcxx.dev}/include/c++/v1` alone is not enough because some headers in it are [wrapper headers](https://gcc.gnu.org/onlinedocs/cpp/Wrapper-Headers.html) that use `include_next` directives. For these to resolve we need to add the compiler's builtin headers to the search path as well. This also sets `-Wno-elaborated-enum-base` to avoid build failures of absl on MacOS Monterey M1. ``` In file included from external/com_google_absl/absl/time/internal/cctz/src/time_zone_lookup.cc:26: In file included from /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFTimeZone.h:13: /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:474:9: error: non-defining declaration of enumeration with a fixed underlying type is only permitted as a standalone declaration; missing list of enumerators? [-Welaborated-enum-base] typedef CF_ENUM(CFIndex, CFComparisonResult) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFAvailability.h:169:55: note: expanded from macro 'CF_ENUM' \#define CF_ENUM(...) __CF_ENUM_GET_MACRO(__VA_ARGS__, __CF_NAMED_ENUM, __CF_ANON_ENUM, )(__VA_ARGS__) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFAvailability.h:134:48: note: expanded from macro '__CF_ENUM_GET_MACRO' \#define __CF_ENUM_GET_MACRO(_1, _2, NAME, ...) NAME ^ /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFAvailability.h:142:75: note: expanded from macro '__CF_NAMED_ENUM' \#define __CF_NAMED_ENUM(_type, _name) enum __CF_ENUM_ATTRIBUTES _name : _type _name; enum _name : _type ^~~~~~~ In file included from external/com_google_absl/absl/time/internal/cctz/src/time_zone_lookup.cc:26: In file included from /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFTimeZone.h:18: In file included from /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFString.h:17: /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFCharacterSet.h:62:9: error: non-defining declaration of enumeration with a fixed underlying type is only permitted as a standalone decla ration; missing list of enumerators? [-Welaborated-enum-base] typedef CF_ENUM(CFIndex, CFCharacterSetPredefinedSet) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFAvailability.h:169:55: note: expanded from macro 'CF_ENUM' \#define CF_ENUM(...) __CF_ENUM_GET_MACRO(__VA_ARGS__, __CF_NAMED_ENUM, __CF_ANON_ENUM, )(__VA_ARGS__) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFAvailability.h:134:48: note: expanded from macro '__CF_ENUM_GET_MACRO' \#define __CF_ENUM_GET_MACRO(_1, _2, NAME, ...) NAME ^ /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFAvailability.h:142:75: note: expanded from macro '__CF_NAMED_ENUM' \#define __CF_NAMED_ENUM(_type, _name) enum __CF_ENUM_ATTRIBUTES _name : _type _name; enum _name : _type ^~~~~~~ ... ``` * Link libc++ in fat_cc_library on MacOS * Build on native ARM M1 instead of Rosetta changelog_begin changelog_end * Drop unused ghcLLVMWrapper * Select ghcWithLLVM within Nix If we generally expose ghcWithLLVM from Nix and then select on the Bazel, then we'd need to filter that derivation out from the Nix and dev-tool build step on CI. * fmt * Update Node version in compatibility * Expose node in PATH in create-daml-app test It seems that the node update made the `--scripts-prepend-node-path` flag less effective than it was before. Without explicitly adding `node` to `PATH` the install step fails with the following error: ``` Failure: Command "CreateProcess {cmdspec = RawCommand "/home/aj/.cache/bazel/_bazel_aj/c437a451a7a277d35b539da616255ac8/sandbox/linux-sandbox/1435/execroot/compatibility/bazel-out/k8-opt/bin/create-daml-app-0.0.0-platform-2.0.0.runfiles/compatibility/external/node_nix/node_nix/lib/node_modules/npm/bin/npm-cli.js" ["install","--scripts-prepend-node-path"], cwd = Nothing, env = Nothing, std_in = Inherit, std_out = Inherit, std_err = Inherit, close_fds = False, create_group = False, delegate_ctlc = False, detach_console = False, create_new_console = False, new_session = False, child_group = Nothing, child_user = Nothing, use_process_jobs = False}" exited with ExitFailure 127 npm ERR! code 127 npm ERR! path /tmp/extra-dir-7515936101075/create-daml-app/ui/node_modules/puppeteer npm ERR! command failed npm ERR! command sh -c node install.js npm ERR! sh: line 1: node: command not found npm ERR! A complete log of this run can be found in: npm ERR! /tmp/extra-dir-7515936101074/_logs/2022-03-24T10_18_15_227Z-debug.log ``` * Skip create-daml-app compat tests pre 2.0.0 changelog_begin changelog_end In these tests the install step fails with the following error due to mismatch babel-jest dependency versions: ``` ==================== Test output for //:create-daml-app-1.8.1-platform-0.0.0: Create Daml App tests Getting Started Guide: WARNING: Specifying the template via daml new create-daml-app create-daml-app is deprecated. The recommended way of specifying the template is daml new create-daml-app --template create-daml-app Created a new project in "create-daml-app" based on the template "create-daml-app". > create-daml-app@0.1.0 test > react-scripts test --testURL='http://localhost:7575' There might be a problem with the project dependency tree. It is likely not a bug in Create React App, but something you need to fix locally. The react-scripts package provided by Create React App requires a dependency: "babel-jest": "^24.9.0" Don't try to install it manually: your package manager does it automatically. However, a different version of babel-jest was detected higher up in the tree: /tmp/extra-dir-3298351016846/create-daml-app/ui/node_modules/babel-jest (version: 25.5.1) Manually installing incompatible versions is known to cause hard-to-debug issues. If you would prefer to ignore this check, add SKIP_PREFLIGHT_CHECK=true to an .env file in your project. That will permanently disable this message but you might encounter other issues. To fix the dependency tree, try following the steps below in the exact order: 1. Delete package-lock.json (not package.json!) and/or yarn.lock in your project folder. 2. Delete node_modules in your project folder. 3. Remove "babel-jest" from dependencies and/or devDependencies in the package.json file in your project folder. 4. Run npm install or yarn, depending on the package manager you use. In most cases, this should be enough to fix the problem. If this has not helped, there are a few other things you can try: 5. If you used npm, install yarn (http://yarnpkg.com/) and repeat the above steps with it instead. This may help because npm has known issues with package hoisting which may get resolved in future versions. 6. Check if /tmp/extra-dir-3298351016846/create-daml-app/ui/node_modules/babel-jest is outside your project directory. For example, you might have accidentally installed something in your home folder. 7. Try running npm ls babel-jest in your project folder. This will tell you which other package (apart from the expected react-scripts) installed babel-jest. If nothing else helps, add SKIP_PREFLIGHT_CHECK=true to an .env file in your project. That would permanently disable this preflight check in case you want to proceed anyway. P.S. We know this message is long but please read the steps above :-) We hope you find them helpful! FAIL (125.62s) Create app from template (0.05s) Patch the application code with messaging feature Extract codegen output (0.06s) Set up libraries and workspaces (0.01s) Install Jest, Puppeteer and other dependencies (123.95s) Run Puppeteer end-to-end tests (1.54s) callProcess: /home/aj/.cache/bazel/_bazel_aj/c437a451a7a277d35b539da616255ac8/sandbox/linux-sandbox/2351/execroot/compatibility/bazel-out/k8-opt/bin/create-daml-app-1.8.1-platform-0.0.0.runfiles/compatibility/external/node_nix/node_nix/lib/node_modules/npm/bin/npm-cli.js "run" "test" "--ci" "--all" "--scripts-prepend-node-path" (exit 1): failed 1 out of 1 tests failed (125.62s) ================================================================================ ``` Applying the suggested `SKIP_PREFLIGHT_CHECK=true` fix leads to the following failure instead: ``` ==================== Test output for //:create-daml-app-1.9.0-platform-0.0.0: Create Daml App tests Getting Started Guide: WARNING: Specifying the template via daml new create-daml-app create-daml-app is deprecated. The recommended way of specifying the template is daml new create-daml-app --template create-daml-app Created a new project in "create-daml-app" based on the template "create-daml-app". > create-daml-app@0.1.0 test > react-scripts test --testURL='http://localhost:7575' PASS src/components/App.test.tsx ● Console console.debug daml-types/index.js:98 Registered template bbfcd72618817ef8c99eb663e1f80375835bd51efebdc69b55884ad7afb3a0ef:User:Message. console.debug daml-types/index.js:98 Registered template bbfcd72618817ef8c99eb663e1f80375835bd51efebdc69b55884ad7afb3a0ef:User:User. 12:42:55.745 [program-resource-pool-4] INFO c.d.l.sandbox.AkkaSubmissionsBridge - Instantiated Akka submissions bridge., context: {participantId: "sandbox"} 12:42:57.897 [program-resource-pool-3] INFO c.d.ledger.sandbox.SandboxOnXRunner - Initialized sandbox-on-x with conflict checking ledger bridge, version 0.0.0, run-mode = combined participant, index DB backend = h2database, participant-id = sandbox, ledger-id = create-daml-app-sandbox, port = 0, time mode = wall-clock time, allowed language versions = [min = LanguageVersion(V1,LanguageMinorVersion(6)), max = LanguageVersion(V1,LanguageMinorVersion(14))], authentication = all unauthenticated allowed, contract ids seeding = strong 24-03-2022 12:43:02.413 [main] INFO com.daml.http.Main - Config(ledgerHost=localhost, ledgerPort=34937, address=127.0.0.1, httpPort=7575, portFile=Some(json-api.port), packageReloadInterval=5 seconds, packageMaxInboundMessageSize=None, maxInboundMessageSize=4194304, tlsConfig=TlsConfiguration(false,None,None,None,None,REQUIRE,false,None), jdbcConfig=None, staticContentConfig=None, allowNonHttps=true, wsConfig=None, nonRepudiationCertificateFile=None, nonRepudiationPrivateKeyFile=None, nonRepudiationPrivateKeyAlgorithm=None, surrogateTpIdCacheMaxEntries=None), context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0"} 24-03-2022 12:43:02.745 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO akka.event.slf4j.Slf4jLogger - Slf4jLogger started 24-03-2022 12:43:03.041 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO com.daml.http.HttpService - HTTP Server pre-startup, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0"} 24-03-2022 12:43:03.251 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO com.daml.http.LedgerClient - Attempting to connect to the ledger localhost:34937 (600 attempts), context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0"} 24-03-2022 12:43:03.594 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO com.daml.http.LedgerClient - Attempt 1/600 succeeded!, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0"} 24-03-2022 12:43:03.596 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO com.daml.http.LedgerClient - Attempting to connect to the ledger localhost:34937 (600 attempts), context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0"} 24-03-2022 12:43:03.600 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO com.daml.http.LedgerClient - Attempt 1/600 succeeded!, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0"} 24-03-2022 12:43:03.601 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO com.daml.http.HttpService - contractDao: None, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0"} 24-03-2022 12:43:04.132 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO com.daml.http.Main - Started server: (ServerBinding(/127.0.0.1:7575),None), context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0"} 24-03-2022 12:43:05.280 [http-json-ledger-api-akka.actor.default-dispatcher-13] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "2ab72d48-cdef-4e00-ac17-0afda5084008"} 24-03-2022 12:43:05.791 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "2ab72d48-cdef-4e00-ac17-0afda5084008"} > create-daml-app@0.1.0 start > react-scripts start [HPM] Proxy created: function (pathname, req) { // Proxy requests to the http json api when in development const proxied = pathname.match("^/v1") && process.env.NODE_ENV === "development"; if (proxied) { console.log( `Request with path ${pathname} proxied from host ${req.headers.host} to host ${httpJsonDevUrl}` ); } return proxied; } -> http://localhost:undefined ℹ 「wds」: Project is running at http://192.168.1.114/ ℹ 「wds」: webpack output is served from ℹ 「wds」: Content not from webpack is served from /tmp/extra-dir-99443589994656/create-daml-app/ui/public ℹ 「wds」: 404s will fallback to / Starting the development server... 24-03-2022 12:43:07.495 [http-json-ledger-api-akka.actor.default-dispatcher-9] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "ce0131fd-6a4c-4eb1-8c1b-6d68418fde82"} 24-03-2022 12:43:07.606 [http-json-ledger-api-akka.actor.default-dispatcher-17] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "ce0131fd-6a4c-4eb1-8c1b-6d68418fde82"} 24-03-2022 12:43:07.623 [http-json-ledger-api-akka.actor.default-dispatcher-9] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "a4d1c7b0-406c-4297-a690-66ba2b692f19"} 24-03-2022 12:43:07.725 [http-json-ledger-api-akka.actor.default-dispatcher-16] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "a4d1c7b0-406c-4297-a690-66ba2b692f19"} 24-03-2022 12:43:07.741 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "bf65790a-38bc-4686-aa15-607c3c24661a"} 24-03-2022 12:43:07.846 [http-json-ledger-api-akka.actor.default-dispatcher-9] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "bf65790a-38bc-4686-aa15-607c3c24661a"} 24-03-2022 12:43:07.865 [http-json-ledger-api-akka.actor.default-dispatcher-13] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "3ab06283-270c-4994-852c-92c8c3b34ecc"} 24-03-2022 12:43:07.964 [http-json-ledger-api-akka.actor.default-dispatcher-14] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "3ab06283-270c-4994-852c-92c8c3b34ecc"} 24-03-2022 12:43:07.980 [http-json-ledger-api-akka.actor.default-dispatcher-8] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "b332b66a-6231-4492-817d-a2c58c85d04c"} 24-03-2022 12:43:08.084 [http-json-ledger-api-akka.actor.default-dispatcher-18] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "b332b66a-6231-4492-817d-a2c58c85d04c"} 24-03-2022 12:43:08.098 [http-json-ledger-api-akka.actor.default-dispatcher-17] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "8c77ce53-52b5-4e0c-993a-3f810b54bfec"} 24-03-2022 12:43:08.204 [http-json-ledger-api-akka.actor.default-dispatcher-9] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "8c77ce53-52b5-4e0c-993a-3f810b54bfec"} 24-03-2022 12:43:08.220 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "8813ad99-79c7-42c4-9719-5bdcfeb5077e"} 24-03-2022 12:43:08.326 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "8813ad99-79c7-42c4-9719-5bdcfeb5077e"} 24-03-2022 12:43:08.340 [http-json-ledger-api-akka.actor.default-dispatcher-18] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "deeca40b-0f05-47c9-927d-f71b0fe08ccb"} 24-03-2022 12:43:08.444 [http-json-ledger-api-akka.actor.default-dispatcher-18] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "deeca40b-0f05-47c9-927d-f71b0fe08ccb"} 24-03-2022 12:43:08.462 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "9be53420-eb4d-4ee3-9915-4a4381c51bea"} 24-03-2022 12:43:08.563 [http-json-ledger-api-akka.actor.default-dispatcher-18] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "9be53420-eb4d-4ee3-9915-4a4381c51bea"} 24-03-2022 12:43:08.576 [http-json-ledger-api-akka.actor.default-dispatcher-18] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "8d64b076-ff2b-4f5b-8653-95e5e949cb34"} 24-03-2022 12:43:08.685 [http-json-ledger-api-akka.actor.default-dispatcher-14] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "8d64b076-ff2b-4f5b-8653-95e5e949cb34"} 24-03-2022 12:43:08.697 [http-json-ledger-api-akka.actor.default-dispatcher-14] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "87246c50-00b7-453e-9771-83f176a3cbfc"} 24-03-2022 12:43:08.802 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "87246c50-00b7-453e-9771-83f176a3cbfc"} 24-03-2022 12:43:08.818 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "65bb8c95-a253-4ac5-a297-1abeff6ce44c"} 24-03-2022 12:43:08.920 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "65bb8c95-a253-4ac5-a297-1abeff6ce44c"} 24-03-2022 12:43:08.930 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/query from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "d45c0c95-1576-480c-b048-f59919a1d139"} 24-03-2022 12:43:10.016 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.PackageService - new package IDs loaded: bfcd37bd6b84768e86e432f5f6c33e25d9e7724a9d42e33875ff74f6348e733f, 518032f41fd0175461b35ae0c9691e08b4aea55e62915f8360af2cc7a1f2ba6c, cc348d369011362a5190fe96dd1f0dfbc697fdfd10e382b9e9666f0da05961b7, f78511c39cc293d5ed72acf5a4a81411af75a435df4106c5e37823af6589040b, 6839a6d3d430c569b2425e9391717b44ca324b88ba621d597778811b2d05031d, 99a2705ed38c1c26cbb8fe7acf36bbf626668e167a33335de932599219e0a235, 76bf0fd12bd945762a01f8fc5bbcdfa4d0ff20f8762af490f8f41d6237c6524f, e22bce619ae24ca3b8e6519281cb5a33b64b3190cc763248b4c3f9ad5087a92c, d58cf9939847921b2aab78eaa7b427dc4c649d25e6bee3c749ace4c3f52f5c97, 6c2c0667393c5f92f1885163068cd31800d2264eb088eb6fc740e11241b2bf06, c1f1f00558799eec139fb4f4c76f95fb52fa1837a5dd29600baa1c8ed1bdccfd, 733e38d36a2759688a4b2c4cec69d48e7b55ecc8dedc8067b815926c917a182a, 057eed1fd48c238491b8ea06b9b5bf85a5d4c9275dd3f6183e0e6b01730cc2ba, 52af8c65ac2c4b3d61637558935d2b0a92369ec4da39978a29f90a5f738f3e14, d14e08374fc7197d6a0de468c968ae8ba3aadbf9315476fd39071831f5923662, e491352788e56ca4603acc411ffe1a49fefd76ed8b163af86cf5ee5f4c38645b, 40f452260bef3f29dede136108fc08a88d5a5250310281067087da6f0baddff7, 8a7806365bbd98d88b4c13832ebfa305f6abaeaf32cfa2b7dd25c4fa489b79fb, bbfcd72618817ef8c99eb663e1f80375835bd51efebdc69b55884ad7afb3a0ef, context: {ledger_id: "create-daml-app-sandbox", cmd: "GetActiveContractsRequest(OneAnd(TemplateId(Some(bbfcd72618817ef8c99eb663e1f80375835bd51efebdc69b55884ad7afb3a0ef),User,User),Set()),Map(),None)", request_id: "d45c0c95-1576-480c-b048-f59919a1d139", instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", application_id: "create-daml-app", read_as: "List()", act_as: "List(party-c276900f)"} 24-03-2022 12:43:10.192 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "d45c0c95-1576-480c-b048-f59919a1d139"} 24-03-2022 12:43:10.420 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/create from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "90767a4d-bf5f-4a9c-a633-9c9bf4374ab1"} 24-03-2022 12:43:10.490 [http-json-ledger-api-akka.actor.default-dispatcher-11] INFO com.daml.http.CommandService - Submitting create command, context: {command_id: "9371a5a2-1ab5-4deb-8cec-ad21c0e620dc", ledger_id: "create-daml-app-sandbox", request_id: "90767a4d-bf5f-4a9c-a633-9c9bf4374ab1", instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", application_id: "create-daml-app", template_id: "TemplateId(bbfcd72618817ef8c99eb663e1f80375835bd51efebdc69b55884ad7afb3a0ef,User,User)", read_as: "List()", act_as: "List(party-c276900f)"} 24-03-2022 12:43:12.870 [http-json-ledger-api-akka.actor.default-dispatcher-17] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "90767a4d-bf5f-4a9c-a633-9c9bf4374ab1"} 24-03-2022 12:43:12.885 [http-json-ledger-api-akka.actor.default-dispatcher-17] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/fetch from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "fd827c73-d3b8-4e42-877a-ce9af707da2a"} 24-03-2022 12:43:12.992 [http-json-ledger-api-akka.actor.default-dispatcher-11] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "fd827c73-d3b8-4e42-877a-ce9af707da2a"} 24-03-2022 12:43:13.004 [http-json-ledger-api-akka.actor.default-dispatcher-11] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/query from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "94adec23-cb1a-464b-9fad-8bf7da06b99f"} 24-03-2022 12:43:13.017 [http-json-ledger-api-akka.actor.default-dispatcher-13] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "94adec23-cb1a-464b-9fad-8bf7da06b99f"} 24-03-2022 12:43:13.074 [http-json-ledger-api-akka.actor.default-dispatcher-7] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "42f7aaf6-f3f7-4138-a4c6-1be224c100bc"} 24-03-2022 12:43:13.121 [http-json-ledger-api-akka.actor.default-dispatcher-17] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "42f7aaf6-f3f7-4138-a4c6-1be224c100bc"} Compiled successfully! You can now view create-daml-app in the browser. Local: http://localhost:3000 On Your Network: http://192.168.1.114:3000 Note that the development build is not optimized. To create a production build, use npm run build. Request with path /v1/fetch proxied from host localhost:3000 to host http://localhost:undefined 24-03-2022 12:43:53.540 [http-json-ledger-api-akka.actor.default-dispatcher-11] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "f1da2b78-e020-40fc-b4cc-e635fc78f8fb"} 24-03-2022 12:43:53.681 [http-json-ledger-api-akka.actor.default-dispatcher-7] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "f1da2b78-e020-40fc-b4cc-e635fc78f8fb"} 24-03-2022 12:43:53.690 [http-json-ledger-api-akka.actor.default-dispatcher-7] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "42e89b95-f5b7-4c39-bcd8-4264e86a924d"} 24-03-2022 12:43:53.802 [http-json-ledger-api-akka.actor.default-dispatcher-13] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "42e89b95-f5b7-4c39-bcd8-4264e86a924d"} 24-03-2022 12:43:53.814 [http-json-ledger-api-akka.actor.default-dispatcher-13] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "fd54814b-fc1f-479b-b65a-1b3bc59392b8"} 24-03-2022 12:43:53.923 [http-json-ledger-api-akka.actor.default-dispatcher-6] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "fd54814b-fc1f-479b-b65a-1b3bc59392b8"} Request with path /v1/fetch proxied from host localhost:3000 to host http://localhost:undefined 24-03-2022 12:44:24.809 [http-json-ledger-api-akka.actor.default-dispatcher-17] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "cde08b6a-68c1-4f7d-9d20-f5bde5c478aa"} 24-03-2022 12:44:24.880 [http-json-ledger-api-akka.actor.default-dispatcher-9] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "cde08b6a-68c1-4f7d-9d20-f5bde5c478aa"} Request with path /v1/fetch proxied from host localhost:3000 to host http://localhost:undefined 24-03-2022 12:44:55.691 [http-json-ledger-api-akka.actor.default-dispatcher-8] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "8dfa15a7-044d-41f7-9597-37662c2ff5ff"} 24-03-2022 12:44:55.818 [http-json-ledger-api-akka.actor.default-dispatcher-6] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "8dfa15a7-044d-41f7-9597-37662c2ff5ff"} 24-03-2022 12:44:55.828 [http-json-ledger-api-akka.actor.default-dispatcher-6] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "fe3af4d3-7e89-41a5-bfb3-ec639967a0f8"} 24-03-2022 12:44:55.938 [http-json-ledger-api-akka.actor.default-dispatcher-8] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "fe3af4d3-7e89-41a5-bfb3-ec639967a0f8"} Request with path /v1/fetch proxied from host localhost:3000 to host http://localhost:undefined FAIL src/index.test.ts (154.562s) ● Console console.debug daml-types/index.js:98 Registered template bbfcd72618817ef8c99eb663e1f80375835bd51efebdc69b55884ad7afb3a0ef:User:Message. console.debug daml-types/index.js:98 Registered template bbfcd72618817ef8c99eb663e1f80375835bd51efebdc69b55884ad7afb3a0ef:User:User. ● log in as a new user, log out and log back in TimeoutError: waiting for selector ".test-select-main-menu" failed: timeout 30000ms exceeded 277 | await usernameInput.type(partyName); 278 | await page.click(".test-select-login-button"); > 279 | await page.waitForSelector(".test-select-main-menu"); | ^ 280 | }; 281 | // LOGIN_FUNCTION_END 282 | at new WaitTask (node_modules/puppeteer/lib/DOMWorld.js:407:34) at DOMWorld._waitForSelectorOrXPath (node_modules/puppeteer/lib/DOMWorld.js:332:26) at DOMWorld.waitForSelector (node_modules/puppeteer/lib/DOMWorld.js:315:21) at Frame.waitForSelector (node_modules/puppeteer/lib/FrameManager.js:384:51) at Frame.<anonymous> (node_modules/puppeteer/lib/helper.js:117:27) at Page.waitForSelector (node_modules/puppeteer/lib/Page.js:867:33) at login (src/index.test.ts:279:14) at Object.<anonymous> (src/index.test.ts:313:3) ● log in as three different users and start following each other TimeoutError: waiting for selector ".test-select-main-menu" failed: timeout 30000ms exceeded 277 | await usernameInput.type(partyName); 278 | await page.click(".test-select-login-button"); > 279 | await page.waitForSelector(".test-select-main-menu"); | ^ 280 | }; 281 | // LOGIN_FUNCTION_END 282 | at new WaitTask (node_modules/puppeteer/lib/DOMWorld.js:407:34) at DOMWorld._waitForSelectorOrXPath (node_modules/puppeteer/lib/DOMWorld.js:332:26) at DOMWorld.waitForSelector (node_modules/puppeteer/lib/DOMWorld.js:315:21) at Frame.waitForSelector (node_modules/puppeteer/lib/FrameManager.js:384:51) at Frame.<anonymous> (node_modules/puppeteer/lib/helper.js:117:27) at Page.waitForSelector (node_modules/puppeteer/lib/Page.js:867:33) at login (src/index.test.ts:279:14) at Object.<anonymous> (src/index.test.ts:349:3) ● error when following self TimeoutError: waiting for selector ".test-select-main-menu" failed: timeout 30000ms exceeded 277 | await usernameInput.type(partyName); 278 | await page.click(".test-select-login-button"); > 279 | await page.waitForSelector(".test-select-main-menu"); | ^ 280 | }; 281 | // LOGIN_FUNCTION_END 282 | at new WaitTask (node_modules/puppeteer/lib/DOMWorld.js:407:34) at DOMWorld._waitForSelectorOrXPath (node_modules/puppeteer/lib/DOMWorld.js:332:26) at DOMWorld.waitForSelector (node_modules/puppeteer/lib/DOMWorld.js:315:21) at Frame.waitForSelector (node_modules/puppeteer/lib/FrameManager.js:384:51) at Frame.<anonymous> (node_modules/puppeteer/lib/helper.js:117:27) at Page.waitForSelector (node_modules/puppeteer/lib/Page.js:867:33) at login (src/index.test.ts:279:14) at Object.<anonymous> (src/index.test.ts:455:3) ● error when adding a user that you are already following TimeoutError: waiting for selector ".test-select-main-menu" failed: timeout 30000ms exceeded 277 | await usernameInput.type(partyName); 278 | await page.click(".test-select-login-button"); > 279 | await page.waitForSelector(".test-select-main-menu"); | ^ 280 | }; 281 | // LOGIN_FUNCTION_END 282 | at new WaitTask (node_modules/puppeteer/lib/DOMWorld.js:407:34) at DOMWorld._waitForSelectorOrXPath (node_modules/puppeteer/lib/DOMWorld.js:332:26) at DOMWorld.waitForSelector (node_modules/puppeteer/lib/DOMWorld.js:315:21) at Frame.waitForSelector (node_modules/puppeteer/lib/FrameManager.js:384:51) at Frame.<anonymous> (node_modules/puppeteer/lib/helper.js:117:27) at Page.waitForSelector (node_modules/puppeteer/lib/Page.js:867:33) at login (src/index.test.ts:279:14) at Object.<anonymous> (src/index.test.ts:471:3) Test Suites: 1 failed, 1 passed, 2 total Tests: 4 failed, 3 passed, 7 total Snapshots: 0 total Time: 155.201s Ran all test suites. 12:45:26.673 [program-resource-pool-6] INFO c.d.g.a.server.akka.ServerAdapter - SERVER_IS_SHUTTING_DOWN(1,0): Server is shutting down, context: {err-context: "{location=ServerAdapter.scala:59}"} 12:45:26.675 [program-resource-pool-6] INFO c.d.g.a.server.akka.ServerAdapter - SERVER_IS_SHUTTING_DOWN(1,0): Server is shutting down, context: {err-context: "{location=ServerAdapter.scala:59}"} 12:45:26.676 [program-resource-pool-6] INFO c.d.g.a.server.akka.ServerAdapter - SERVER_IS_SHUTTING_DOWN(1,0): Server is shutting down, context: {err-context: "{location=ServerAdapter.scala:59}"} 12:45:26.677 [program-resource-pool-6] INFO c.d.g.a.server.akka.ServerAdapter - SERVER_IS_SHUTTING_DOWN(1,0): Server is shutting down, context: {err-context: "{location=ServerAdapter.scala:59}"} [WARN] [03/24/2022 12:45:26.723] [program-resource-pool-6] [CoordinatedShutdown(akka://sandbox-on-x)] Could not addJvmShutdownHook, due to: Shutdown in progress [INFO] [03/24/2022 12:45:26.724] [program-resource-pool-6] [CoordinatedShutdown(akka://sandbox-on-x)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 24-03-2022 12:45:26.630 [shutdownHook1] INFO com.daml.http.HttpService - Stopping server..., context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0"} 12:45:26.648 [program-resource-pool-6] INFO c.d.g.a.server.akka.ServerAdapter - SERVER_IS_SHUTTING_DOWN(1,0): Server is shutting down, context: {err-context: "{location=ServerAdapter.scala:59}"} FAIL (278.22s) Create app from template (0.04s) Patch the application code with messaging feature Extract codegen output (0.04s) Set up libraries and workspaces Install Jest, Puppeteer and other dependencies (120.36s) Run Puppeteer end-to-end tests (157.77s) callProcess: /home/aj/.cache/bazel/_bazel_aj/c437a451a7a277d35b539da616255ac8/sandbox/linux-sandbox/2357/execroot/compatibility/bazel-out/k8-opt/bin/create-daml-app-1.9.0-platform-0.0.0.runfiles/compatibility/external/node_nix/node_nix/lib/node_modules/npm/bin/npm-cli.js "run" "test" "--ci" "--all" "--scripts-prepend-node-path" (exit 1): failed 1 out of 1 tests failed (278.22s) ================================================================================ ``` * Revert "Skip create-daml-app compat tests pre 2.0.0" This reverts commit 762e61941f164e5deb10fc752f391b69003377cf. * Revert "Expose node in PATH in create-daml-app test" This reverts commit 8541b39d0f1b36c63366b90f97a69f7d950c92c5. * Revert "Update Node version in compatibility" This reverts commit 389639402d19c3ffa714e22bc61e042f82070b74. * Keep using NodeJS 14 for the compatibility tests NodeJS 16 is needed for M1 compatibility, but it breaks the compatibility tests. So, for now, we stick to the older version for the compatibility tests. Co-authored-by: Andreas Herrmann <andreas.herrmann@tweag.io>
2022-04-07 18:50:53 +03:00
load("@io_bazel_rules_go//go:deps.bzl", "go_rules_dependencies")
Darwin M1 Support (#13401) * Update rules_nixpkgs and rules_sh rules_sh was an implicit dependency before. We are now depending on it explicitly to be able to control the version. * Patch rules_nixpkgs to detect ARM M1 This should be upstreamed. * Patch rules_haskell for ARM M1 compatibility * Detect MacOS M1 OS and architecture. * Consistently use the CC toolchains' linker. This is important when we switch to GHC with LLVM. * Detect Darwin M1 in os_info.bzl * Use the new rules_nixpkgs host platform The old flags hard-coded the CPU architecture. The new platform automatically inherits from Bazel's builtin host platform. * Import the Go toolchain from rules_nixpkgs * Update nodejs to version 16 * Disable Haddock on lsp-types We're also disabling it on the other haskell_cabal_library instances, and it is causing build errors on M1. ``` Running Haddock on library for lsp-types-1.4.0.0.. creating /private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc/html/lsp-types creating /private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc/html creating /private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc creating /private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc/html creating /private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc/html/lsp-types /private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc/html/lsp-types/haddock-response42424-1.txt contents: <<< --prologue=/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc/html/lsp-types/haddock-prologue42424-0.txt --dump-interface=/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc/html/lsp-types/lsp-types.haddock --package-name=lsp-types --package-version=1.4.0.0 --since-qual=external --hide=Language.LSP.Types.CallHierarchy --hide=Language.LSP.Types.Cancellation --hide=Language.LSP.Types.ClientCapabilities --hide=Language.LSP.Types.CodeAction --hide=Language.LSP.Types.CodeLens --hide=Language.LSP.Types.Command --hide=Language.LSP.Types.Common --hide=Language.LSP.Types.Completion --hide=Language.LSP.Types.Configuration --hide=Language.LSP.Types.Declaration --hide=Language.LSP.Types.Definition --hide=Language.LSP.Types.Diagnostic --hide=Language.LSP.Types.DocumentColor --hide=Language.LSP.Types.DocumentFilter --hide=Language.LSP.Types.DocumentHighlight --hide=Language.LSP.Types.DocumentLink --hide=Language.LSP.Types.DocumentSymbol --hide=Language.LSP.Types.FoldingRange --hide=Language.LSP.Types.Formatting --hide=Language.LSP.Types.Hover --hide=Language.LSP.Types.Implementation --hide=Language.LSP.Types.Initialize --hide=Language.LSP.Types.Location --hide=Language.LSP.Types.LspId --hide=Language.LSP.Types.MarkupContent --hide=Language.LSP.Types.Method --hide=Language.LSP.Types.Message --hide=Language.LSP.Types.Parsing --hide=Language.LSP.Types.Progress --hide=Language.LSP.Types.Registration --hide=Language.LSP.Types.References --hide=Language.LSP.Types.Rename --hide=Language.LSP.Types.SelectionRange --hide=Language.LSP.Types.ServerCapabilities --hide=Language.LSP.Types.SemanticTokens --hide=Language.LSP.Types.SignatureHelp --hide=Language.LSP.Types.StaticRegistrationOptions --hide=Language.LSP.Types.TextDocument --hide=Language.LSP.Types.TypeDefinition --hide=Language.LSP.Types.Uri --hide=Language.LSP.Types.Utils --hide=Language.LSP.Types.Window --hide=Language.LSP.Types.WatchedFiles --hide=Language.LSP.Types.WorkspaceEdit --hide=Language.LSP.Types.WorkspaceFolders --hide=Language.LSP.Types.WorkspaceSymbol --html --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/array-0.5.4.0,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/array-0.5.4.0/array.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/base-4.15.1.0,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/base-4.15.1.0/base.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/binary-0.8.8.0,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/binary-0.8.8.0/binary.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/bytestring-0.10.12.1,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/bytestring-0.10.12.1/bytestring.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/containers-0.6.4.1,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/containers-0.6.4.1/containers.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/deepseq-1.4.5.0,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/deepseq-1.4.5.0/deepseq.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/directory-1.3.6.2,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/directory-1.3.6.2/directory.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/exceptions-0.10.4,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/exceptions-0.10.4/exceptions.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/filepath-1.4.2.1,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/filepath-1.4.2.1/filepath.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/ghc-bignum-1.1,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/ghc-bignum-1.1/ghc-bignum.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/ghc-boot-th-9.0.2,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/ghc-boot-th-9.0.2/ghc-boot-th.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/ghc-prim-0.7.0,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/ghc-prim-0.7.0/ghc-prim.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/integer-gmp-1.1,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/integer-gmp-1.1/integer-gmp.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/mtl-2.2.2,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/mtl-2.2.2/mtl.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/parsec-3.1.14.0,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/parsec-3.1.14.0/parsec.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/pretty-1.1.3.6,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/pretty-1.1.3.6/pretty.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/stm-2.5.0.0,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/stm-2.5.0.0/stm.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/template-haskell-2.17.0.0,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/template-haskell-2.17.0.0/template-haskell.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/text-1.2.5.0,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/text-1.2.5.0/text.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/time-1.9.3,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/time-1.9.3/time.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/transformers-0.5.6.2,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/transformers-0.5.6.2/transformers.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/unix-2.7.2.2,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/unix-2.7.2.2/unix.haddock --odir=/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc/html/lsp-types/ --title=lsp-types-1.4.0.0:\ Haskell\ library\ for\ the\ Microsoft\ Language\ Server\ Protocol,\ data\ types --optghc=-fbuilding-cabal-package --optghc=-O --optghc=-outputdir --optghc=../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build --optghc=-odir --optghc=../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build/tmp-42424 --optghc=-hidir --optghc=../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build/tmp-42424 --optghc=-stubdir --optghc=../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build/tmp-42424 --optghc=-i --optghc=-i../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build --optghc=-isrc --optghc=-i../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build/autogen --optghc=-i../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build/global-autogen --optghc=-I../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build/autogen --optghc=-I../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build/global-autogen --optghc=-I../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build --optghc=-optP-D__HADDOCK_VERSION__=2251 --optghc=-optP-include --optghc=-optP../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build/autogen/cabal_macros.h --optghc=-this-unit-id --optghc=lsp-types-1.4.0.0 --optghc=-hide-all-packages --optghc=-Wmissing-home-modules --optghc=-no-user-package-db --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/Diff-0.4.1/_install/Diff-0.4.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/base-orphans-0.8.6/_install/base-orphans-0.8.6.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/OneTuple-0.3.1/_install/OneTuple-0.3.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/splitmix-0.1.0.4/_install/splitmix-0.1.0.4.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/random-1.2.1/_install/random-1.2.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/QuickCheck-2.14.2/_install/QuickCheck-2.14.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/hashable-1.3.5.0/_install/hashable-1.3.5.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/integer-logarithms-1.0.3.1/_install/integer-logarithms-1.0.3.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/primitive-0.7.3.0/_install/primitive-0.7.3.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/scientific-0.3.7.0/_install/scientific-0.3.7.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/attoparsec-0.14.4/_install/attoparsec-0.14.4-attoparsec-internal.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/attoparsec-0.14.4/_install/attoparsec-0.14.4.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/base-compat-0.11.2/_install/base-compat-0.11.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/base-compat-batteries-0.11.2/_install/base-compat-batteries-0.11.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/data-fix-0.3.2/_install/data-fix-0.3.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/dlist-1.0/_install/dlist-1.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/indexed-traversable-0.1.2/_install/indexed-traversable-0.1.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/tagged-0.8.6.1/_install/tagged-0.8.6.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/unordered-containers-0.2.16.0/_install/unordered-containers-0.2.16.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/vector-0.12.3.1/_install/vector-0.12.3.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/indexed-traversable-instances-0.1.1/_install/indexed-traversable-instances-0.1.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/distributive-0.6.2.1/_install/distributive-0.6.2.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/transformers-compat-0.6.6/_install/transformers-compat-0.6.6.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/comonad-5.0.8/_install/comonad-5.0.8.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/th-abstraction-0.4.3.0/_install/th-abstraction-0.4.3.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/bifunctors-5.5.11/_install/bifunctors-5.5.11.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/StateVar-1.2.2/_install/StateVar-1.2.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/contravariant-1.5.5/_install/contravariant-1.5.5.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/semigroupoids-5.3.7/_install/semigroupoids-5.3.7.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/assoc-1.0.2/_install/assoc-1.0.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/these-1.1.1.1/_install/these-1.1.1.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/semialign-1.2.0.1/_install/semialign-1.2.0.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/strict-0.4.0.1/_install/strict-0.4.0.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/text-short-0.1.5/_install/text-short-0.1.5.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/time-compat-1.9.6.1/_install/time-compat-1.9.6.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/uuid-types-1.0.5/_install/uuid-types-1.0.5.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/witherable-0.4.2/_install/witherable-0.4.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/aeson-2.0.3.0/_install/aeson-2.0.3.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/data-default-class-0.1.2.0/_install/data-default-class-0.1.2.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/data-default-instances-containers-0.0.1/_install/data-default-instances-containers-0.0.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/data-default-instances-dlist-0.0.1/_install/data-default-instances-dlist-0.0.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/old-locale-1.0.0.7/_install/old-locale-1.0.0.7.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/data-default-instances-old-locale-0.0.1/_install/data-default-instances-old-locale-0.0.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/data-default-0.7.1.1/_install/data-default-0.7.1.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/network-3.1.2.7/_install/network-3.1.2.7.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/network-bsd-2.8.1.0/_install/network-bsd-2.8.1.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/hslogger-1.3.1.0/_install/hslogger-1.3.1.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/call-stack-0.4.0/_install/call-stack-0.4.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/profunctors-5.6.2/_install/profunctors-5.6.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/transformers-base-0.4.6/_install/transformers-base-0.4.6.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/free-5.1.7/_install/free-5.1.7.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/semigroups-0.19.2/_install/semigroups-0.19.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/void-0.7.3/_install/void-0.7.3.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/adjunctions-4.4/_install/adjunctions-4.4.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/invariant-0.5.5/_install/invariant-0.5.5.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/kan-extensions-5.2.3/_install/kan-extensions-5.2.3.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/parallel-3.2.2.0/_install/parallel-3.2.2.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/reflection-2.1.6/_install/reflection-2.1.6.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/lens-5.0.1/_install/lens-5.0.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/semirings-0.6/_install/semirings-0.6.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/mod-0.1.2.2/_install/mod-0.1.2.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/th-compat-0.1.3/_install/th-compat-0.1.3.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/network-uri-2.6.4.1/_install/network-uri-2.6.4.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/rope-utf16-splay-0.3.2.0/_install/rope-utf16-splay-0.3.2.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/some-1.0.3/_install/some-1.0.3.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/temporary-1.3/_install/temporary-1.3.conf.d --optghc=-package-db --optghc=/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/_install/lsp-types-1.4.0.0.conf.d --optghc=-package-db --optghc=/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/package.conf.inplace --optghc=-package-id --optghc=Diff-0.4.1 --optghc=-package-id --optghc=aeson-2.0.3.0 --optghc=-package-id --optghc=base-4.15.1.0 --optghc=-package-id --optghc=binary-0.8.8.0 --optghc=-package-id --optghc=bytestring-0.10.12.1 --optghc=-package-id --optghc=containers-0.6.4.1 --optghc=-package-id --optghc=data-default-0.7.1.1 --optghc=-package-id --optghc=deepseq-1.4.5.0 --optghc=-package-id --optghc=directory-1.3.6.2 --optghc=-package-id --optghc=dlist-1.0 --optghc=-package-id --optghc=filepath-1.4.2.1 --optghc=-package-id --optghc=hashable-1.3.5.0 --optghc=-package-id --optghc=hslogger-1.3.1.0 --optghc=-package-id --optghc=lens-5.0.1 --optghc=-package-id --optghc=mod-0.1.2.2 --optghc=-package-id --optghc=mtl-2.2.2 --optghc=-package-id --optghc=network-uri-2.6.4.1 --optghc=-package-id --optghc=rope-utf16-splay-0.3.2.0 --optghc=-package-id --optghc=scientific-0.3.7.0 --optghc=-package-id --optghc=some-1.0.3 --optghc=-package-id --optghc=template-haskell-2.17.0.0 --optghc=-package-id --optghc=temporary-1.3 --optghc=-package-id --optghc=text-1.2.5.0 --optghc=-package-id --optghc=unordered-containers-0.2.16.0 --optghc=-XHaskell2010 --optghc=-XStrictData --optghc=-Wall -B/nix/store/z8577sg7xny6fxhndrrrkpvzhn53w9vc-ghc-native-bignum-9.0.2/lib/ghc-9.0.2 src/Language/LSP/Types.hs src/Language/LSP/Types/Capabilities.hs src/Language/LSP/Types/Lens.hs src/Language/LSP/Types/SMethodMap.hs src/Language/LSP/VFS.hs src/Data/IxMap.hs src/Language/LSP/Types/CallHierarchy.hs src/Language/LSP/Types/Cancellation.hs src/Language/LSP/Types/ClientCapabilities.hs src/Language/LSP/Types/CodeAction.hs src/Language/LSP/Types/CodeLens.hs src/Language/LSP/Types/Command.hs src/Language/LSP/Types/Common.hs src/Language/LSP/Types/Completion.hs src/Language/LSP/Types/Configuration.hs src/Language/LSP/Types/Declaration.hs src/Language/LSP/Types/Definition.hs src/Language/LSP/Types/Diagnostic.hs src/Language/LSP/Types/DocumentColor.hs src/Language/LSP/Types/DocumentFilter.hs src/Language/LSP/Types/DocumentHighlight.hs src/Language/LSP/Types/DocumentLink.hs src/Language/LSP/Types/DocumentSymbol.hs src/Language/LSP/Types/FoldingRange.hs src/Language/LSP/Types/Formatting.hs src/Language/LSP/Types/Hover.hs src/Language/LSP/Types/Implementation.hs src/Language/LSP/Types/Initialize.hs src/Language/LSP/Types/Location.hs src/Language/LSP/Types/LspId.hs src/Language/LSP/Types/MarkupContent.hs src/Language/LSP/Types/Method.hs src/Language/LSP/Types/Message.hs src/Language/LSP/Types/Parsing.hs src/Language/LSP/Types/Progress.hs src/Language/LSP/Types/Registration.hs src/Language/LSP/Types/References.hs src/Language/LSP/Types/Rename.hs src/Language/LSP/Types/SelectionRange.hs src/Language/LSP/Types/ServerCapabilities.hs src/Language/LSP/Types/SemanticTokens.hs src/Language/LSP/Types/SignatureHelp.hs src/Language/LSP/Types/StaticRegistrationOptions.hs src/Language/LSP/Types/TextDocument.hs src/Language/LSP/Types/TypeDefinition.hs src/Language/LSP/Types/Uri.hs src/Language/LSP/Types/Utils.hs src/Language/LSP/Types/Window.hs src/Language/LSP/Types/WatchedFiles.hs src/Language/LSP/Types/WorkspaceEdit.hs src/Language/LSP/Types/WorkspaceFolders.hs src/Language/LSP/Types/WorkspaceSymbol.hs >>> /private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc/html/lsp-types/haddock-response42424-1.txt Environment: [("CABAL_VERBOSE","True"),("CC_WRAPPER_CC_PATH","external/local_config_cc/cc_wrapper.sh"),("CC_WRAPPER_CPU","darwin_arm64"),("CC_WRAPPER_PLATFORM","darwin"),("CODESIGN_ALLOCATE","/nix/store/3ibr5yy13sxl2vb5rig8fivj85sqcvf2-cctools-port-949.0.1/bin/codesign_allocate"),("HOME","/var/empty"),("LANG","C.UTF-8"),("LC_CTYPE","UTF-8"),("LD_LIBRARY_PATH",""),("LIBRARY_PATH",""),("PATH","/nix/store/xqbgx1y5xh2k13c6nizlprkp0j8mcw6w-clang-wrapper-12.0.1/bin:/nix/store/p90xw78bb3xsxg5v7k31qj5hpwm2pngp-llvm-12.0.1/bin:/nix/store/5havjxkv59cprx4czgi1lwnvv7y22dzi-posix-toolchain/bin"),("PWD","/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/external/lsp-types"),("PYTHONPATH","/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/runghc.runfiles:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/runghc.runfiles/:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/runghc.runfiles/bazel_tools:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/runghc.runfiles/com_github_digital_asset_daml:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/runghc.runfiles/local_config_cc:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/runghc.runfiles/rules_haskell:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/runghc.runfiles/rules_haskell_ghc_nixpkgs:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/runghc.runfiles/rules_python:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/cabal_wrapper.runfiles:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/cabal_wrapper.runfiles/:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/cabal_wrapper.runfiles/bazel_tools:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/cabal_wrapper.runfiles/com_github_digital_asset_daml:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/cabal_wrapper.runfiles/rules_haskell"),("RULES_HASKELL_DOCDIR_PATH","/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/base-4.15.1.0"),("RULES_HASKELL_EXEC_ROOT","/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml"),("RULES_HASKELL_GHC_PATH","/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/external/rules_haskell_ghc_nixpkgs/bin/ghc"),("RULES_HASKELL_GHC_PKG_PATH","/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/external/rules_haskell_ghc_nixpkgs/bin/ghc-pkg"),("RULES_HASKELL_LIBDIR_PATH","/nix/store/z8577sg7xny6fxhndrrrkpvzhn53w9vc-ghc-native-bignum-9.0.2/lib/ghc-9.0.2"),("RUNFILES_DIR","/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/runghc.runfiles"),("SDKROOT","macosx"),("SHLVL","0"),("TEMP","/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/tmp"),("TMP","/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/tmp"),("TMPDIR","/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/tmp"),("__CF_USER_TEXT_ENCODING","0x1F5:0x0:0x0")] /private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/external/rules_haskell_ghc_nixpkgs/bin/haddock '@/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc/html/lsp-types/haddock-response42424-1.txt' 0% ( 0 / 7) in 'Data.IxMap' Missing documentation for: Module header IxOrd (src/Data/IxMap.hs:17) IxMap (src/Data/IxMap.hs:21) emptyIxMap (src/Data/IxMap.hs:23) insertIxMap (src/Data/IxMap.hs:26) lookupIxMap (src/Data/IxMap.hs:31) pickFromIxMap (src/Data/IxMap.hs:37) `cc' failed in phase `Linker'. (Exit code: 134) /private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/external/rules_haskell_ghc_nixpkgs/bin/haddock returned ExitFailure 1 Target //compiler/damlc:damlc failed to build ERROR: /Users/builder/daml-andreas/compiler/damlc/BUILD.bazel:38:9 Middleman _middlemen/compiler_Sdamlc_Sdamlc-runfiles failed: (Exit 1): cabal_wrapper failed: error executing command (cd /private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml && \ exec env - \ CABAL_VERBOSE=True \ CC_WRAPPER_CC_PATH=external/local_config_cc/cc_wrapper.sh \ CC_WRAPPER_CPU=darwin_arm64 \ CC_WRAPPER_PLATFORM=darwin \ LANG=C.UTF-8 \ PATH=/nix/store/5havjxkv59cprx4czgi1lwnvv7y22dzi-posix-toolchain/bin \ RULES_HASKELL_DOCDIR_PATH=/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/base-4.15.1.0 \ RULES_HASKELL_GHC_PATH=external/rules_haskell_ghc_nixpkgs/bin/ghc \ RULES_HASKELL_GHC_PKG_PATH=external/rules_haskell_ghc_nixpkgs/bin/ghc-pkg \ RULES_HASKELL_LIBDIR_PATH=/nix/store/z8577sg7xny6fxhndrrrkpvzhn53w9vc-ghc-native-bignum-9.0.2/lib/ghc-9.0.2 \ SDKROOT=macosx \ bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/cabal_wrapper bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types_cabal_wrapper_args.json) Execution platform: @io_tweag_rules_nixpkgs//nixpkgs/platforms:host Use --sandbox_debug to see verbose messages from the sandbox INFO: Elapsed time: 344.702s, Critical Path: 329.09s INFO: 49 processes: 14 internal, 35 processwrapper-sandbox. FAILED: Build did NOT complete successfully FAILED: Build did NOT complete successfully ``` * Disable create-daml-app tests on MacOS M1 These fail to build because puppeteer fails to install Chromium on M1. See https://github.com/digital-asset/daml/pull/13250. * Resign binaries after patching in package-app Otherwise they fail to execute on MacOS Monterey on M1. They symptom is that executing or otherwise loading the binary (e.g. into lldb) fails with exit code -9 without further indications. * Use GHC with LLVM on MacOS M1 The native backend only supports M1 starting from GHC 9.2. However, we are still on GHC 9.0. We wrap GHC to ensure that the LLVM toolchain and the codesign tool are present in the environment and point to the correct versions provided by nixpkgs. * Update the CC toolchain for MacOS M1 compatibility Use nixpkgs `nix-support/cc-cflags` file to provide default flags instead of using `makeWrapper`. On M1 there was an issue where passing `-l` flags or `-isystem` to `cc -v` would cause the following errors: ``` lang version 11.1.0 Target: aarch64-apple-darwin Thread model: posix InstalledDir: /nix/store/v6iidz79b425hli98g45xq9iblapn1zy-clang-11.1.0/bin "/nix/store/b82mvqzvdx5mh1n9n77v8h5vk9fgqrxj-clang-wrapper-11.1.0/bin/ld" -demangle -lto_library /nix/store/v6iidz79b425hli98g45xq9iblapn1zy-clang-11.1.0/lib/libLTO.dylib -dynamic -arch arm64 -platform_version macos 11.0.0 0.0.0 -o a.out -L/nix/store/hc8a94w57ppwmn2gscm56pvlwi3zhyh1-libSystem-11.0.0/lib -L/nix/store/6f5ygwif1r523jj2qfwfiwix0fga4rgp-clang-11.1.0-lib/lib -L/nix/store/7pkxnbhpi0c10w18rirj8zxz3wv571nj-libcxx-11.1.0/lib -no_uuid -arch arm64 -lSystem /nix/store/b82mvqzvdx5mh1n9n77v8h5vk9fgqrxj-clang-wrapper-11.1.0/resource-root/lib/darwin/libclang_rt.osx.a Undefined symbols for architecture arm64: "_main", referenced from: implicit entry/start for main executable ld: symbol(s) not found for architecture arm64 ``` This also includes additional standard library search paths: `-isystem ${llvmPackages_12.libcxx.dev}/include/c++/v1` alone is not enough because some headers in it are [wrapper headers](https://gcc.gnu.org/onlinedocs/cpp/Wrapper-Headers.html) that use `include_next` directives. For these to resolve we need to add the compiler's builtin headers to the search path as well. This also sets `-Wno-elaborated-enum-base` to avoid build failures of absl on MacOS Monterey M1. ``` In file included from external/com_google_absl/absl/time/internal/cctz/src/time_zone_lookup.cc:26: In file included from /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFTimeZone.h:13: /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:474:9: error: non-defining declaration of enumeration with a fixed underlying type is only permitted as a standalone declaration; missing list of enumerators? [-Welaborated-enum-base] typedef CF_ENUM(CFIndex, CFComparisonResult) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFAvailability.h:169:55: note: expanded from macro 'CF_ENUM' \#define CF_ENUM(...) __CF_ENUM_GET_MACRO(__VA_ARGS__, __CF_NAMED_ENUM, __CF_ANON_ENUM, )(__VA_ARGS__) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFAvailability.h:134:48: note: expanded from macro '__CF_ENUM_GET_MACRO' \#define __CF_ENUM_GET_MACRO(_1, _2, NAME, ...) NAME ^ /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFAvailability.h:142:75: note: expanded from macro '__CF_NAMED_ENUM' \#define __CF_NAMED_ENUM(_type, _name) enum __CF_ENUM_ATTRIBUTES _name : _type _name; enum _name : _type ^~~~~~~ In file included from external/com_google_absl/absl/time/internal/cctz/src/time_zone_lookup.cc:26: In file included from /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFTimeZone.h:18: In file included from /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFString.h:17: /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFCharacterSet.h:62:9: error: non-defining declaration of enumeration with a fixed underlying type is only permitted as a standalone decla ration; missing list of enumerators? [-Welaborated-enum-base] typedef CF_ENUM(CFIndex, CFCharacterSetPredefinedSet) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFAvailability.h:169:55: note: expanded from macro 'CF_ENUM' \#define CF_ENUM(...) __CF_ENUM_GET_MACRO(__VA_ARGS__, __CF_NAMED_ENUM, __CF_ANON_ENUM, )(__VA_ARGS__) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFAvailability.h:134:48: note: expanded from macro '__CF_ENUM_GET_MACRO' \#define __CF_ENUM_GET_MACRO(_1, _2, NAME, ...) NAME ^ /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFAvailability.h:142:75: note: expanded from macro '__CF_NAMED_ENUM' \#define __CF_NAMED_ENUM(_type, _name) enum __CF_ENUM_ATTRIBUTES _name : _type _name; enum _name : _type ^~~~~~~ ... ``` * Link libc++ in fat_cc_library on MacOS * Build on native ARM M1 instead of Rosetta changelog_begin changelog_end * Drop unused ghcLLVMWrapper * Select ghcWithLLVM within Nix If we generally expose ghcWithLLVM from Nix and then select on the Bazel, then we'd need to filter that derivation out from the Nix and dev-tool build step on CI. * fmt * Update Node version in compatibility * Expose node in PATH in create-daml-app test It seems that the node update made the `--scripts-prepend-node-path` flag less effective than it was before. Without explicitly adding `node` to `PATH` the install step fails with the following error: ``` Failure: Command "CreateProcess {cmdspec = RawCommand "/home/aj/.cache/bazel/_bazel_aj/c437a451a7a277d35b539da616255ac8/sandbox/linux-sandbox/1435/execroot/compatibility/bazel-out/k8-opt/bin/create-daml-app-0.0.0-platform-2.0.0.runfiles/compatibility/external/node_nix/node_nix/lib/node_modules/npm/bin/npm-cli.js" ["install","--scripts-prepend-node-path"], cwd = Nothing, env = Nothing, std_in = Inherit, std_out = Inherit, std_err = Inherit, close_fds = False, create_group = False, delegate_ctlc = False, detach_console = False, create_new_console = False, new_session = False, child_group = Nothing, child_user = Nothing, use_process_jobs = False}" exited with ExitFailure 127 npm ERR! code 127 npm ERR! path /tmp/extra-dir-7515936101075/create-daml-app/ui/node_modules/puppeteer npm ERR! command failed npm ERR! command sh -c node install.js npm ERR! sh: line 1: node: command not found npm ERR! A complete log of this run can be found in: npm ERR! /tmp/extra-dir-7515936101074/_logs/2022-03-24T10_18_15_227Z-debug.log ``` * Skip create-daml-app compat tests pre 2.0.0 changelog_begin changelog_end In these tests the install step fails with the following error due to mismatch babel-jest dependency versions: ``` ==================== Test output for //:create-daml-app-1.8.1-platform-0.0.0: Create Daml App tests Getting Started Guide: WARNING: Specifying the template via daml new create-daml-app create-daml-app is deprecated. The recommended way of specifying the template is daml new create-daml-app --template create-daml-app Created a new project in "create-daml-app" based on the template "create-daml-app". > create-daml-app@0.1.0 test > react-scripts test --testURL='http://localhost:7575' There might be a problem with the project dependency tree. It is likely not a bug in Create React App, but something you need to fix locally. The react-scripts package provided by Create React App requires a dependency: "babel-jest": "^24.9.0" Don't try to install it manually: your package manager does it automatically. However, a different version of babel-jest was detected higher up in the tree: /tmp/extra-dir-3298351016846/create-daml-app/ui/node_modules/babel-jest (version: 25.5.1) Manually installing incompatible versions is known to cause hard-to-debug issues. If you would prefer to ignore this check, add SKIP_PREFLIGHT_CHECK=true to an .env file in your project. That will permanently disable this message but you might encounter other issues. To fix the dependency tree, try following the steps below in the exact order: 1. Delete package-lock.json (not package.json!) and/or yarn.lock in your project folder. 2. Delete node_modules in your project folder. 3. Remove "babel-jest" from dependencies and/or devDependencies in the package.json file in your project folder. 4. Run npm install or yarn, depending on the package manager you use. In most cases, this should be enough to fix the problem. If this has not helped, there are a few other things you can try: 5. If you used npm, install yarn (http://yarnpkg.com/) and repeat the above steps with it instead. This may help because npm has known issues with package hoisting which may get resolved in future versions. 6. Check if /tmp/extra-dir-3298351016846/create-daml-app/ui/node_modules/babel-jest is outside your project directory. For example, you might have accidentally installed something in your home folder. 7. Try running npm ls babel-jest in your project folder. This will tell you which other package (apart from the expected react-scripts) installed babel-jest. If nothing else helps, add SKIP_PREFLIGHT_CHECK=true to an .env file in your project. That would permanently disable this preflight check in case you want to proceed anyway. P.S. We know this message is long but please read the steps above :-) We hope you find them helpful! FAIL (125.62s) Create app from template (0.05s) Patch the application code with messaging feature Extract codegen output (0.06s) Set up libraries and workspaces (0.01s) Install Jest, Puppeteer and other dependencies (123.95s) Run Puppeteer end-to-end tests (1.54s) callProcess: /home/aj/.cache/bazel/_bazel_aj/c437a451a7a277d35b539da616255ac8/sandbox/linux-sandbox/2351/execroot/compatibility/bazel-out/k8-opt/bin/create-daml-app-1.8.1-platform-0.0.0.runfiles/compatibility/external/node_nix/node_nix/lib/node_modules/npm/bin/npm-cli.js "run" "test" "--ci" "--all" "--scripts-prepend-node-path" (exit 1): failed 1 out of 1 tests failed (125.62s) ================================================================================ ``` Applying the suggested `SKIP_PREFLIGHT_CHECK=true` fix leads to the following failure instead: ``` ==================== Test output for //:create-daml-app-1.9.0-platform-0.0.0: Create Daml App tests Getting Started Guide: WARNING: Specifying the template via daml new create-daml-app create-daml-app is deprecated. The recommended way of specifying the template is daml new create-daml-app --template create-daml-app Created a new project in "create-daml-app" based on the template "create-daml-app". > create-daml-app@0.1.0 test > react-scripts test --testURL='http://localhost:7575' PASS src/components/App.test.tsx ● Console console.debug daml-types/index.js:98 Registered template bbfcd72618817ef8c99eb663e1f80375835bd51efebdc69b55884ad7afb3a0ef:User:Message. console.debug daml-types/index.js:98 Registered template bbfcd72618817ef8c99eb663e1f80375835bd51efebdc69b55884ad7afb3a0ef:User:User. 12:42:55.745 [program-resource-pool-4] INFO c.d.l.sandbox.AkkaSubmissionsBridge - Instantiated Akka submissions bridge., context: {participantId: "sandbox"} 12:42:57.897 [program-resource-pool-3] INFO c.d.ledger.sandbox.SandboxOnXRunner - Initialized sandbox-on-x with conflict checking ledger bridge, version 0.0.0, run-mode = combined participant, index DB backend = h2database, participant-id = sandbox, ledger-id = create-daml-app-sandbox, port = 0, time mode = wall-clock time, allowed language versions = [min = LanguageVersion(V1,LanguageMinorVersion(6)), max = LanguageVersion(V1,LanguageMinorVersion(14))], authentication = all unauthenticated allowed, contract ids seeding = strong 24-03-2022 12:43:02.413 [main] INFO com.daml.http.Main - Config(ledgerHost=localhost, ledgerPort=34937, address=127.0.0.1, httpPort=7575, portFile=Some(json-api.port), packageReloadInterval=5 seconds, packageMaxInboundMessageSize=None, maxInboundMessageSize=4194304, tlsConfig=TlsConfiguration(false,None,None,None,None,REQUIRE,false,None), jdbcConfig=None, staticContentConfig=None, allowNonHttps=true, wsConfig=None, nonRepudiationCertificateFile=None, nonRepudiationPrivateKeyFile=None, nonRepudiationPrivateKeyAlgorithm=None, surrogateTpIdCacheMaxEntries=None), context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0"} 24-03-2022 12:43:02.745 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO akka.event.slf4j.Slf4jLogger - Slf4jLogger started 24-03-2022 12:43:03.041 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO com.daml.http.HttpService - HTTP Server pre-startup, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0"} 24-03-2022 12:43:03.251 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO com.daml.http.LedgerClient - Attempting to connect to the ledger localhost:34937 (600 attempts), context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0"} 24-03-2022 12:43:03.594 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO com.daml.http.LedgerClient - Attempt 1/600 succeeded!, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0"} 24-03-2022 12:43:03.596 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO com.daml.http.LedgerClient - Attempting to connect to the ledger localhost:34937 (600 attempts), context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0"} 24-03-2022 12:43:03.600 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO com.daml.http.LedgerClient - Attempt 1/600 succeeded!, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0"} 24-03-2022 12:43:03.601 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO com.daml.http.HttpService - contractDao: None, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0"} 24-03-2022 12:43:04.132 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO com.daml.http.Main - Started server: (ServerBinding(/127.0.0.1:7575),None), context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0"} 24-03-2022 12:43:05.280 [http-json-ledger-api-akka.actor.default-dispatcher-13] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "2ab72d48-cdef-4e00-ac17-0afda5084008"} 24-03-2022 12:43:05.791 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "2ab72d48-cdef-4e00-ac17-0afda5084008"} > create-daml-app@0.1.0 start > react-scripts start [HPM] Proxy created: function (pathname, req) { // Proxy requests to the http json api when in development const proxied = pathname.match("^/v1") && process.env.NODE_ENV === "development"; if (proxied) { console.log( `Request with path ${pathname} proxied from host ${req.headers.host} to host ${httpJsonDevUrl}` ); } return proxied; } -> http://localhost:undefined ℹ 「wds」: Project is running at http://192.168.1.114/ ℹ 「wds」: webpack output is served from ℹ 「wds」: Content not from webpack is served from /tmp/extra-dir-99443589994656/create-daml-app/ui/public ℹ 「wds」: 404s will fallback to / Starting the development server... 24-03-2022 12:43:07.495 [http-json-ledger-api-akka.actor.default-dispatcher-9] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "ce0131fd-6a4c-4eb1-8c1b-6d68418fde82"} 24-03-2022 12:43:07.606 [http-json-ledger-api-akka.actor.default-dispatcher-17] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "ce0131fd-6a4c-4eb1-8c1b-6d68418fde82"} 24-03-2022 12:43:07.623 [http-json-ledger-api-akka.actor.default-dispatcher-9] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "a4d1c7b0-406c-4297-a690-66ba2b692f19"} 24-03-2022 12:43:07.725 [http-json-ledger-api-akka.actor.default-dispatcher-16] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "a4d1c7b0-406c-4297-a690-66ba2b692f19"} 24-03-2022 12:43:07.741 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "bf65790a-38bc-4686-aa15-607c3c24661a"} 24-03-2022 12:43:07.846 [http-json-ledger-api-akka.actor.default-dispatcher-9] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "bf65790a-38bc-4686-aa15-607c3c24661a"} 24-03-2022 12:43:07.865 [http-json-ledger-api-akka.actor.default-dispatcher-13] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "3ab06283-270c-4994-852c-92c8c3b34ecc"} 24-03-2022 12:43:07.964 [http-json-ledger-api-akka.actor.default-dispatcher-14] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "3ab06283-270c-4994-852c-92c8c3b34ecc"} 24-03-2022 12:43:07.980 [http-json-ledger-api-akka.actor.default-dispatcher-8] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "b332b66a-6231-4492-817d-a2c58c85d04c"} 24-03-2022 12:43:08.084 [http-json-ledger-api-akka.actor.default-dispatcher-18] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "b332b66a-6231-4492-817d-a2c58c85d04c"} 24-03-2022 12:43:08.098 [http-json-ledger-api-akka.actor.default-dispatcher-17] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "8c77ce53-52b5-4e0c-993a-3f810b54bfec"} 24-03-2022 12:43:08.204 [http-json-ledger-api-akka.actor.default-dispatcher-9] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "8c77ce53-52b5-4e0c-993a-3f810b54bfec"} 24-03-2022 12:43:08.220 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "8813ad99-79c7-42c4-9719-5bdcfeb5077e"} 24-03-2022 12:43:08.326 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "8813ad99-79c7-42c4-9719-5bdcfeb5077e"} 24-03-2022 12:43:08.340 [http-json-ledger-api-akka.actor.default-dispatcher-18] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "deeca40b-0f05-47c9-927d-f71b0fe08ccb"} 24-03-2022 12:43:08.444 [http-json-ledger-api-akka.actor.default-dispatcher-18] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "deeca40b-0f05-47c9-927d-f71b0fe08ccb"} 24-03-2022 12:43:08.462 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "9be53420-eb4d-4ee3-9915-4a4381c51bea"} 24-03-2022 12:43:08.563 [http-json-ledger-api-akka.actor.default-dispatcher-18] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "9be53420-eb4d-4ee3-9915-4a4381c51bea"} 24-03-2022 12:43:08.576 [http-json-ledger-api-akka.actor.default-dispatcher-18] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "8d64b076-ff2b-4f5b-8653-95e5e949cb34"} 24-03-2022 12:43:08.685 [http-json-ledger-api-akka.actor.default-dispatcher-14] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "8d64b076-ff2b-4f5b-8653-95e5e949cb34"} 24-03-2022 12:43:08.697 [http-json-ledger-api-akka.actor.default-dispatcher-14] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "87246c50-00b7-453e-9771-83f176a3cbfc"} 24-03-2022 12:43:08.802 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "87246c50-00b7-453e-9771-83f176a3cbfc"} 24-03-2022 12:43:08.818 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "65bb8c95-a253-4ac5-a297-1abeff6ce44c"} 24-03-2022 12:43:08.920 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "65bb8c95-a253-4ac5-a297-1abeff6ce44c"} 24-03-2022 12:43:08.930 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/query from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "d45c0c95-1576-480c-b048-f59919a1d139"} 24-03-2022 12:43:10.016 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.PackageService - new package IDs loaded: bfcd37bd6b84768e86e432f5f6c33e25d9e7724a9d42e33875ff74f6348e733f, 518032f41fd0175461b35ae0c9691e08b4aea55e62915f8360af2cc7a1f2ba6c, cc348d369011362a5190fe96dd1f0dfbc697fdfd10e382b9e9666f0da05961b7, f78511c39cc293d5ed72acf5a4a81411af75a435df4106c5e37823af6589040b, 6839a6d3d430c569b2425e9391717b44ca324b88ba621d597778811b2d05031d, 99a2705ed38c1c26cbb8fe7acf36bbf626668e167a33335de932599219e0a235, 76bf0fd12bd945762a01f8fc5bbcdfa4d0ff20f8762af490f8f41d6237c6524f, e22bce619ae24ca3b8e6519281cb5a33b64b3190cc763248b4c3f9ad5087a92c, d58cf9939847921b2aab78eaa7b427dc4c649d25e6bee3c749ace4c3f52f5c97, 6c2c0667393c5f92f1885163068cd31800d2264eb088eb6fc740e11241b2bf06, c1f1f00558799eec139fb4f4c76f95fb52fa1837a5dd29600baa1c8ed1bdccfd, 733e38d36a2759688a4b2c4cec69d48e7b55ecc8dedc8067b815926c917a182a, 057eed1fd48c238491b8ea06b9b5bf85a5d4c9275dd3f6183e0e6b01730cc2ba, 52af8c65ac2c4b3d61637558935d2b0a92369ec4da39978a29f90a5f738f3e14, d14e08374fc7197d6a0de468c968ae8ba3aadbf9315476fd39071831f5923662, e491352788e56ca4603acc411ffe1a49fefd76ed8b163af86cf5ee5f4c38645b, 40f452260bef3f29dede136108fc08a88d5a5250310281067087da6f0baddff7, 8a7806365bbd98d88b4c13832ebfa305f6abaeaf32cfa2b7dd25c4fa489b79fb, bbfcd72618817ef8c99eb663e1f80375835bd51efebdc69b55884ad7afb3a0ef, context: {ledger_id: "create-daml-app-sandbox", cmd: "GetActiveContractsRequest(OneAnd(TemplateId(Some(bbfcd72618817ef8c99eb663e1f80375835bd51efebdc69b55884ad7afb3a0ef),User,User),Set()),Map(),None)", request_id: "d45c0c95-1576-480c-b048-f59919a1d139", instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", application_id: "create-daml-app", read_as: "List()", act_as: "List(party-c276900f)"} 24-03-2022 12:43:10.192 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "d45c0c95-1576-480c-b048-f59919a1d139"} 24-03-2022 12:43:10.420 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/create from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "90767a4d-bf5f-4a9c-a633-9c9bf4374ab1"} 24-03-2022 12:43:10.490 [http-json-ledger-api-akka.actor.default-dispatcher-11] INFO com.daml.http.CommandService - Submitting create command, context: {command_id: "9371a5a2-1ab5-4deb-8cec-ad21c0e620dc", ledger_id: "create-daml-app-sandbox", request_id: "90767a4d-bf5f-4a9c-a633-9c9bf4374ab1", instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", application_id: "create-daml-app", template_id: "TemplateId(bbfcd72618817ef8c99eb663e1f80375835bd51efebdc69b55884ad7afb3a0ef,User,User)", read_as: "List()", act_as: "List(party-c276900f)"} 24-03-2022 12:43:12.870 [http-json-ledger-api-akka.actor.default-dispatcher-17] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "90767a4d-bf5f-4a9c-a633-9c9bf4374ab1"} 24-03-2022 12:43:12.885 [http-json-ledger-api-akka.actor.default-dispatcher-17] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/fetch from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "fd827c73-d3b8-4e42-877a-ce9af707da2a"} 24-03-2022 12:43:12.992 [http-json-ledger-api-akka.actor.default-dispatcher-11] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "fd827c73-d3b8-4e42-877a-ce9af707da2a"} 24-03-2022 12:43:13.004 [http-json-ledger-api-akka.actor.default-dispatcher-11] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/query from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "94adec23-cb1a-464b-9fad-8bf7da06b99f"} 24-03-2022 12:43:13.017 [http-json-ledger-api-akka.actor.default-dispatcher-13] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "94adec23-cb1a-464b-9fad-8bf7da06b99f"} 24-03-2022 12:43:13.074 [http-json-ledger-api-akka.actor.default-dispatcher-7] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "42f7aaf6-f3f7-4138-a4c6-1be224c100bc"} 24-03-2022 12:43:13.121 [http-json-ledger-api-akka.actor.default-dispatcher-17] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "42f7aaf6-f3f7-4138-a4c6-1be224c100bc"} Compiled successfully! You can now view create-daml-app in the browser. Local: http://localhost:3000 On Your Network: http://192.168.1.114:3000 Note that the development build is not optimized. To create a production build, use npm run build. Request with path /v1/fetch proxied from host localhost:3000 to host http://localhost:undefined 24-03-2022 12:43:53.540 [http-json-ledger-api-akka.actor.default-dispatcher-11] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "f1da2b78-e020-40fc-b4cc-e635fc78f8fb"} 24-03-2022 12:43:53.681 [http-json-ledger-api-akka.actor.default-dispatcher-7] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "f1da2b78-e020-40fc-b4cc-e635fc78f8fb"} 24-03-2022 12:43:53.690 [http-json-ledger-api-akka.actor.default-dispatcher-7] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "42e89b95-f5b7-4c39-bcd8-4264e86a924d"} 24-03-2022 12:43:53.802 [http-json-ledger-api-akka.actor.default-dispatcher-13] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "42e89b95-f5b7-4c39-bcd8-4264e86a924d"} 24-03-2022 12:43:53.814 [http-json-ledger-api-akka.actor.default-dispatcher-13] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "fd54814b-fc1f-479b-b65a-1b3bc59392b8"} 24-03-2022 12:43:53.923 [http-json-ledger-api-akka.actor.default-dispatcher-6] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "fd54814b-fc1f-479b-b65a-1b3bc59392b8"} Request with path /v1/fetch proxied from host localhost:3000 to host http://localhost:undefined 24-03-2022 12:44:24.809 [http-json-ledger-api-akka.actor.default-dispatcher-17] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "cde08b6a-68c1-4f7d-9d20-f5bde5c478aa"} 24-03-2022 12:44:24.880 [http-json-ledger-api-akka.actor.default-dispatcher-9] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "cde08b6a-68c1-4f7d-9d20-f5bde5c478aa"} Request with path /v1/fetch proxied from host localhost:3000 to host http://localhost:undefined 24-03-2022 12:44:55.691 [http-json-ledger-api-akka.actor.default-dispatcher-8] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "8dfa15a7-044d-41f7-9597-37662c2ff5ff"} 24-03-2022 12:44:55.818 [http-json-ledger-api-akka.actor.default-dispatcher-6] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "8dfa15a7-044d-41f7-9597-37662c2ff5ff"} 24-03-2022 12:44:55.828 [http-json-ledger-api-akka.actor.default-dispatcher-6] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "fe3af4d3-7e89-41a5-bfb3-ec639967a0f8"} 24-03-2022 12:44:55.938 [http-json-ledger-api-akka.actor.default-dispatcher-8] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "fe3af4d3-7e89-41a5-bfb3-ec639967a0f8"} Request with path /v1/fetch proxied from host localhost:3000 to host http://localhost:undefined FAIL src/index.test.ts (154.562s) ● Console console.debug daml-types/index.js:98 Registered template bbfcd72618817ef8c99eb663e1f80375835bd51efebdc69b55884ad7afb3a0ef:User:Message. console.debug daml-types/index.js:98 Registered template bbfcd72618817ef8c99eb663e1f80375835bd51efebdc69b55884ad7afb3a0ef:User:User. ● log in as a new user, log out and log back in TimeoutError: waiting for selector ".test-select-main-menu" failed: timeout 30000ms exceeded 277 | await usernameInput.type(partyName); 278 | await page.click(".test-select-login-button"); > 279 | await page.waitForSelector(".test-select-main-menu"); | ^ 280 | }; 281 | // LOGIN_FUNCTION_END 282 | at new WaitTask (node_modules/puppeteer/lib/DOMWorld.js:407:34) at DOMWorld._waitForSelectorOrXPath (node_modules/puppeteer/lib/DOMWorld.js:332:26) at DOMWorld.waitForSelector (node_modules/puppeteer/lib/DOMWorld.js:315:21) at Frame.waitForSelector (node_modules/puppeteer/lib/FrameManager.js:384:51) at Frame.<anonymous> (node_modules/puppeteer/lib/helper.js:117:27) at Page.waitForSelector (node_modules/puppeteer/lib/Page.js:867:33) at login (src/index.test.ts:279:14) at Object.<anonymous> (src/index.test.ts:313:3) ● log in as three different users and start following each other TimeoutError: waiting for selector ".test-select-main-menu" failed: timeout 30000ms exceeded 277 | await usernameInput.type(partyName); 278 | await page.click(".test-select-login-button"); > 279 | await page.waitForSelector(".test-select-main-menu"); | ^ 280 | }; 281 | // LOGIN_FUNCTION_END 282 | at new WaitTask (node_modules/puppeteer/lib/DOMWorld.js:407:34) at DOMWorld._waitForSelectorOrXPath (node_modules/puppeteer/lib/DOMWorld.js:332:26) at DOMWorld.waitForSelector (node_modules/puppeteer/lib/DOMWorld.js:315:21) at Frame.waitForSelector (node_modules/puppeteer/lib/FrameManager.js:384:51) at Frame.<anonymous> (node_modules/puppeteer/lib/helper.js:117:27) at Page.waitForSelector (node_modules/puppeteer/lib/Page.js:867:33) at login (src/index.test.ts:279:14) at Object.<anonymous> (src/index.test.ts:349:3) ● error when following self TimeoutError: waiting for selector ".test-select-main-menu" failed: timeout 30000ms exceeded 277 | await usernameInput.type(partyName); 278 | await page.click(".test-select-login-button"); > 279 | await page.waitForSelector(".test-select-main-menu"); | ^ 280 | }; 281 | // LOGIN_FUNCTION_END 282 | at new WaitTask (node_modules/puppeteer/lib/DOMWorld.js:407:34) at DOMWorld._waitForSelectorOrXPath (node_modules/puppeteer/lib/DOMWorld.js:332:26) at DOMWorld.waitForSelector (node_modules/puppeteer/lib/DOMWorld.js:315:21) at Frame.waitForSelector (node_modules/puppeteer/lib/FrameManager.js:384:51) at Frame.<anonymous> (node_modules/puppeteer/lib/helper.js:117:27) at Page.waitForSelector (node_modules/puppeteer/lib/Page.js:867:33) at login (src/index.test.ts:279:14) at Object.<anonymous> (src/index.test.ts:455:3) ● error when adding a user that you are already following TimeoutError: waiting for selector ".test-select-main-menu" failed: timeout 30000ms exceeded 277 | await usernameInput.type(partyName); 278 | await page.click(".test-select-login-button"); > 279 | await page.waitForSelector(".test-select-main-menu"); | ^ 280 | }; 281 | // LOGIN_FUNCTION_END 282 | at new WaitTask (node_modules/puppeteer/lib/DOMWorld.js:407:34) at DOMWorld._waitForSelectorOrXPath (node_modules/puppeteer/lib/DOMWorld.js:332:26) at DOMWorld.waitForSelector (node_modules/puppeteer/lib/DOMWorld.js:315:21) at Frame.waitForSelector (node_modules/puppeteer/lib/FrameManager.js:384:51) at Frame.<anonymous> (node_modules/puppeteer/lib/helper.js:117:27) at Page.waitForSelector (node_modules/puppeteer/lib/Page.js:867:33) at login (src/index.test.ts:279:14) at Object.<anonymous> (src/index.test.ts:471:3) Test Suites: 1 failed, 1 passed, 2 total Tests: 4 failed, 3 passed, 7 total Snapshots: 0 total Time: 155.201s Ran all test suites. 12:45:26.673 [program-resource-pool-6] INFO c.d.g.a.server.akka.ServerAdapter - SERVER_IS_SHUTTING_DOWN(1,0): Server is shutting down, context: {err-context: "{location=ServerAdapter.scala:59}"} 12:45:26.675 [program-resource-pool-6] INFO c.d.g.a.server.akka.ServerAdapter - SERVER_IS_SHUTTING_DOWN(1,0): Server is shutting down, context: {err-context: "{location=ServerAdapter.scala:59}"} 12:45:26.676 [program-resource-pool-6] INFO c.d.g.a.server.akka.ServerAdapter - SERVER_IS_SHUTTING_DOWN(1,0): Server is shutting down, context: {err-context: "{location=ServerAdapter.scala:59}"} 12:45:26.677 [program-resource-pool-6] INFO c.d.g.a.server.akka.ServerAdapter - SERVER_IS_SHUTTING_DOWN(1,0): Server is shutting down, context: {err-context: "{location=ServerAdapter.scala:59}"} [WARN] [03/24/2022 12:45:26.723] [program-resource-pool-6] [CoordinatedShutdown(akka://sandbox-on-x)] Could not addJvmShutdownHook, due to: Shutdown in progress [INFO] [03/24/2022 12:45:26.724] [program-resource-pool-6] [CoordinatedShutdown(akka://sandbox-on-x)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 24-03-2022 12:45:26.630 [shutdownHook1] INFO com.daml.http.HttpService - Stopping server..., context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0"} 12:45:26.648 [program-resource-pool-6] INFO c.d.g.a.server.akka.ServerAdapter - SERVER_IS_SHUTTING_DOWN(1,0): Server is shutting down, context: {err-context: "{location=ServerAdapter.scala:59}"} FAIL (278.22s) Create app from template (0.04s) Patch the application code with messaging feature Extract codegen output (0.04s) Set up libraries and workspaces Install Jest, Puppeteer and other dependencies (120.36s) Run Puppeteer end-to-end tests (157.77s) callProcess: /home/aj/.cache/bazel/_bazel_aj/c437a451a7a277d35b539da616255ac8/sandbox/linux-sandbox/2357/execroot/compatibility/bazel-out/k8-opt/bin/create-daml-app-1.9.0-platform-0.0.0.runfiles/compatibility/external/node_nix/node_nix/lib/node_modules/npm/bin/npm-cli.js "run" "test" "--ci" "--all" "--scripts-prepend-node-path" (exit 1): failed 1 out of 1 tests failed (278.22s) ================================================================================ ``` * Revert "Skip create-daml-app compat tests pre 2.0.0" This reverts commit 762e61941f164e5deb10fc752f391b69003377cf. * Revert "Expose node in PATH in create-daml-app test" This reverts commit 8541b39d0f1b36c63366b90f97a69f7d950c92c5. * Revert "Update Node version in compatibility" This reverts commit 389639402d19c3ffa714e22bc61e042f82070b74. * Keep using NodeJS 14 for the compatibility tests NodeJS 16 is needed for M1 compatibility, but it breaks the compatibility tests. So, for now, we stick to the older version for the compatibility tests. Co-authored-by: Andreas Herrmann <andreas.herrmann@tweag.io>
2022-04-07 18:50:53 +03:00
go_rules_dependencies()
2019-04-04 11:33:38 +03:00
gazelle_dependencies()
Update protobuf docs plugin (#11880) * Try to upgrade protobuf docs plugin changelog_begin changelog_end * Fix extension number 65020 is already registered Building `//ledger-api/grpc-definitions:ledger-api-docs` [failed with](https://github.com/digital-asset/daml/issues/11761#issuecomment-978947565) ``` panic: proto: extension number 65020 is already registered on message google.protobuf.FieldOptions ``` Go dependencies are now pulled in via Gazelle. By default Gazelle will generate new proto rules for any `.proto` files encountered in third party Go dependencies. However, many of these already have pregenerated `.pb.go` files generate with the appropriate configuration. The problem can be avoided by configuring Gazelle to not generate new proto rules, but instead use pre-existing `.pb.go` files. For reference the field number is set in [go-proto-validators](https://github.com/mwitkow/go-proto-validators/blob/32a686adf8b5194d3ea07d632d49b6fb344af678/validator.proto#L19) which is an indirect dependency through protoc-gen-doc. In this case we need to update protoc-gen-validate to v0.6.2 to include https://github.com/envoyproxy/protoc-gen-validate/commit/4f41f10dde19ec4dd9dd8cf6f7537139f52fb58b which fixes unknown label errors. * ./fmt * Expose gRPC status.proto for Haskell bindings * Update Gazelle to support embedsrcs on Windows `protoc-gen-doc` relies on `go:embed` file embedding https://github.com/pseudomuto/protoc-gen-doc/blob/2dde01902b28e8b2201d935467bc4308ec912255/resources.go#L8. Gazelle supports `embedsrcs`, however, it did not generate the attribute correctly on Windows due to the different directory separator. This is fixed in https://github.com/bazelbuild/bazel-gazelle/pull/1101. * Add gazelle to compatibility workspace It's loaded into `@daml`'s top-level `BUILD` file and ends up being a dependency of the compatibility workspace as well. * shift go_googleapis import * Delete dead code protobuf is imported transitively. * Document how to add Go dependencies Co-authored-by: Moritz Kiefer <moritz.kiefer@purelyfunctional.org> Co-authored-by: Andreas Herrmann <andreas.herrmann@tweag.io>
2021-11-25 23:51:24 +03:00
load("@go_googleapis//:repository_rules.bzl", "switched_rules_by_language")
2019-04-04 11:33:38 +03:00
Update protobuf docs plugin (#11880) * Try to upgrade protobuf docs plugin changelog_begin changelog_end * Fix extension number 65020 is already registered Building `//ledger-api/grpc-definitions:ledger-api-docs` [failed with](https://github.com/digital-asset/daml/issues/11761#issuecomment-978947565) ``` panic: proto: extension number 65020 is already registered on message google.protobuf.FieldOptions ``` Go dependencies are now pulled in via Gazelle. By default Gazelle will generate new proto rules for any `.proto` files encountered in third party Go dependencies. However, many of these already have pregenerated `.pb.go` files generate with the appropriate configuration. The problem can be avoided by configuring Gazelle to not generate new proto rules, but instead use pre-existing `.pb.go` files. For reference the field number is set in [go-proto-validators](https://github.com/mwitkow/go-proto-validators/blob/32a686adf8b5194d3ea07d632d49b6fb344af678/validator.proto#L19) which is an indirect dependency through protoc-gen-doc. In this case we need to update protoc-gen-validate to v0.6.2 to include https://github.com/envoyproxy/protoc-gen-validate/commit/4f41f10dde19ec4dd9dd8cf6f7537139f52fb58b which fixes unknown label errors. * ./fmt * Expose gRPC status.proto for Haskell bindings * Update Gazelle to support embedsrcs on Windows `protoc-gen-doc` relies on `go:embed` file embedding https://github.com/pseudomuto/protoc-gen-doc/blob/2dde01902b28e8b2201d935467bc4308ec912255/resources.go#L8. Gazelle supports `embedsrcs`, however, it did not generate the attribute correctly on Windows due to the different directory separator. This is fixed in https://github.com/bazelbuild/bazel-gazelle/pull/1101. * Add gazelle to compatibility workspace It's loaded into `@daml`'s top-level `BUILD` file and ends up being a dependency of the compatibility workspace as well. * shift go_googleapis import * Delete dead code protobuf is imported transitively. * Document how to add Go dependencies Co-authored-by: Moritz Kiefer <moritz.kiefer@purelyfunctional.org> Co-authored-by: Andreas Herrmann <andreas.herrmann@tweag.io>
2021-11-25 23:51:24 +03:00
switched_rules_by_language(
name = "com_google_googleapis_imports",
grpc = True,
java = True,
2019-04-04 11:33:38 +03:00
)
load("//:bazel-java-deps.bzl", "install_java_deps")
install_java_deps()
load("@maven//:defs.bzl", "pinned_maven_install")
pinned_maven_install()
load("@io_bazel_rules_scala//:scala_config.bzl", "scala_config")
scala_config(scala_version)
load("@io_bazel_rules_scala//scala:scala.bzl", "scala_repositories")
2019-04-04 11:33:38 +03:00
scala_repositories(
fetch_sources = True,
overriden_artifacts = scala_artifacts,
)
load("@io_bazel_rules_scala//scala:toolchains.bzl", "scala_register_toolchains")
Disable writing volatile bits in Scala statsfile (#11875) Make Scala targets deterministic by disabling writing milliseconds timestamps into the statsfile. Before (cache disabled) ``` $ n=1; bazel clean; bazel build //libs-scala/adjustable-clock --execution_log_json_file=execlog$n.json; rsync -aL bazel-bin output$n $ n=2; bazel clean; bazel build //libs-scala/adjustable-clock --execution_log_json_file=execlog$n.json; rsync -aL bazel-bin output$n $ diff -u execlog1.json execlog2.json --- execlog1.json 2021-11-25 09:53:45.638891575 +0100 +++ execlog2.json 2021-11-25 10:01:52.831225558 +0100 @@ -311392,7 +311392,7 @@ }, { "path": "bazel-out/k8-opt/bin/external/io_bazel_rules_scala/third_party/dependency_analyzer/src/main/scala_version.statsfile", "digest": { - "hash": "1c535baa94812c16d33b6b3dcf2dec8e12b77e3a28cd1280ca2c9678840c4de6", + "hash": "a7f6f1b168649c1c5346ff92c69f0095b68781690e4b3f33321d8f35af8b3d77", "sizeBytes": "16", "hashFunctionName": "SHA-256" } @@ -311705,7 +311705,7 @@ }, { "path": "bazel-out/k8-opt/bin/external/io_bazel_rules_scala/third_party/dependency_analyzer/src/main/dependency_analyzer.statsfile", "digest": { - "hash": "b3af662512a906ec56abfb222f43af189b88b00ae0449bd44c25b7e90689c4db", + "hash": "d6c6e2a36754efea4863593a838fbfb500a66e0150d3c3e2e2490ad65c22a2cd", "sizeBytes": "16", "hashFunctionName": "SHA-256" } @@ -312025,7 +312025,7 @@ }, { "path": "bazel-out/k8-opt/bin/libs-scala/adjustable-clock/adjustable-clock.statsfile", "digest": { - "hash": "4326088227e5ecf2c21e76ddb6d77c9692ef1689dd146f65ec1e75c235382251", + "hash": "8a6b23f3c64ce3ff171772808ca0064af52bc145a32d1b6398de124aeb813c97", "sizeBytes": "16", "hashFunctionName": "SHA-256" } $ diff -r output1 output2 diff -ur output1/bazel-bin/external/io_bazel_rules_scala/third_party/dependency_analyzer/src/main/dependency_analyzer.statsfile output2/bazel-bin/external/io_bazel_rules_scala/third_party/dependency_analyzer/src/main/dependency_analyzer.statsfile --- output1/bazel-bin/external/io_bazel_rules_scala/third_party/dependency_analyzer/src/main/dependency_analyzer.statsfile 2021-11-25 09:53:41.706824833 +0100 +++ output2/bazel-bin/external/io_bazel_rules_scala/third_party/dependency_analyzer/src/main/dependency_analyzer.statsfile 2021-11-25 10:01:49.047160467 +0100 @@ -1 +1 @@ -build_time=2507 +build_time=2522 diff -ur output1/bazel-bin/external/io_bazel_rules_scala/third_party/dependency_analyzer/src/main/scala_version.statsfile output2/bazel-bin/external/io_bazel_rules_scala/third_party/dependency_analyzer/src/main/scala_version.statsfile --- output1/bazel-bin/external/io_bazel_rules_scala/third_party/dependency_analyzer/src/main/scala_version.statsfile 2021-11-25 09:53:39.110780774 +0100 +++ output2/bazel-bin/external/io_bazel_rules_scala/third_party/dependency_analyzer/src/main/scala_version.statsfile 2021-11-25 10:01:46.427115402 +0100 @@ -1 +1 @@ -build_time=4162 +build_time=3946 diff -ur output1/bazel-bin/libs-scala/adjustable-clock/adjustable-clock.statsfile output2/bazel-bin/libs-scala/adjustable-clock/adjustable-clock.statsfile --- output1/bazel-bin/libs-scala/adjustable-clock/adjustable-clock.statsfile 2021-11-25 09:53:45.282885532 +0100 +++ output2/bazel-bin/libs-scala/adjustable-clock/adjustable-clock.statsfile 2021-11-25 10:01:52.511220053 +0100 @@ -1 +1 @@ -build_time=3158 +build_time=3100 ``` After (cache disabled) ``` $ n=3; bazel clean; bazel build //libs-scala/adjustable-clock --execution_log_json_file=execlog$n.json; rsync -aL bazel-bin output$n $ n=4; bazel clean; bazel build //libs-scala/adjustable-clock --execution_log_json_file=execlog$n.json; rsync -aL bazel-bin output$n $ diff -u execlog3.json execlog4.json $ diff -ur output3 output4 ``` See https://github.com/bazelbuild/rules_scala/pull/1298 changelog_begin changelog_end Co-authored-by: Andreas Herrmann <andreas.herrmann@tweag.io>
2021-11-25 14:01:17 +03:00
register_toolchains("//bazel_tools/scala:toolchain")
2019-04-04 11:33:38 +03:00
load("@io_bazel_rules_scala//testing:scalatest.bzl", "scalatest_repositories", "scalatest_toolchain")
scalatest_repositories()
scalatest_toolchain()
load("//bazel_tools:scalapb.bzl", "scalapb_version")
http_archive(
name = "scalapb",
build_file_content = """
proto_library(
name = "scalapb_proto",
srcs = ["protobuf/scalapb/scalapb.proto"],
strip_import_prefix = "protobuf/",
deps = [
"@com_google_protobuf//:descriptor_proto",
],
visibility = ["//visibility:public"],
)
""",
sha256 = "2ddce4c5927fa8dd80069fba2fb60199f5b2b95e81e8da69b132665fae6c638c",
strip_prefix = "ScalaPB-{}".format(scalapb_version),
urls = ["https://github.com/scalapb/ScalaPB/archive/refs/tags/v{}.tar.gz".format(scalapb_version)],
)
2019-04-04 11:33:38 +03:00
load("@io_bazel_rules_scala//jmh:jmh.bzl", "jmh_repositories")
2019-04-04 11:33:38 +03:00
jmh_repositories()
# TODO (aherrmann) This wrapper is only used on Windows.
# Replace by an appropriate Windows only `dadew_tool` call.
dev_env_tool(
name = "nodejs_dev_env",
nix_include = [
"bin",
"include",
"lib",
"share",
],
nix_label = "@node_nix",
nix_paths = [],
prefix = "nodejs_dev_env",
tools = [],
win_include = [
".",
],
win_paths = [],
win_tool = "nodejs",
2019-04-04 11:33:38 +03:00
)
# Setup the Node.js toolchain
load("@build_bazel_rules_nodejs//:index.bzl", "node_repositories", "yarn_install")
2019-04-04 11:33:38 +03:00
node_repositories(
# Using `dev_env_tool` introduces an additional layer of symlink
# indirection. Bazel doesn't track dependencies through symbolic links.
# Occasionally, this can cause build failures on CI if a build is not
# invalidated despite a change of an original source. To avoid such issues
# we use the `nixpkgs_package` directly.
Darwin M1 Support (#13401) * Update rules_nixpkgs and rules_sh rules_sh was an implicit dependency before. We are now depending on it explicitly to be able to control the version. * Patch rules_nixpkgs to detect ARM M1 This should be upstreamed. * Patch rules_haskell for ARM M1 compatibility * Detect MacOS M1 OS and architecture. * Consistently use the CC toolchains' linker. This is important when we switch to GHC with LLVM. * Detect Darwin M1 in os_info.bzl * Use the new rules_nixpkgs host platform The old flags hard-coded the CPU architecture. The new platform automatically inherits from Bazel's builtin host platform. * Import the Go toolchain from rules_nixpkgs * Update nodejs to version 16 * Disable Haddock on lsp-types We're also disabling it on the other haskell_cabal_library instances, and it is causing build errors on M1. ``` Running Haddock on library for lsp-types-1.4.0.0.. creating /private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc/html/lsp-types creating /private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc/html creating /private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc creating /private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc/html creating /private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc/html/lsp-types /private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc/html/lsp-types/haddock-response42424-1.txt contents: <<< --prologue=/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc/html/lsp-types/haddock-prologue42424-0.txt --dump-interface=/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc/html/lsp-types/lsp-types.haddock --package-name=lsp-types --package-version=1.4.0.0 --since-qual=external --hide=Language.LSP.Types.CallHierarchy --hide=Language.LSP.Types.Cancellation --hide=Language.LSP.Types.ClientCapabilities --hide=Language.LSP.Types.CodeAction --hide=Language.LSP.Types.CodeLens --hide=Language.LSP.Types.Command --hide=Language.LSP.Types.Common --hide=Language.LSP.Types.Completion --hide=Language.LSP.Types.Configuration --hide=Language.LSP.Types.Declaration --hide=Language.LSP.Types.Definition --hide=Language.LSP.Types.Diagnostic --hide=Language.LSP.Types.DocumentColor --hide=Language.LSP.Types.DocumentFilter --hide=Language.LSP.Types.DocumentHighlight --hide=Language.LSP.Types.DocumentLink --hide=Language.LSP.Types.DocumentSymbol --hide=Language.LSP.Types.FoldingRange --hide=Language.LSP.Types.Formatting --hide=Language.LSP.Types.Hover --hide=Language.LSP.Types.Implementation --hide=Language.LSP.Types.Initialize --hide=Language.LSP.Types.Location --hide=Language.LSP.Types.LspId --hide=Language.LSP.Types.MarkupContent --hide=Language.LSP.Types.Method --hide=Language.LSP.Types.Message --hide=Language.LSP.Types.Parsing --hide=Language.LSP.Types.Progress --hide=Language.LSP.Types.Registration --hide=Language.LSP.Types.References --hide=Language.LSP.Types.Rename --hide=Language.LSP.Types.SelectionRange --hide=Language.LSP.Types.ServerCapabilities --hide=Language.LSP.Types.SemanticTokens --hide=Language.LSP.Types.SignatureHelp --hide=Language.LSP.Types.StaticRegistrationOptions --hide=Language.LSP.Types.TextDocument --hide=Language.LSP.Types.TypeDefinition --hide=Language.LSP.Types.Uri --hide=Language.LSP.Types.Utils --hide=Language.LSP.Types.Window --hide=Language.LSP.Types.WatchedFiles --hide=Language.LSP.Types.WorkspaceEdit --hide=Language.LSP.Types.WorkspaceFolders --hide=Language.LSP.Types.WorkspaceSymbol --html --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/array-0.5.4.0,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/array-0.5.4.0/array.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/base-4.15.1.0,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/base-4.15.1.0/base.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/binary-0.8.8.0,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/binary-0.8.8.0/binary.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/bytestring-0.10.12.1,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/bytestring-0.10.12.1/bytestring.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/containers-0.6.4.1,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/containers-0.6.4.1/containers.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/deepseq-1.4.5.0,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/deepseq-1.4.5.0/deepseq.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/directory-1.3.6.2,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/directory-1.3.6.2/directory.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/exceptions-0.10.4,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/exceptions-0.10.4/exceptions.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/filepath-1.4.2.1,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/filepath-1.4.2.1/filepath.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/ghc-bignum-1.1,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/ghc-bignum-1.1/ghc-bignum.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/ghc-boot-th-9.0.2,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/ghc-boot-th-9.0.2/ghc-boot-th.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/ghc-prim-0.7.0,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/ghc-prim-0.7.0/ghc-prim.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/integer-gmp-1.1,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/integer-gmp-1.1/integer-gmp.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/mtl-2.2.2,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/mtl-2.2.2/mtl.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/parsec-3.1.14.0,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/parsec-3.1.14.0/parsec.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/pretty-1.1.3.6,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/pretty-1.1.3.6/pretty.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/stm-2.5.0.0,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/stm-2.5.0.0/stm.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/template-haskell-2.17.0.0,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/template-haskell-2.17.0.0/template-haskell.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/text-1.2.5.0,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/text-1.2.5.0/text.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/time-1.9.3,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/time-1.9.3/time.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/transformers-0.5.6.2,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/transformers-0.5.6.2/transformers.haddock --read-interface=file:///nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/unix-2.7.2.2,/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/unix-2.7.2.2/unix.haddock --odir=/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc/html/lsp-types/ --title=lsp-types-1.4.0.0:\ Haskell\ library\ for\ the\ Microsoft\ Language\ Server\ Protocol,\ data\ types --optghc=-fbuilding-cabal-package --optghc=-O --optghc=-outputdir --optghc=../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build --optghc=-odir --optghc=../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build/tmp-42424 --optghc=-hidir --optghc=../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build/tmp-42424 --optghc=-stubdir --optghc=../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build/tmp-42424 --optghc=-i --optghc=-i../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build --optghc=-isrc --optghc=-i../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build/autogen --optghc=-i../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build/global-autogen --optghc=-I../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build/autogen --optghc=-I../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build/global-autogen --optghc=-I../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build --optghc=-optP-D__HADDOCK_VERSION__=2251 --optghc=-optP-include --optghc=-optP../../bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/build/autogen/cabal_macros.h --optghc=-this-unit-id --optghc=lsp-types-1.4.0.0 --optghc=-hide-all-packages --optghc=-Wmissing-home-modules --optghc=-no-user-package-db --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/Diff-0.4.1/_install/Diff-0.4.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/base-orphans-0.8.6/_install/base-orphans-0.8.6.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/OneTuple-0.3.1/_install/OneTuple-0.3.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/splitmix-0.1.0.4/_install/splitmix-0.1.0.4.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/random-1.2.1/_install/random-1.2.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/QuickCheck-2.14.2/_install/QuickCheck-2.14.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/hashable-1.3.5.0/_install/hashable-1.3.5.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/integer-logarithms-1.0.3.1/_install/integer-logarithms-1.0.3.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/primitive-0.7.3.0/_install/primitive-0.7.3.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/scientific-0.3.7.0/_install/scientific-0.3.7.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/attoparsec-0.14.4/_install/attoparsec-0.14.4-attoparsec-internal.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/attoparsec-0.14.4/_install/attoparsec-0.14.4.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/base-compat-0.11.2/_install/base-compat-0.11.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/base-compat-batteries-0.11.2/_install/base-compat-batteries-0.11.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/data-fix-0.3.2/_install/data-fix-0.3.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/dlist-1.0/_install/dlist-1.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/indexed-traversable-0.1.2/_install/indexed-traversable-0.1.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/tagged-0.8.6.1/_install/tagged-0.8.6.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/unordered-containers-0.2.16.0/_install/unordered-containers-0.2.16.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/vector-0.12.3.1/_install/vector-0.12.3.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/indexed-traversable-instances-0.1.1/_install/indexed-traversable-instances-0.1.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/distributive-0.6.2.1/_install/distributive-0.6.2.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/transformers-compat-0.6.6/_install/transformers-compat-0.6.6.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/comonad-5.0.8/_install/comonad-5.0.8.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/th-abstraction-0.4.3.0/_install/th-abstraction-0.4.3.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/bifunctors-5.5.11/_install/bifunctors-5.5.11.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/StateVar-1.2.2/_install/StateVar-1.2.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/contravariant-1.5.5/_install/contravariant-1.5.5.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/semigroupoids-5.3.7/_install/semigroupoids-5.3.7.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/assoc-1.0.2/_install/assoc-1.0.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/these-1.1.1.1/_install/these-1.1.1.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/semialign-1.2.0.1/_install/semialign-1.2.0.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/strict-0.4.0.1/_install/strict-0.4.0.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/text-short-0.1.5/_install/text-short-0.1.5.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/time-compat-1.9.6.1/_install/time-compat-1.9.6.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/uuid-types-1.0.5/_install/uuid-types-1.0.5.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/witherable-0.4.2/_install/witherable-0.4.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/aeson-2.0.3.0/_install/aeson-2.0.3.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/data-default-class-0.1.2.0/_install/data-default-class-0.1.2.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/data-default-instances-containers-0.0.1/_install/data-default-instances-containers-0.0.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/data-default-instances-dlist-0.0.1/_install/data-default-instances-dlist-0.0.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/old-locale-1.0.0.7/_install/old-locale-1.0.0.7.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/data-default-instances-old-locale-0.0.1/_install/data-default-instances-old-locale-0.0.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/data-default-0.7.1.1/_install/data-default-0.7.1.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/network-3.1.2.7/_install/network-3.1.2.7.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/network-bsd-2.8.1.0/_install/network-bsd-2.8.1.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/hslogger-1.3.1.0/_install/hslogger-1.3.1.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/call-stack-0.4.0/_install/call-stack-0.4.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/profunctors-5.6.2/_install/profunctors-5.6.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/transformers-base-0.4.6/_install/transformers-base-0.4.6.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/free-5.1.7/_install/free-5.1.7.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/semigroups-0.19.2/_install/semigroups-0.19.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/void-0.7.3/_install/void-0.7.3.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/adjunctions-4.4/_install/adjunctions-4.4.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/invariant-0.5.5/_install/invariant-0.5.5.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/kan-extensions-5.2.3/_install/kan-extensions-5.2.3.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/parallel-3.2.2.0/_install/parallel-3.2.2.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/reflection-2.1.6/_install/reflection-2.1.6.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/lens-5.0.1/_install/lens-5.0.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/semirings-0.6/_install/semirings-0.6.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/mod-0.1.2.2/_install/mod-0.1.2.2.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/th-compat-0.1.3/_install/th-compat-0.1.3.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/network-uri-2.6.4.1/_install/network-uri-2.6.4.1.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/rope-utf16-splay-0.3.2.0/_install/rope-utf16-splay-0.3.2.0.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/some-1.0.3/_install/some-1.0.3.conf.d --optghc=-package-db --optghc=../../bazel-out/darwin_arm64-opt/bin/external/stackage/temporary-1.3/_install/temporary-1.3.conf.d --optghc=-package-db --optghc=/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/_install/lsp-types-1.4.0.0.conf.d --optghc=-package-db --optghc=/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/package.conf.inplace --optghc=-package-id --optghc=Diff-0.4.1 --optghc=-package-id --optghc=aeson-2.0.3.0 --optghc=-package-id --optghc=base-4.15.1.0 --optghc=-package-id --optghc=binary-0.8.8.0 --optghc=-package-id --optghc=bytestring-0.10.12.1 --optghc=-package-id --optghc=containers-0.6.4.1 --optghc=-package-id --optghc=data-default-0.7.1.1 --optghc=-package-id --optghc=deepseq-1.4.5.0 --optghc=-package-id --optghc=directory-1.3.6.2 --optghc=-package-id --optghc=dlist-1.0 --optghc=-package-id --optghc=filepath-1.4.2.1 --optghc=-package-id --optghc=hashable-1.3.5.0 --optghc=-package-id --optghc=hslogger-1.3.1.0 --optghc=-package-id --optghc=lens-5.0.1 --optghc=-package-id --optghc=mod-0.1.2.2 --optghc=-package-id --optghc=mtl-2.2.2 --optghc=-package-id --optghc=network-uri-2.6.4.1 --optghc=-package-id --optghc=rope-utf16-splay-0.3.2.0 --optghc=-package-id --optghc=scientific-0.3.7.0 --optghc=-package-id --optghc=some-1.0.3 --optghc=-package-id --optghc=template-haskell-2.17.0.0 --optghc=-package-id --optghc=temporary-1.3 --optghc=-package-id --optghc=text-1.2.5.0 --optghc=-package-id --optghc=unordered-containers-0.2.16.0 --optghc=-XHaskell2010 --optghc=-XStrictData --optghc=-Wall -B/nix/store/z8577sg7xny6fxhndrrrkpvzhn53w9vc-ghc-native-bignum-9.0.2/lib/ghc-9.0.2 src/Language/LSP/Types.hs src/Language/LSP/Types/Capabilities.hs src/Language/LSP/Types/Lens.hs src/Language/LSP/Types/SMethodMap.hs src/Language/LSP/VFS.hs src/Data/IxMap.hs src/Language/LSP/Types/CallHierarchy.hs src/Language/LSP/Types/Cancellation.hs src/Language/LSP/Types/ClientCapabilities.hs src/Language/LSP/Types/CodeAction.hs src/Language/LSP/Types/CodeLens.hs src/Language/LSP/Types/Command.hs src/Language/LSP/Types/Common.hs src/Language/LSP/Types/Completion.hs src/Language/LSP/Types/Configuration.hs src/Language/LSP/Types/Declaration.hs src/Language/LSP/Types/Definition.hs src/Language/LSP/Types/Diagnostic.hs src/Language/LSP/Types/DocumentColor.hs src/Language/LSP/Types/DocumentFilter.hs src/Language/LSP/Types/DocumentHighlight.hs src/Language/LSP/Types/DocumentLink.hs src/Language/LSP/Types/DocumentSymbol.hs src/Language/LSP/Types/FoldingRange.hs src/Language/LSP/Types/Formatting.hs src/Language/LSP/Types/Hover.hs src/Language/LSP/Types/Implementation.hs src/Language/LSP/Types/Initialize.hs src/Language/LSP/Types/Location.hs src/Language/LSP/Types/LspId.hs src/Language/LSP/Types/MarkupContent.hs src/Language/LSP/Types/Method.hs src/Language/LSP/Types/Message.hs src/Language/LSP/Types/Parsing.hs src/Language/LSP/Types/Progress.hs src/Language/LSP/Types/Registration.hs src/Language/LSP/Types/References.hs src/Language/LSP/Types/Rename.hs src/Language/LSP/Types/SelectionRange.hs src/Language/LSP/Types/ServerCapabilities.hs src/Language/LSP/Types/SemanticTokens.hs src/Language/LSP/Types/SignatureHelp.hs src/Language/LSP/Types/StaticRegistrationOptions.hs src/Language/LSP/Types/TextDocument.hs src/Language/LSP/Types/TypeDefinition.hs src/Language/LSP/Types/Uri.hs src/Language/LSP/Types/Utils.hs src/Language/LSP/Types/Window.hs src/Language/LSP/Types/WatchedFiles.hs src/Language/LSP/Types/WorkspaceEdit.hs src/Language/LSP/Types/WorkspaceFolders.hs src/Language/LSP/Types/WorkspaceSymbol.hs >>> /private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc/html/lsp-types/haddock-response42424-1.txt Environment: [("CABAL_VERBOSE","True"),("CC_WRAPPER_CC_PATH","external/local_config_cc/cc_wrapper.sh"),("CC_WRAPPER_CPU","darwin_arm64"),("CC_WRAPPER_PLATFORM","darwin"),("CODESIGN_ALLOCATE","/nix/store/3ibr5yy13sxl2vb5rig8fivj85sqcvf2-cctools-port-949.0.1/bin/codesign_allocate"),("HOME","/var/empty"),("LANG","C.UTF-8"),("LC_CTYPE","UTF-8"),("LD_LIBRARY_PATH",""),("LIBRARY_PATH",""),("PATH","/nix/store/xqbgx1y5xh2k13c6nizlprkp0j8mcw6w-clang-wrapper-12.0.1/bin:/nix/store/p90xw78bb3xsxg5v7k31qj5hpwm2pngp-llvm-12.0.1/bin:/nix/store/5havjxkv59cprx4czgi1lwnvv7y22dzi-posix-toolchain/bin"),("PWD","/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/external/lsp-types"),("PYTHONPATH","/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/runghc.runfiles:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/runghc.runfiles/:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/runghc.runfiles/bazel_tools:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/runghc.runfiles/com_github_digital_asset_daml:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/runghc.runfiles/local_config_cc:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/runghc.runfiles/rules_haskell:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/runghc.runfiles/rules_haskell_ghc_nixpkgs:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/runghc.runfiles/rules_python:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/cabal_wrapper.runfiles:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/cabal_wrapper.runfiles/:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/cabal_wrapper.runfiles/bazel_tools:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/cabal_wrapper.runfiles/com_github_digital_asset_daml:/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/cabal_wrapper.runfiles/rules_haskell"),("RULES_HASKELL_DOCDIR_PATH","/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/base-4.15.1.0"),("RULES_HASKELL_EXEC_ROOT","/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml"),("RULES_HASKELL_GHC_PATH","/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/external/rules_haskell_ghc_nixpkgs/bin/ghc"),("RULES_HASKELL_GHC_PKG_PATH","/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/external/rules_haskell_ghc_nixpkgs/bin/ghc-pkg"),("RULES_HASKELL_LIBDIR_PATH","/nix/store/z8577sg7xny6fxhndrrrkpvzhn53w9vc-ghc-native-bignum-9.0.2/lib/ghc-9.0.2"),("RUNFILES_DIR","/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/runghc.runfiles"),("SDKROOT","macosx"),("SHLVL","0"),("TEMP","/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/tmp"),("TMP","/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/tmp"),("TMPDIR","/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/tmp"),("__CF_USER_TEXT_ENCODING","0x1F5:0x0:0x0")] /private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/external/rules_haskell_ghc_nixpkgs/bin/haddock '@/private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types-1.4.0.0/doc/html/lsp-types/haddock-response42424-1.txt' 0% ( 0 / 7) in 'Data.IxMap' Missing documentation for: Module header IxOrd (src/Data/IxMap.hs:17) IxMap (src/Data/IxMap.hs:21) emptyIxMap (src/Data/IxMap.hs:23) insertIxMap (src/Data/IxMap.hs:26) lookupIxMap (src/Data/IxMap.hs:31) pickFromIxMap (src/Data/IxMap.hs:37) `cc' failed in phase `Linker'. (Exit code: 134) /private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml/external/rules_haskell_ghc_nixpkgs/bin/haddock returned ExitFailure 1 Target //compiler/damlc:damlc failed to build ERROR: /Users/builder/daml-andreas/compiler/damlc/BUILD.bazel:38:9 Middleman _middlemen/compiler_Sdamlc_Sdamlc-runfiles failed: (Exit 1): cabal_wrapper failed: error executing command (cd /private/var/tmp/_bazel_builder/7ce5f28514593fc1883e9fee6040cfef/sandbox/processwrapper-sandbox/1/execroot/com_github_digital_asset_daml && \ exec env - \ CABAL_VERBOSE=True \ CC_WRAPPER_CC_PATH=external/local_config_cc/cc_wrapper.sh \ CC_WRAPPER_CPU=darwin_arm64 \ CC_WRAPPER_PLATFORM=darwin \ LANG=C.UTF-8 \ PATH=/nix/store/5havjxkv59cprx4czgi1lwnvv7y22dzi-posix-toolchain/bin \ RULES_HASKELL_DOCDIR_PATH=/nix/store/kd7bjbp0wgz0qjhx6m2fcasp66n0wga2-ghc-native-bignum-9.0.2-doc/share/doc/ghc-native-bignum/html/libraries/base-4.15.1.0 \ RULES_HASKELL_GHC_PATH=external/rules_haskell_ghc_nixpkgs/bin/ghc \ RULES_HASKELL_GHC_PKG_PATH=external/rules_haskell_ghc_nixpkgs/bin/ghc-pkg \ RULES_HASKELL_LIBDIR_PATH=/nix/store/z8577sg7xny6fxhndrrrkpvzhn53w9vc-ghc-native-bignum-9.0.2/lib/ghc-9.0.2 \ SDKROOT=macosx \ bazel-out/darwin_arm64-opt/bin/external/rules_haskell/haskell/cabal_wrapper bazel-out/darwin_arm64-opt/bin/external/lsp-types/lsp-types_cabal_wrapper_args.json) Execution platform: @io_tweag_rules_nixpkgs//nixpkgs/platforms:host Use --sandbox_debug to see verbose messages from the sandbox INFO: Elapsed time: 344.702s, Critical Path: 329.09s INFO: 49 processes: 14 internal, 35 processwrapper-sandbox. FAILED: Build did NOT complete successfully FAILED: Build did NOT complete successfully ``` * Disable create-daml-app tests on MacOS M1 These fail to build because puppeteer fails to install Chromium on M1. See https://github.com/digital-asset/daml/pull/13250. * Resign binaries after patching in package-app Otherwise they fail to execute on MacOS Monterey on M1. They symptom is that executing or otherwise loading the binary (e.g. into lldb) fails with exit code -9 without further indications. * Use GHC with LLVM on MacOS M1 The native backend only supports M1 starting from GHC 9.2. However, we are still on GHC 9.0. We wrap GHC to ensure that the LLVM toolchain and the codesign tool are present in the environment and point to the correct versions provided by nixpkgs. * Update the CC toolchain for MacOS M1 compatibility Use nixpkgs `nix-support/cc-cflags` file to provide default flags instead of using `makeWrapper`. On M1 there was an issue where passing `-l` flags or `-isystem` to `cc -v` would cause the following errors: ``` lang version 11.1.0 Target: aarch64-apple-darwin Thread model: posix InstalledDir: /nix/store/v6iidz79b425hli98g45xq9iblapn1zy-clang-11.1.0/bin "/nix/store/b82mvqzvdx5mh1n9n77v8h5vk9fgqrxj-clang-wrapper-11.1.0/bin/ld" -demangle -lto_library /nix/store/v6iidz79b425hli98g45xq9iblapn1zy-clang-11.1.0/lib/libLTO.dylib -dynamic -arch arm64 -platform_version macos 11.0.0 0.0.0 -o a.out -L/nix/store/hc8a94w57ppwmn2gscm56pvlwi3zhyh1-libSystem-11.0.0/lib -L/nix/store/6f5ygwif1r523jj2qfwfiwix0fga4rgp-clang-11.1.0-lib/lib -L/nix/store/7pkxnbhpi0c10w18rirj8zxz3wv571nj-libcxx-11.1.0/lib -no_uuid -arch arm64 -lSystem /nix/store/b82mvqzvdx5mh1n9n77v8h5vk9fgqrxj-clang-wrapper-11.1.0/resource-root/lib/darwin/libclang_rt.osx.a Undefined symbols for architecture arm64: "_main", referenced from: implicit entry/start for main executable ld: symbol(s) not found for architecture arm64 ``` This also includes additional standard library search paths: `-isystem ${llvmPackages_12.libcxx.dev}/include/c++/v1` alone is not enough because some headers in it are [wrapper headers](https://gcc.gnu.org/onlinedocs/cpp/Wrapper-Headers.html) that use `include_next` directives. For these to resolve we need to add the compiler's builtin headers to the search path as well. This also sets `-Wno-elaborated-enum-base` to avoid build failures of absl on MacOS Monterey M1. ``` In file included from external/com_google_absl/absl/time/internal/cctz/src/time_zone_lookup.cc:26: In file included from /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFTimeZone.h:13: /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:474:9: error: non-defining declaration of enumeration with a fixed underlying type is only permitted as a standalone declaration; missing list of enumerators? [-Welaborated-enum-base] typedef CF_ENUM(CFIndex, CFComparisonResult) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFAvailability.h:169:55: note: expanded from macro 'CF_ENUM' \#define CF_ENUM(...) __CF_ENUM_GET_MACRO(__VA_ARGS__, __CF_NAMED_ENUM, __CF_ANON_ENUM, )(__VA_ARGS__) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFAvailability.h:134:48: note: expanded from macro '__CF_ENUM_GET_MACRO' \#define __CF_ENUM_GET_MACRO(_1, _2, NAME, ...) NAME ^ /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFAvailability.h:142:75: note: expanded from macro '__CF_NAMED_ENUM' \#define __CF_NAMED_ENUM(_type, _name) enum __CF_ENUM_ATTRIBUTES _name : _type _name; enum _name : _type ^~~~~~~ In file included from external/com_google_absl/absl/time/internal/cctz/src/time_zone_lookup.cc:26: In file included from /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFTimeZone.h:18: In file included from /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFString.h:17: /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFCharacterSet.h:62:9: error: non-defining declaration of enumeration with a fixed underlying type is only permitted as a standalone decla ration; missing list of enumerators? [-Welaborated-enum-base] typedef CF_ENUM(CFIndex, CFCharacterSetPredefinedSet) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFAvailability.h:169:55: note: expanded from macro 'CF_ENUM' \#define CF_ENUM(...) __CF_ENUM_GET_MACRO(__VA_ARGS__, __CF_NAMED_ENUM, __CF_ANON_ENUM, )(__VA_ARGS__) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFAvailability.h:134:48: note: expanded from macro '__CF_ENUM_GET_MACRO' \#define __CF_ENUM_GET_MACRO(_1, _2, NAME, ...) NAME ^ /nix/store/jjkm7x4zfifqgsxlbhkamzg0vc9wzip4-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFAvailability.h:142:75: note: expanded from macro '__CF_NAMED_ENUM' \#define __CF_NAMED_ENUM(_type, _name) enum __CF_ENUM_ATTRIBUTES _name : _type _name; enum _name : _type ^~~~~~~ ... ``` * Link libc++ in fat_cc_library on MacOS * Build on native ARM M1 instead of Rosetta changelog_begin changelog_end * Drop unused ghcLLVMWrapper * Select ghcWithLLVM within Nix If we generally expose ghcWithLLVM from Nix and then select on the Bazel, then we'd need to filter that derivation out from the Nix and dev-tool build step on CI. * fmt * Update Node version in compatibility * Expose node in PATH in create-daml-app test It seems that the node update made the `--scripts-prepend-node-path` flag less effective than it was before. Without explicitly adding `node` to `PATH` the install step fails with the following error: ``` Failure: Command "CreateProcess {cmdspec = RawCommand "/home/aj/.cache/bazel/_bazel_aj/c437a451a7a277d35b539da616255ac8/sandbox/linux-sandbox/1435/execroot/compatibility/bazel-out/k8-opt/bin/create-daml-app-0.0.0-platform-2.0.0.runfiles/compatibility/external/node_nix/node_nix/lib/node_modules/npm/bin/npm-cli.js" ["install","--scripts-prepend-node-path"], cwd = Nothing, env = Nothing, std_in = Inherit, std_out = Inherit, std_err = Inherit, close_fds = False, create_group = False, delegate_ctlc = False, detach_console = False, create_new_console = False, new_session = False, child_group = Nothing, child_user = Nothing, use_process_jobs = False}" exited with ExitFailure 127 npm ERR! code 127 npm ERR! path /tmp/extra-dir-7515936101075/create-daml-app/ui/node_modules/puppeteer npm ERR! command failed npm ERR! command sh -c node install.js npm ERR! sh: line 1: node: command not found npm ERR! A complete log of this run can be found in: npm ERR! /tmp/extra-dir-7515936101074/_logs/2022-03-24T10_18_15_227Z-debug.log ``` * Skip create-daml-app compat tests pre 2.0.0 changelog_begin changelog_end In these tests the install step fails with the following error due to mismatch babel-jest dependency versions: ``` ==================== Test output for //:create-daml-app-1.8.1-platform-0.0.0: Create Daml App tests Getting Started Guide: WARNING: Specifying the template via daml new create-daml-app create-daml-app is deprecated. The recommended way of specifying the template is daml new create-daml-app --template create-daml-app Created a new project in "create-daml-app" based on the template "create-daml-app". > create-daml-app@0.1.0 test > react-scripts test --testURL='http://localhost:7575' There might be a problem with the project dependency tree. It is likely not a bug in Create React App, but something you need to fix locally. The react-scripts package provided by Create React App requires a dependency: "babel-jest": "^24.9.0" Don't try to install it manually: your package manager does it automatically. However, a different version of babel-jest was detected higher up in the tree: /tmp/extra-dir-3298351016846/create-daml-app/ui/node_modules/babel-jest (version: 25.5.1) Manually installing incompatible versions is known to cause hard-to-debug issues. If you would prefer to ignore this check, add SKIP_PREFLIGHT_CHECK=true to an .env file in your project. That will permanently disable this message but you might encounter other issues. To fix the dependency tree, try following the steps below in the exact order: 1. Delete package-lock.json (not package.json!) and/or yarn.lock in your project folder. 2. Delete node_modules in your project folder. 3. Remove "babel-jest" from dependencies and/or devDependencies in the package.json file in your project folder. 4. Run npm install or yarn, depending on the package manager you use. In most cases, this should be enough to fix the problem. If this has not helped, there are a few other things you can try: 5. If you used npm, install yarn (http://yarnpkg.com/) and repeat the above steps with it instead. This may help because npm has known issues with package hoisting which may get resolved in future versions. 6. Check if /tmp/extra-dir-3298351016846/create-daml-app/ui/node_modules/babel-jest is outside your project directory. For example, you might have accidentally installed something in your home folder. 7. Try running npm ls babel-jest in your project folder. This will tell you which other package (apart from the expected react-scripts) installed babel-jest. If nothing else helps, add SKIP_PREFLIGHT_CHECK=true to an .env file in your project. That would permanently disable this preflight check in case you want to proceed anyway. P.S. We know this message is long but please read the steps above :-) We hope you find them helpful! FAIL (125.62s) Create app from template (0.05s) Patch the application code with messaging feature Extract codegen output (0.06s) Set up libraries and workspaces (0.01s) Install Jest, Puppeteer and other dependencies (123.95s) Run Puppeteer end-to-end tests (1.54s) callProcess: /home/aj/.cache/bazel/_bazel_aj/c437a451a7a277d35b539da616255ac8/sandbox/linux-sandbox/2351/execroot/compatibility/bazel-out/k8-opt/bin/create-daml-app-1.8.1-platform-0.0.0.runfiles/compatibility/external/node_nix/node_nix/lib/node_modules/npm/bin/npm-cli.js "run" "test" "--ci" "--all" "--scripts-prepend-node-path" (exit 1): failed 1 out of 1 tests failed (125.62s) ================================================================================ ``` Applying the suggested `SKIP_PREFLIGHT_CHECK=true` fix leads to the following failure instead: ``` ==================== Test output for //:create-daml-app-1.9.0-platform-0.0.0: Create Daml App tests Getting Started Guide: WARNING: Specifying the template via daml new create-daml-app create-daml-app is deprecated. The recommended way of specifying the template is daml new create-daml-app --template create-daml-app Created a new project in "create-daml-app" based on the template "create-daml-app". > create-daml-app@0.1.0 test > react-scripts test --testURL='http://localhost:7575' PASS src/components/App.test.tsx ● Console console.debug daml-types/index.js:98 Registered template bbfcd72618817ef8c99eb663e1f80375835bd51efebdc69b55884ad7afb3a0ef:User:Message. console.debug daml-types/index.js:98 Registered template bbfcd72618817ef8c99eb663e1f80375835bd51efebdc69b55884ad7afb3a0ef:User:User. 12:42:55.745 [program-resource-pool-4] INFO c.d.l.sandbox.AkkaSubmissionsBridge - Instantiated Akka submissions bridge., context: {participantId: "sandbox"} 12:42:57.897 [program-resource-pool-3] INFO c.d.ledger.sandbox.SandboxOnXRunner - Initialized sandbox-on-x with conflict checking ledger bridge, version 0.0.0, run-mode = combined participant, index DB backend = h2database, participant-id = sandbox, ledger-id = create-daml-app-sandbox, port = 0, time mode = wall-clock time, allowed language versions = [min = LanguageVersion(V1,LanguageMinorVersion(6)), max = LanguageVersion(V1,LanguageMinorVersion(14))], authentication = all unauthenticated allowed, contract ids seeding = strong 24-03-2022 12:43:02.413 [main] INFO com.daml.http.Main - Config(ledgerHost=localhost, ledgerPort=34937, address=127.0.0.1, httpPort=7575, portFile=Some(json-api.port), packageReloadInterval=5 seconds, packageMaxInboundMessageSize=None, maxInboundMessageSize=4194304, tlsConfig=TlsConfiguration(false,None,None,None,None,REQUIRE,false,None), jdbcConfig=None, staticContentConfig=None, allowNonHttps=true, wsConfig=None, nonRepudiationCertificateFile=None, nonRepudiationPrivateKeyFile=None, nonRepudiationPrivateKeyAlgorithm=None, surrogateTpIdCacheMaxEntries=None), context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0"} 24-03-2022 12:43:02.745 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO akka.event.slf4j.Slf4jLogger - Slf4jLogger started 24-03-2022 12:43:03.041 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO com.daml.http.HttpService - HTTP Server pre-startup, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0"} 24-03-2022 12:43:03.251 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO com.daml.http.LedgerClient - Attempting to connect to the ledger localhost:34937 (600 attempts), context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0"} 24-03-2022 12:43:03.594 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO com.daml.http.LedgerClient - Attempt 1/600 succeeded!, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0"} 24-03-2022 12:43:03.596 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO com.daml.http.LedgerClient - Attempting to connect to the ledger localhost:34937 (600 attempts), context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0"} 24-03-2022 12:43:03.600 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO com.daml.http.LedgerClient - Attempt 1/600 succeeded!, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0"} 24-03-2022 12:43:03.601 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO com.daml.http.HttpService - contractDao: None, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0"} 24-03-2022 12:43:04.132 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO com.daml.http.Main - Started server: (ServerBinding(/127.0.0.1:7575),None), context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0"} 24-03-2022 12:43:05.280 [http-json-ledger-api-akka.actor.default-dispatcher-13] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "2ab72d48-cdef-4e00-ac17-0afda5084008"} 24-03-2022 12:43:05.791 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "2ab72d48-cdef-4e00-ac17-0afda5084008"} > create-daml-app@0.1.0 start > react-scripts start [HPM] Proxy created: function (pathname, req) { // Proxy requests to the http json api when in development const proxied = pathname.match("^/v1") && process.env.NODE_ENV === "development"; if (proxied) { console.log( `Request with path ${pathname} proxied from host ${req.headers.host} to host ${httpJsonDevUrl}` ); } return proxied; } -> http://localhost:undefined ℹ 「wds」: Project is running at http://192.168.1.114/ ℹ 「wds」: webpack output is served from ℹ 「wds」: Content not from webpack is served from /tmp/extra-dir-99443589994656/create-daml-app/ui/public ℹ 「wds」: 404s will fallback to / Starting the development server... 24-03-2022 12:43:07.495 [http-json-ledger-api-akka.actor.default-dispatcher-9] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "ce0131fd-6a4c-4eb1-8c1b-6d68418fde82"} 24-03-2022 12:43:07.606 [http-json-ledger-api-akka.actor.default-dispatcher-17] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "ce0131fd-6a4c-4eb1-8c1b-6d68418fde82"} 24-03-2022 12:43:07.623 [http-json-ledger-api-akka.actor.default-dispatcher-9] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "a4d1c7b0-406c-4297-a690-66ba2b692f19"} 24-03-2022 12:43:07.725 [http-json-ledger-api-akka.actor.default-dispatcher-16] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "a4d1c7b0-406c-4297-a690-66ba2b692f19"} 24-03-2022 12:43:07.741 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "bf65790a-38bc-4686-aa15-607c3c24661a"} 24-03-2022 12:43:07.846 [http-json-ledger-api-akka.actor.default-dispatcher-9] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "bf65790a-38bc-4686-aa15-607c3c24661a"} 24-03-2022 12:43:07.865 [http-json-ledger-api-akka.actor.default-dispatcher-13] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "3ab06283-270c-4994-852c-92c8c3b34ecc"} 24-03-2022 12:43:07.964 [http-json-ledger-api-akka.actor.default-dispatcher-14] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "3ab06283-270c-4994-852c-92c8c3b34ecc"} 24-03-2022 12:43:07.980 [http-json-ledger-api-akka.actor.default-dispatcher-8] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "b332b66a-6231-4492-817d-a2c58c85d04c"} 24-03-2022 12:43:08.084 [http-json-ledger-api-akka.actor.default-dispatcher-18] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "b332b66a-6231-4492-817d-a2c58c85d04c"} 24-03-2022 12:43:08.098 [http-json-ledger-api-akka.actor.default-dispatcher-17] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "8c77ce53-52b5-4e0c-993a-3f810b54bfec"} 24-03-2022 12:43:08.204 [http-json-ledger-api-akka.actor.default-dispatcher-9] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "8c77ce53-52b5-4e0c-993a-3f810b54bfec"} 24-03-2022 12:43:08.220 [http-json-ledger-api-akka.actor.default-dispatcher-5] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "8813ad99-79c7-42c4-9719-5bdcfeb5077e"} 24-03-2022 12:43:08.326 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "8813ad99-79c7-42c4-9719-5bdcfeb5077e"} 24-03-2022 12:43:08.340 [http-json-ledger-api-akka.actor.default-dispatcher-18] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "deeca40b-0f05-47c9-927d-f71b0fe08ccb"} 24-03-2022 12:43:08.444 [http-json-ledger-api-akka.actor.default-dispatcher-18] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "deeca40b-0f05-47c9-927d-f71b0fe08ccb"} 24-03-2022 12:43:08.462 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "9be53420-eb4d-4ee3-9915-4a4381c51bea"} 24-03-2022 12:43:08.563 [http-json-ledger-api-akka.actor.default-dispatcher-18] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "9be53420-eb4d-4ee3-9915-4a4381c51bea"} 24-03-2022 12:43:08.576 [http-json-ledger-api-akka.actor.default-dispatcher-18] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "8d64b076-ff2b-4f5b-8653-95e5e949cb34"} 24-03-2022 12:43:08.685 [http-json-ledger-api-akka.actor.default-dispatcher-14] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "8d64b076-ff2b-4f5b-8653-95e5e949cb34"} 24-03-2022 12:43:08.697 [http-json-ledger-api-akka.actor.default-dispatcher-14] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "87246c50-00b7-453e-9771-83f176a3cbfc"} 24-03-2022 12:43:08.802 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "87246c50-00b7-453e-9771-83f176a3cbfc"} 24-03-2022 12:43:08.818 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "65bb8c95-a253-4ac5-a297-1abeff6ce44c"} 24-03-2022 12:43:08.920 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "65bb8c95-a253-4ac5-a297-1abeff6ce44c"} 24-03-2022 12:43:08.930 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/query from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "d45c0c95-1576-480c-b048-f59919a1d139"} 24-03-2022 12:43:10.016 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.PackageService - new package IDs loaded: bfcd37bd6b84768e86e432f5f6c33e25d9e7724a9d42e33875ff74f6348e733f, 518032f41fd0175461b35ae0c9691e08b4aea55e62915f8360af2cc7a1f2ba6c, cc348d369011362a5190fe96dd1f0dfbc697fdfd10e382b9e9666f0da05961b7, f78511c39cc293d5ed72acf5a4a81411af75a435df4106c5e37823af6589040b, 6839a6d3d430c569b2425e9391717b44ca324b88ba621d597778811b2d05031d, 99a2705ed38c1c26cbb8fe7acf36bbf626668e167a33335de932599219e0a235, 76bf0fd12bd945762a01f8fc5bbcdfa4d0ff20f8762af490f8f41d6237c6524f, e22bce619ae24ca3b8e6519281cb5a33b64b3190cc763248b4c3f9ad5087a92c, d58cf9939847921b2aab78eaa7b427dc4c649d25e6bee3c749ace4c3f52f5c97, 6c2c0667393c5f92f1885163068cd31800d2264eb088eb6fc740e11241b2bf06, c1f1f00558799eec139fb4f4c76f95fb52fa1837a5dd29600baa1c8ed1bdccfd, 733e38d36a2759688a4b2c4cec69d48e7b55ecc8dedc8067b815926c917a182a, 057eed1fd48c238491b8ea06b9b5bf85a5d4c9275dd3f6183e0e6b01730cc2ba, 52af8c65ac2c4b3d61637558935d2b0a92369ec4da39978a29f90a5f738f3e14, d14e08374fc7197d6a0de468c968ae8ba3aadbf9315476fd39071831f5923662, e491352788e56ca4603acc411ffe1a49fefd76ed8b163af86cf5ee5f4c38645b, 40f452260bef3f29dede136108fc08a88d5a5250310281067087da6f0baddff7, 8a7806365bbd98d88b4c13832ebfa305f6abaeaf32cfa2b7dd25c4fa489b79fb, bbfcd72618817ef8c99eb663e1f80375835bd51efebdc69b55884ad7afb3a0ef, context: {ledger_id: "create-daml-app-sandbox", cmd: "GetActiveContractsRequest(OneAnd(TemplateId(Some(bbfcd72618817ef8c99eb663e1f80375835bd51efebdc69b55884ad7afb3a0ef),User,User),Set()),Map(),None)", request_id: "d45c0c95-1576-480c-b048-f59919a1d139", instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", application_id: "create-daml-app", read_as: "List()", act_as: "List(party-c276900f)"} 24-03-2022 12:43:10.192 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "d45c0c95-1576-480c-b048-f59919a1d139"} 24-03-2022 12:43:10.420 [http-json-ledger-api-akka.actor.default-dispatcher-12] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/create from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "90767a4d-bf5f-4a9c-a633-9c9bf4374ab1"} 24-03-2022 12:43:10.490 [http-json-ledger-api-akka.actor.default-dispatcher-11] INFO com.daml.http.CommandService - Submitting create command, context: {command_id: "9371a5a2-1ab5-4deb-8cec-ad21c0e620dc", ledger_id: "create-daml-app-sandbox", request_id: "90767a4d-bf5f-4a9c-a633-9c9bf4374ab1", instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", application_id: "create-daml-app", template_id: "TemplateId(bbfcd72618817ef8c99eb663e1f80375835bd51efebdc69b55884ad7afb3a0ef,User,User)", read_as: "List()", act_as: "List(party-c276900f)"} 24-03-2022 12:43:12.870 [http-json-ledger-api-akka.actor.default-dispatcher-17] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "90767a4d-bf5f-4a9c-a633-9c9bf4374ab1"} 24-03-2022 12:43:12.885 [http-json-ledger-api-akka.actor.default-dispatcher-17] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/fetch from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "fd827c73-d3b8-4e42-877a-ce9af707da2a"} 24-03-2022 12:43:12.992 [http-json-ledger-api-akka.actor.default-dispatcher-11] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "fd827c73-d3b8-4e42-877a-ce9af707da2a"} 24-03-2022 12:43:13.004 [http-json-ledger-api-akka.actor.default-dispatcher-11] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/query from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "94adec23-cb1a-464b-9fad-8bf7da06b99f"} 24-03-2022 12:43:13.017 [http-json-ledger-api-akka.actor.default-dispatcher-13] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "94adec23-cb1a-464b-9fad-8bf7da06b99f"} 24-03-2022 12:43:13.074 [http-json-ledger-api-akka.actor.default-dispatcher-7] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "42f7aaf6-f3f7-4138-a4c6-1be224c100bc"} 24-03-2022 12:43:13.121 [http-json-ledger-api-akka.actor.default-dispatcher-17] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "42f7aaf6-f3f7-4138-a4c6-1be224c100bc"} Compiled successfully! You can now view create-daml-app in the browser. Local: http://localhost:3000 On Your Network: http://192.168.1.114:3000 Note that the development build is not optimized. To create a production build, use npm run build. Request with path /v1/fetch proxied from host localhost:3000 to host http://localhost:undefined 24-03-2022 12:43:53.540 [http-json-ledger-api-akka.actor.default-dispatcher-11] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "f1da2b78-e020-40fc-b4cc-e635fc78f8fb"} 24-03-2022 12:43:53.681 [http-json-ledger-api-akka.actor.default-dispatcher-7] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "f1da2b78-e020-40fc-b4cc-e635fc78f8fb"} 24-03-2022 12:43:53.690 [http-json-ledger-api-akka.actor.default-dispatcher-7] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "42e89b95-f5b7-4c39-bcd8-4264e86a924d"} 24-03-2022 12:43:53.802 [http-json-ledger-api-akka.actor.default-dispatcher-13] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "42e89b95-f5b7-4c39-bcd8-4264e86a924d"} 24-03-2022 12:43:53.814 [http-json-ledger-api-akka.actor.default-dispatcher-13] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "fd54814b-fc1f-479b-b65a-1b3bc59392b8"} 24-03-2022 12:43:53.923 [http-json-ledger-api-akka.actor.default-dispatcher-6] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "fd54814b-fc1f-479b-b65a-1b3bc59392b8"} Request with path /v1/fetch proxied from host localhost:3000 to host http://localhost:undefined 24-03-2022 12:44:24.809 [http-json-ledger-api-akka.actor.default-dispatcher-17] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "cde08b6a-68c1-4f7d-9d20-f5bde5c478aa"} 24-03-2022 12:44:24.880 [http-json-ledger-api-akka.actor.default-dispatcher-9] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "cde08b6a-68c1-4f7d-9d20-f5bde5c478aa"} Request with path /v1/fetch proxied from host localhost:3000 to host http://localhost:undefined 24-03-2022 12:44:55.691 [http-json-ledger-api-akka.actor.default-dispatcher-8] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "8dfa15a7-044d-41f7-9597-37662c2ff5ff"} 24-03-2022 12:44:55.818 [http-json-ledger-api-akka.actor.default-dispatcher-6] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "8dfa15a7-044d-41f7-9597-37662c2ff5ff"} 24-03-2022 12:44:55.828 [http-json-ledger-api-akka.actor.default-dispatcher-6] INFO com.daml.http.Endpoints - Incoming POST request on http://localhost:7575/v1/parties/allocate from unknown, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "fe3af4d3-7e89-41a5-bfb3-ec639967a0f8"} 24-03-2022 12:44:55.938 [http-json-ledger-api-akka.actor.default-dispatcher-8] INFO com.daml.http.Endpoints - Responding to client with HTTP 200 OK, context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0", request_id: "fe3af4d3-7e89-41a5-bfb3-ec639967a0f8"} Request with path /v1/fetch proxied from host localhost:3000 to host http://localhost:undefined FAIL src/index.test.ts (154.562s) ● Console console.debug daml-types/index.js:98 Registered template bbfcd72618817ef8c99eb663e1f80375835bd51efebdc69b55884ad7afb3a0ef:User:Message. console.debug daml-types/index.js:98 Registered template bbfcd72618817ef8c99eb663e1f80375835bd51efebdc69b55884ad7afb3a0ef:User:User. ● log in as a new user, log out and log back in TimeoutError: waiting for selector ".test-select-main-menu" failed: timeout 30000ms exceeded 277 | await usernameInput.type(partyName); 278 | await page.click(".test-select-login-button"); > 279 | await page.waitForSelector(".test-select-main-menu"); | ^ 280 | }; 281 | // LOGIN_FUNCTION_END 282 | at new WaitTask (node_modules/puppeteer/lib/DOMWorld.js:407:34) at DOMWorld._waitForSelectorOrXPath (node_modules/puppeteer/lib/DOMWorld.js:332:26) at DOMWorld.waitForSelector (node_modules/puppeteer/lib/DOMWorld.js:315:21) at Frame.waitForSelector (node_modules/puppeteer/lib/FrameManager.js:384:51) at Frame.<anonymous> (node_modules/puppeteer/lib/helper.js:117:27) at Page.waitForSelector (node_modules/puppeteer/lib/Page.js:867:33) at login (src/index.test.ts:279:14) at Object.<anonymous> (src/index.test.ts:313:3) ● log in as three different users and start following each other TimeoutError: waiting for selector ".test-select-main-menu" failed: timeout 30000ms exceeded 277 | await usernameInput.type(partyName); 278 | await page.click(".test-select-login-button"); > 279 | await page.waitForSelector(".test-select-main-menu"); | ^ 280 | }; 281 | // LOGIN_FUNCTION_END 282 | at new WaitTask (node_modules/puppeteer/lib/DOMWorld.js:407:34) at DOMWorld._waitForSelectorOrXPath (node_modules/puppeteer/lib/DOMWorld.js:332:26) at DOMWorld.waitForSelector (node_modules/puppeteer/lib/DOMWorld.js:315:21) at Frame.waitForSelector (node_modules/puppeteer/lib/FrameManager.js:384:51) at Frame.<anonymous> (node_modules/puppeteer/lib/helper.js:117:27) at Page.waitForSelector (node_modules/puppeteer/lib/Page.js:867:33) at login (src/index.test.ts:279:14) at Object.<anonymous> (src/index.test.ts:349:3) ● error when following self TimeoutError: waiting for selector ".test-select-main-menu" failed: timeout 30000ms exceeded 277 | await usernameInput.type(partyName); 278 | await page.click(".test-select-login-button"); > 279 | await page.waitForSelector(".test-select-main-menu"); | ^ 280 | }; 281 | // LOGIN_FUNCTION_END 282 | at new WaitTask (node_modules/puppeteer/lib/DOMWorld.js:407:34) at DOMWorld._waitForSelectorOrXPath (node_modules/puppeteer/lib/DOMWorld.js:332:26) at DOMWorld.waitForSelector (node_modules/puppeteer/lib/DOMWorld.js:315:21) at Frame.waitForSelector (node_modules/puppeteer/lib/FrameManager.js:384:51) at Frame.<anonymous> (node_modules/puppeteer/lib/helper.js:117:27) at Page.waitForSelector (node_modules/puppeteer/lib/Page.js:867:33) at login (src/index.test.ts:279:14) at Object.<anonymous> (src/index.test.ts:455:3) ● error when adding a user that you are already following TimeoutError: waiting for selector ".test-select-main-menu" failed: timeout 30000ms exceeded 277 | await usernameInput.type(partyName); 278 | await page.click(".test-select-login-button"); > 279 | await page.waitForSelector(".test-select-main-menu"); | ^ 280 | }; 281 | // LOGIN_FUNCTION_END 282 | at new WaitTask (node_modules/puppeteer/lib/DOMWorld.js:407:34) at DOMWorld._waitForSelectorOrXPath (node_modules/puppeteer/lib/DOMWorld.js:332:26) at DOMWorld.waitForSelector (node_modules/puppeteer/lib/DOMWorld.js:315:21) at Frame.waitForSelector (node_modules/puppeteer/lib/FrameManager.js:384:51) at Frame.<anonymous> (node_modules/puppeteer/lib/helper.js:117:27) at Page.waitForSelector (node_modules/puppeteer/lib/Page.js:867:33) at login (src/index.test.ts:279:14) at Object.<anonymous> (src/index.test.ts:471:3) Test Suites: 1 failed, 1 passed, 2 total Tests: 4 failed, 3 passed, 7 total Snapshots: 0 total Time: 155.201s Ran all test suites. 12:45:26.673 [program-resource-pool-6] INFO c.d.g.a.server.akka.ServerAdapter - SERVER_IS_SHUTTING_DOWN(1,0): Server is shutting down, context: {err-context: "{location=ServerAdapter.scala:59}"} 12:45:26.675 [program-resource-pool-6] INFO c.d.g.a.server.akka.ServerAdapter - SERVER_IS_SHUTTING_DOWN(1,0): Server is shutting down, context: {err-context: "{location=ServerAdapter.scala:59}"} 12:45:26.676 [program-resource-pool-6] INFO c.d.g.a.server.akka.ServerAdapter - SERVER_IS_SHUTTING_DOWN(1,0): Server is shutting down, context: {err-context: "{location=ServerAdapter.scala:59}"} 12:45:26.677 [program-resource-pool-6] INFO c.d.g.a.server.akka.ServerAdapter - SERVER_IS_SHUTTING_DOWN(1,0): Server is shutting down, context: {err-context: "{location=ServerAdapter.scala:59}"} [WARN] [03/24/2022 12:45:26.723] [program-resource-pool-6] [CoordinatedShutdown(akka://sandbox-on-x)] Could not addJvmShutdownHook, due to: Shutdown in progress [INFO] [03/24/2022 12:45:26.724] [program-resource-pool-6] [CoordinatedShutdown(akka://sandbox-on-x)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 24-03-2022 12:45:26.630 [shutdownHook1] INFO com.daml.http.HttpService - Stopping server..., context: {instance_uuid: "1ff5d996-9493-4dea-a9a8-5dc5725c33c0"} 12:45:26.648 [program-resource-pool-6] INFO c.d.g.a.server.akka.ServerAdapter - SERVER_IS_SHUTTING_DOWN(1,0): Server is shutting down, context: {err-context: "{location=ServerAdapter.scala:59}"} FAIL (278.22s) Create app from template (0.04s) Patch the application code with messaging feature Extract codegen output (0.04s) Set up libraries and workspaces Install Jest, Puppeteer and other dependencies (120.36s) Run Puppeteer end-to-end tests (157.77s) callProcess: /home/aj/.cache/bazel/_bazel_aj/c437a451a7a277d35b539da616255ac8/sandbox/linux-sandbox/2357/execroot/compatibility/bazel-out/k8-opt/bin/create-daml-app-1.9.0-platform-0.0.0.runfiles/compatibility/external/node_nix/node_nix/lib/node_modules/npm/bin/npm-cli.js "run" "test" "--ci" "--all" "--scripts-prepend-node-path" (exit 1): failed 1 out of 1 tests failed (278.22s) ================================================================================ ``` * Revert "Skip create-daml-app compat tests pre 2.0.0" This reverts commit 762e61941f164e5deb10fc752f391b69003377cf. * Revert "Expose node in PATH in create-daml-app test" This reverts commit 8541b39d0f1b36c63366b90f97a69f7d950c92c5. * Revert "Update Node version in compatibility" This reverts commit 389639402d19c3ffa714e22bc61e042f82070b74. * Keep using NodeJS 14 for the compatibility tests NodeJS 16 is needed for M1 compatibility, but it breaks the compatibility tests. So, for now, we stick to the older version for the compatibility tests. Co-authored-by: Andreas Herrmann <andreas.herrmann@tweag.io>
2022-04-07 18:50:53 +03:00
node_version = "16.13.0",
package_json = ["//:package.json"],
vendored_node = "@nodejs_dev_env" if is_windows else "@node_nix",
2019-04-04 11:33:38 +03:00
)
yarn_install(
name = "npm",
args = ["--frozen-lockfile"],
2019-04-04 11:33:38 +03:00
package_json = "//:package.json",
symlink_node_modules = False,
2019-04-04 11:33:38 +03:00
yarn_lock = "//:yarn.lock",
)
# TODO use fine-grained managed dependency
yarn_install(
name = "daml_extension_deps",
args = ["--frozen-lockfile"],
package_json = "//compiler/daml-extension:package.json",
symlink_node_modules = False,
yarn_lock = "//compiler/daml-extension:yarn.lock",
2019-04-04 11:33:38 +03:00
)
# TODO use fine-grained managed dependency
yarn_install(
name = "navigator_frontend_deps",
args = ["--frozen-lockfile"],
package_json = "//navigator/frontend:package.json",
symlink_node_modules = False,
yarn_lock = "//navigator/frontend:yarn.lock",
2019-04-04 11:33:38 +03:00
)
# Weve had a bunch of problems with typescript rules on Windows.
# Therefore weve disabled them completely for now.
# Since we need to @load stuff in @language_support_ts_deps
# and load statements cant be conditional, we create a dummy
# workspace on Windows.
# See #4162 for more details.
yarn_install(
name = "language_support_ts_deps",
args = ["--frozen-lockfile"],
package_json = "//language-support/ts/packages:package.json",
symlink_node_modules = False,
yarn_lock = "//language-support/ts/packages:yarn.lock",
) if not is_windows else create_workspace(
name = "language_support_ts_deps",
files = {
"eslint/BUILD.bazel": 'exports_files(["index.bzl"])',
"eslint/index.bzl": "def eslint_test(*args, **kwargs):\n pass",
"jest-cli/BUILD.bazel": 'exports_files(["index.bzl"])',
"jest-cli/index.bzl": "def jest_test(*args, **kwargs):\n pass",
"@bazel/typescript/BUILD.bazel": 'exports_files(["index.bzl"])',
"@bazel/typescript/index.bzl": "def ts_project(*args, **kwargs):\n pass",
},
)
2019-04-04 11:33:38 +03:00
# We usually use the _deploy_jar target to produce self-contained jars, but here we're using jar_jar because the size
# of codegen tool is substantially reduced (as shown below) and that the presence of JVM internal com.sun classes could
# theoretically stop the codegen running against JVMs other the OpenJDK 8 (the current JVM used for building).
load("@com_github_johnynek_bazel_jar_jar//:jar_jar.bzl", "jar_jar_repositories")
2019-04-04 11:33:38 +03:00
jar_jar_repositories()
# The following is advertised by rules_proto, but we define our own dependencies
# in dependencies.yaml. So all we need to do is replicate the binds here
# https://github.com/stackb/rules_proto/tree/master/java#java_grpc_library
# load("@io_grpc_grpc_java//:repositories.bzl", "grpc_java_repositories")
# grpc_java_repositories()
# Load the grpc deps last, since it won't try to load already loaded
# dependencies.
load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps")
2019-04-04 11:33:38 +03:00
grpc_deps()
2019-08-26 17:00:41 +03:00
load("@upb//bazel:workspace_deps.bzl", "upb_deps")
upb_deps()
load("@build_bazel_rules_apple//apple:repositories.bzl", "apple_rules_dependencies")
apple_rules_dependencies()
load("@com_github_bazelbuild_buildtools//buildifier:deps.bzl", "buildifier_dependencies")
buildifier_dependencies()
nixpkgs_package(
name = "postgresql_nix",
attribute_path = "postgresql_10",
fail_not_supported = False,
nix_file = "//nix:bazel.nix",
nix_file_deps = common_nix_file_deps,
repositories = dev_env_nix_repos,
)
dev_env_tool(
name = "postgresql_dev_env",
nix_include = [
"bin",
"include",
"lib",
"share",
],
nix_label = "@postgresql_nix",
nix_paths = [
"bin/createdb",
"bin/dropdb",
"bin/initdb",
"bin/pg_ctl",
"bin/postgres",
],
required_tools = {
"initdb": ["postgres"],
"pg_ctl": ["postgres"],
},
tools = [
"createdb",
"dropdb",
"initdb",
"pg_ctl",
"postgres",
],
win_include = [
"mingw64/bin",
"mingw64/include",
"mingw64/lib",
"mingw64/share",
],
win_include_as = {
"mingw64/bin": "bin",
"mingw64/include": "include",
"mingw64/lib": "lib",
"mingw64/share": "share",
},
win_paths = [
"bin/createdb.exe",
"bin/dropdb.exe",
"bin/initdb.exe",
"bin/pg_ctl.exe",
"bin/postgres.exe",
],
win_tool = "msys2",
)
nixpkgs_package(
name = "buf",
attribute_path = "buf",
fail_not_supported = False,
nix_file = "//nix:bazel.nix",
nix_file_deps = common_nix_file_deps,
repositories = dev_env_nix_repos,
)
nixpkgs_package(
name = "script_nix",
attribute_path = "script",
nix_file = "//nix:bazel.nix",
nix_file_deps = common_nix_file_deps,
repositories = dev_env_nix_repos,
) if not is_windows else None