1

truffle compile --list not showing version "0.8.0" and above. truffle compile --list returns :

✖ Fetching solc version list from solc-bin. Attempt #1

✖ Fetching solc version list from solc-bin. Attempt #2

✓ Fetching solc version list from solc-bin. Attempt #3

[ "0.7.1", "0.7.0", "0.6.12", "0.6.11", "0.6.10", "0.6.9", "0.6.8", "0.6.7", "0.6.5" ]

My versions are :

Truffle v5.5.7 (core: 5.5.7)

Ganache v^7.0.3

Solidity - 0.8.4 (solc-js)

Node v16.13.0

Web3.js v1.5.3

2 Answers 2

1

That depends on how Truffle scans for Solidity Compilers version list.

Looking at the source code, Truffle currently uses three repositories to check compiler releases:

The first one is the only one containing updated releases; the others are deprecated.

For some reason (it happens more often than it should), the first repo was not reachable, so Truffle tried the second one (again, not reachable) and then the third one. The third one worked, but both the fallbacks repo are deprecated (see here), so only the first attempt can return updated values.

To fix this better, I just proposed a PR to use the latest suggested solc-bin repo, which is https://binaries.soliditylang.org/bin/list.json.

3
  • Thanks a lot , it is working fine for me now. Able to fetch all latest versions. Apr 11, 2022 at 6:45
  • Do we have a discord channel or community discussion platform ? @Giuseppe Bertone Apr 11, 2022 at 6:53
  • 1
    You can use the channels dedicated to Truffle in the ConsenSys Discord (discord.gg/hYpHRjK) or the dedicated Gitter (gitter.im/ConsenSys/truffle) Apr 11, 2022 at 10:06
1
+50

I've updated our relayer to point to the latest canonical URL (https://binaries.soliditylang.org/), so this should be fixed for everyone today.

1
  • Thanks a lot , it is working fine for me now. Able to fetch all latest versions. Apr 11, 2022 at 6:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.