Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

solc-select versions should indicate that there aren't any versions of solc installed instead of erroring #152

Closed
0xalpharush opened this issue Jan 30, 2023 · 1 comment

Comments

@0xalpharush
Copy link
Contributor

If you run solc-select versions in a fresh venv, it's expected that solc isn't installed. The error message could be more helpful instead of the current behavior:

(slither) alpharush@macbook slither % solc-select versions
Traceback (most recent call last):
  File "/opt/homebrew/bin/solc-select", line 8, in <module>
    sys.exit(solc_select())
             ^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/solc-select/1.0.2/libexec/lib/python3.11/site-packages/solc_select/__main__.py", line 64, in solc_select
    res = current_version()
          ^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/solc-select/1.0.2/libexec/lib/python3.11/site-packages/solc_select/solc_select.py", line 60, in current_version
    raise argparse.ArgumentTypeError(
argparse.ArgumentTypeError: No solc version set. Run `solc-select use VERSION` or set SOLC_VERSION environment variable.
@0xalpharush 0xalpharush changed the title solc-select versions should indicate that there aren't any versions of solc installed instead off erroring solc-select versions should indicate that there aren't any versions of solc installed instead of erroring Jan 30, 2023
@elopez
Copy link
Member

elopez commented Dec 31, 2024

Closing as this got released in v1.0.4

@elopez elopez closed this as completed Dec 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants