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

Cryptic error message for invalid CONAN_CPU_COUNT values #4371

Closed
3 tasks done
dstftw opened this issue Jan 23, 2019 · 1 comment
Closed
3 tasks done

Cryptic error message for invalid CONAN_CPU_COUNT values #4371

dstftw opened this issue Jan 23, 2019 · 1 comment

Comments

@dstftw
Copy link
Contributor

dstftw commented Jan 23, 2019

  • I've read the CONTRIBUTING guide.
  • I've specified the Conan version, operating system version and any tool that can be relevant.
  • I've explained the steps to reproduce the error or the motivation/use case of the question/suggestion.
> conan --version
Conan version 1.11.2

Currently, when CONAN_CPU_COUNT env variable is set to an invalid non-integer value, a call to conan build for CMake based packages results in quite cryptic error message, e.g. here is an example for CONAN_CPU_COUNT=null:

ERROR: <snip>: Error in build() method, line 84
        cmake = CMake(self)
        ValueError: invalid literal for int() with base 10: 'null'

It may take some time to grasp what's the reason especially on large code bases or when environment is set by some intermediary like Jenkins' pipeline or so.
It would be nice to have a proper validation and more user friendly error message to cut down investigation time to a minimum.

@lasote
Copy link
Contributor

lasote commented Jan 24, 2019

Sure, thanks for open this.

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

No branches or pull requests

3 participants