question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Clarify solc unavailable message

See original GitHub issue

What was wrong?

The error message is not clear, when solc isn’t available.

Examples:

Proposal: catch and reraise the exception with a note saying something like:

The command line tool solc wasn’t found. Try python -m solc.install v0.4.17 or see http://solidity.readthedocs.io/en/latest/installing-solidity.html

Cute Animal Picture

cute animal

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:1
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
pipermerriamcommented, Dec 14, 2017

Yeah, if solc isn’t on your $PATH you can either add it to your $PATH or set the environment variable SOLC_BINARY to the path to the solc executable.

1reaction
pipermerriamcommented, Dec 14, 2017

I think the right place to catch this is in in solc/wrapper.py#L53 and to use solc.utils.filesystem.is_executable_available to check that solc_binary is present. We can then raise a FileNotFound error with a friendly error message.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Solc --version: command not found - Ethereum Stack Exchange
If you just want to check the version, navigate to the location where solidity is installed and then type in the command solc...
Read more >
Import Path Resolution — Solidity 0.8.17 documentation
When the source is not available in the virtual filesystem, the compiler passes the source unit name to the import callback. The Host...
Read more >
Failed to compile "134_flatten.sol": solc: exit status 1Error
I get the following error when the app tries to compile the sol file. The error is: Failed to compile "134_flatten.sol":solc:exit status 1Error: ......
Read more >
Solidity Documentation - Read the Docs
A transaction is a message that is sent from one account to another account ... Docker images of Solidity builds are available using...
Read more >
Solidity Tutorial : all about Comments | by Jean Cvllr - Medium
7.1) Using Natspec to display custom messages in UI ... The Solidity compiler solc can produces two type of documentation file (in JSON ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found