Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Disruptive extra "downloading compiler" messages in the middle of migration & test output #6051

Open
haltman-at opened this issue May 17, 2023 · 1 comment

Comments

@haltman-at
Copy link
Contributor

Issue

When I do a migration, I get a whole lot of disruptive extra "downloading compiler" spinners and messages. It's pretty annoying. Example below. (It's using the 084-tests project in the solidity-test-cases repo, but really I could have used anything.)

Actual Results

Compiling your contracts...
===========================
> Everything is up to date, there is nothing to compile.
⠴ Fetching solc version list from solc-bin. Attempt #1
⠦ Fetching solc version list from solc-bin. Attempt #1
Starting migrations.... Attempt #1.
======================
> Network name:    'development'
> Network id:      1684357485610
> Block gas limit: 30000000 (0x1c9c380)


1_initial_migration.js
======================
⠋ Fetching solc version list from solc-bin. Attempt #1
   Deploying 'Migrations'ttempt #1.
   ----------------------
   > transaction hash:    0x77b14aeaa922808dc49ec2eca7fae4f9cdf29e2f7c69816538cea4ec1ea290fd
   > Blocks: 0            Seconds: 0lc-bin. Attempt #1
   > contract address:    0x246e99aCAD460e28960F4E1273ec4f7934aFcA7A
   > block number:        1econds: 0
   > block timestamp:     1684357506
   > account:             0xA7034E8Aac5b564105DB92bB3b0eba7FB2776EFb
   > balance:             999.999082837
   > gas used:            271752 (0x42588)
   > gas price:           3.375 gwei
   > value sent:          0 ETH
   > total cost:          0.000917163 ETH

   > Saving migration to chain.om solc-bin. Attempt #1
   > Saving artifactsr. Attempt #1.
   -------------------------------------
   > Total cost:         0.000917163 ETH


2_deploy_contracts.js
=====================
⠹ Fetching solc version list from solc-bin. Attempt #1
   Deploying 'AuxLib'r. Attempt #1.
   ------------------
   > transaction hash:    0xd56e0b4d038eef02e94237f1efb4c1aedbf3dc6222c018b2f7f2cc0f93c7918a
   > Blocks: 0            Seconds: 0
   > contract address:    0xd84Ed6F66EA69eb1766705A0c65BbB2Ff3dfBC90
   > block number:        3
   > block timestamp:     1684357506
   > account:             0xA7034E8Aac5b564105DB92bB3b0eba7FB2776EFb
   > balance:             999.99860993624427762
   > gas used:            101765 (0x18d85)
   > gas price:           3.171949562 gwei
   > value sent:          0 ETH
   > total cost:          0.00032279344717693 ETH


   Linking
   -------
   * Contract: RevertTest <--> Library: AuxLib (at address: 0xd84Ed6F66EA69eb1766705A0c65BbB2Ff3dfBC90)
⠧ Fetching solc version list from solc-bin. Attempt #1
   Deploying 'RevertTest'ttempt #1.
   ----------------------
   > transaction hash:    0x62e2ba8dbf8800a57a565c4c148bae566e09e8b6e7ff738c0212aae82f275378
   > Blocks: 0            Seconds: 0
   > contract address:    0x0af7CcE0c53B8F2EF8F48dFb79254E8cFb36A6CA
   > block number:        4
   > block timestamp:     1684357507
   > account:             0xA7034E8Aac5b564105DB92bB3b0eba7FB2776EFb
   > balance:             999.997050968919381832
   > gas used:            504761 (0x7b3b9)
   > gas price:           3.088525708 gwei
   > value sent:          0 ETH
   > total cost:          0.001558967324895788 ETH

   > Saving migration to chain.om solc-bin. Attempt #1
   > Saving artifactsr. Attempt #1.
   -------------------------------------
   > Total cost:     0.001881760772072718 ETH

Summary
=======
> Total deployments:   3
> Final cost:          0.002798923772072718 ETH

Environment

  • Truffle version (truffle version): 5.9.0
@haltman-at haltman-at changed the title Disruptive extra "downloading compiler" messages in the middle of migration output Disruptive extra "downloading compiler" messages in the middle of migration & test output May 25, 2023
@haltman-at
Copy link
Contributor Author

The problem can also occur in truffle test.

Note that if you migrate twice in a row (with --compile-all --reset), you won't get the problem. But you will if you change to a different solc version.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants