Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes warnings during REPL startup while using custom SYSIMG's (#185)
* Fixes warnings during REPL startup while using custom SYSIMG's We encounter following warning during Julia REPL startup if we include DistributionsAD in the default SYSIMG, this commit fixes that issue ``` ┌ Warning: Error requiring `ForwardDiff` from `DistributionsAD` │ exception = │ LoadError: SystemError: opening file "/home/bmharsha/.julia/packages/DistributionsAD/pj8zf/src/reversediffx.jl": No such file or directory │ Stacktrace: │ [1] systemerror(p::String, errno::Int32; extrainfo::Nothing) │ @ Base ./error.jl:168 │ [2] #systemerror#62 │ @ ./error.jl:167 [inlined] │ [3] systemerror │ @ ./error.jl:167 [inlined] │ [4] open(fname::String; lock::Bool, read::Nothing, write::Nothing, create::Nothing, truncate::Nothing, append::Nothing) │ @ Base ./iostream.jl:293 │ [5] open │ @ ./iostream.jl:282 [inlined] │ [6] open(f::Base.var"#326#327"{String}, args::String; kwargs::Base.Iterators.Pairs{Union{}, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}) │ @ Base ./io.jl:328 │ [7] open │ @ ./io.jl:328 [inlined] │ [8] read │ @ ./io.jl:434 [inlined] │ [9] _include(mapexpr::Function, mod::Module, _path::String) │ @ Base ./loading.jl:1166 │ [10] include(mod::Module, _path::String) │ @ Base ./Base.jl:386 │ [11] include(x::String) │ @ DistributionsAD.ReverseDiffX ./reversediff.jl:1 │ [12] top-level scope │ @ reversediff.jl:55 │ [13] eval │ @ ./boot.jl:360 [inlined] │ [14] include_string(mapexpr::typeof(identity), mod::Module, code::String, filename::String) │ @ Base ./loading.jl:1116 │ [15] include_string(m::Module, txt::String, fname::String) │ @ Base ./loading.jl:1126 │ [16] macro expansion │ @ ~/.julia/packages/Requires/7Ncym/src/Requires.jl:42 [inlined] │ [17] top-level scope │ @ ~/.julia/packages/DistributionsAD/pj8zf/src/DistributionsAD.jl:74 │ [18] eval │ @ ./boot.jl:360 [inlined] │ [19] eval │ @ ~/.julia/packages/DistributionsAD/pj8zf/src/DistributionsAD.jl:1 [inlined] │ [20] (::DistributionsAD.var"#331#334")() │ @ DistributionsAD ~/.julia/packages/Requires/7Ncym/src/require.jl:99 │ [21] err(f::Any, listener::Module, modname::String) │ @ Requires ~/.julia/packages/Requires/7Ncym/src/require.jl:47 │ [22] (::DistributionsAD.var"#330#333")() │ @ DistributionsAD ~/.julia/packages/Requires/7Ncym/src/require.jl:98 │ [23] withpath(f::Any, path::String) │ @ Requires ~/.julia/packages/Requires/7Ncym/src/require.jl:37 │ [24] (::DistributionsAD.var"#329#332")() │ @ DistributionsAD ~/.julia/packages/Requires/7Ncym/src/require.jl:97 │ [25] listenpkg(f::Any, pkg::Base.PkgId) │ @ Requires ~/.julia/packages/Requires/7Ncym/src/require.jl:20 │ [26] macro expansion │ @ ~/.julia/packages/Requires/7Ncym/src/require.jl:95 [inlined] │ [27] top-level scope │ @ ~/.julia/packages/DistributionsAD/pj8zf/src/DistributionsAD.jl:73 │ [28] eval │ @ ./boot.jl:360 [inlined] │ [29] eval │ @ ~/.julia/packages/DistributionsAD/pj8zf/src/DistributionsAD.jl:1 [inlined] │ [30] (::DistributionsAD.var"#307#320")() │ @ DistributionsAD ~/.julia/packages/Requires/7Ncym/src/require.jl:99 │ [31] err(f::Any, listener::Module, modname::String) │ @ Requires ~/.julia/packages/Requires/7Ncym/src/require.jl:47 │ [32] (::DistributionsAD.var"#306#319")() │ @ DistributionsAD ~/.julia/packages/Requires/7Ncym/src/require.jl:98 │ [33] withpath(f::Any, path::String) │ @ Requires ~/.julia/packages/Requires/7Ncym/src/require.jl:37 │ [34] (::DistributionsAD.var"#305#318")() │ @ DistributionsAD ~/.julia/packages/Requires/7Ncym/src/require.jl:97 │ [35] listenpkg(f::Any, pkg::Base.PkgId) │ @ Requires ~/.julia/packages/Requires/7Ncym/src/require.jl:20 │ [36] macro expansion │ @ ~/.julia/packages/Requires/7Ncym/src/require.jl:95 [inlined] │ [37] macro expansion │ @ ~/.julia/packages/DistributionsAD/pj8zf/src/DistributionsAD.jl:70 [inlined] │ [38] (::DistributionsAD.var"#301#314")() │ @ DistributionsAD ~/.julia/packages/Requires/7Ncym/src/init.jl:11 │ [39] __init__() │ @ DistributionsAD ~/.julia/packages/Requires/7Ncym/src/init.jl:18 │ in expression starting at reversediff.jl:1 └ @ Requires ~/.julia/packages/Requires/7Ncym/src/require.jl:49 _ _ _ _(_)_ | Documentation: https://docs.julialang.org (_) | (_) (_) | _ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help. | | | | | | |/ _` | | | | |_| | | | (_| | | Version 1.6.2 (2021-07-14) _/ |\__'_|_|_|\__'_| | Official https://julialang.org/ release |__/ | �[?2004h �[0Kjulia> �[7C �[7C �[?2004l ``` * Bumps the version number in Project.toml Preparing for a minor release * Reverts the usage of Requires.@include Macro
- Loading branch information
0ee831b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JuliaRegistrator register
0ee831b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Registration pull request created: JuliaRegistries/General/43121
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via: