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

Pluto doesn't start with non-numeric JULIA_NUM_THREADS #1833

Closed
pfitzseb opened this issue Jan 20, 2022 · 1 comment · Fixed by #1814
Closed

Pluto doesn't start with non-numeric JULIA_NUM_THREADS #1833

pfitzseb opened this issue Jan 20, 2022 · 1 comment · Fixed by #1814

Comments

@pfitzseb
Copy link

Julia just ignores the environment variable if it can't be parsed into a number. Pluto crashes:

λ JULIA_NUM_THREADS=NAN j1 -e 'using Pluto; Pluto.run();'
ERROR: ArgumentError: invalid base 10 digit 'N' in "NAN"
Stacktrace:
  [1] tryparse_internal(#unused#::Type{Int64}, s::String, startpos::Int64, endpos::Int64, base_::Int64, raise::Bool)
    @ Base ./parse.jl:137
  [2] parse(::Type{Int64}, s::String; base::Nothing)
    @ Base ./parse.jl:241
  [3] parse
    @ ./parse.jl:241 [inlined]
  [4] default_number_of_threads()
    @ Pluto.Configuration ~/.julia/packages/Pluto/xIB4x/src/Configuration.jl:146
@fonsp
Copy link
Owner

fonsp commented Jan 20, 2022

Fixed in the next release <3

@fonsp fonsp closed this as completed Jan 20, 2022
@fonsp fonsp linked a pull request Jan 21, 2022 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants