Skip to content

hardhat compile randomly and quietly stops before compiling contracts #3877

Closed
@sebastiendan

Description

Edit by @fvictorio: Hardhat 2.16.1 should this problem.


Version of Hardhat

2.14.0

What happened?

npx hardhat compile sometimes goes on with compiling contracts and sometimes (seems totally random) silently stops at the Downloading compiler ... step before any contracts are actually compiled. This issue is reproducible with no contracts already compiled and in docker.

Minimal reproduction steps

Here's a simple repository where you can observe the problem: repo.

This CI workflow run shows in the logs that the compilation didn't happen: log.

In addition, one can run the docker container in interactive mode and manually run the build command to see that, again, the command sometimes doesn't build nor throws an error but simply quietly stops without compiling (same output as the CI log above):

  • Run the container in interactive mode: docker run --rm -it ghcr.io/sebastiendan/hardhat-compile-issue:main bash
  • Run the compile command: npm run build
  • Observe sometimes an actual compilation, sometimes a quiet stop in the command execution
    (run the above multiple times by exiting the container and re-running the two commands above)

Search terms

no compilation

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

status:blockedBlocked by other issues or external reasonstype:bugSomething isn't working

Type

No type

Projects

  • Status

    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions