Closed adrhill closed 1 year ago
It appears that this only happens on Julia 1.9.
Julia 1.8.5 with the same packages runs fine:
julia> versioninfo()
Julia Version 1.8.5
Commit 17cfb8e65ea (2023-01-08 06:45 UTC)
Platform Info:
OS: macOS (x86_64-apple-darwin21.4.0)
CPU: 16 × Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-13.0.1 (ORCJIT, skylake)
Threads: 4 on 8 virtual cores
Environment:
JULIA_NUM_THREADS = 4
julia> using Pluto, Configurations
(test) pkg> status
Status `~/Developer/test/Project.toml`
[5218b696] Configurations v0.17.4
[713c75ef] Franklin v0.10.79
[c3e4b0f8] Pluto v0.19.22
[2fc8631c] PlutoSliderServer v0.3.21
julia> Configurations.from_kwargs(Pluto.Configuration.CompilerOptions)
key = underscore(prefix, name) = :compile
key = underscore(prefix, name) = :pkgimages
key = underscore(prefix, name) = :compiled_modules
key = underscore(prefix, name) = :sysimage
key = underscore(prefix, name) = :sysimage_native_code
key = underscore(prefix, name) = :banner
key = underscore(prefix, name) = :depwarn
key = underscore(prefix, name) = :optimize
key = underscore(prefix, name) = :min_optlevel
key = underscore(prefix, name) = :inline
key = underscore(prefix, name) = :check_bounds
key = underscore(prefix, name) = :math_mode
key = underscore(prefix, name) = :startup_file
key = underscore(prefix, name) = :history_file
key = underscore(prefix, name) = :threads
Pluto.Configuration.CompilerOptions(nothing, nothing, nothing, nothing, nothing, nothing, nothing, nothing, nothing, nothing, nothing, nothing, "no", "no", "4")
It seems to be a regression of 1.9 then?
Yes, I think so.
It's probably better to cross post this issue at Julia repo then, I think I don't have the knowledge of fixing a type inference failure. Thanks!
Fixed in Julia 1.9.0-rc2
I'm currently running into issues with Configurations.jl and Pluto (CC @fonsp).
When using PlutoSliderServer, I get fatal type inference errors:
I was able to narrow this down to Pluto's
CompilerOptions
https://github.com/fonsp/Pluto.jl/blob/f3d8946dd2743e605418d73cead26e6fcd79d11f/src/Configuration.jl#L231-L255
which can be called with default arguments:
However, using
Configurations.from_kwargs
on this option appears to be the source of this error:Dependencies
``` Status `~/Developer/julia-ml-course/Project.toml` [5218b696] Configurations v0.17.4 [713c75ef] Franklin v0.10.79 [c3e4b0f8] Pluto v0.19.22 [2fc8631c] PlutoSliderServer v0.3.21 ```Version Info
``` Julia Version 1.9.0-rc1 Commit 3b2e0d8fbc1 (2023-03-07 07:51 UTC) Platform Info: OS: macOS (x86_64-apple-darwin21.4.0) CPU: 16 × Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz WORD_SIZE: 64 LIBM: libopenlibm LLVM: libLLVM-14.0.6 (ORCJIT, skylake) Threads: 4 on 8 virtual cores Environment: JULIA_NUM_THREADS = 4 ```Filed using BrowserMacros.jl