Using Plots and PhysicalConstants together results in an error message:
using Plots
using PhysicalConstants
┌ Error: Error during package callback
│ exception =
│ 2-element ExceptionStack:
│ invalid redefinition of constant MissingOrQuantity
│ Stacktrace:
│ [1] top-level scope
│ @ C:\Users\wester\.julia\packages\Plots\esM5q\ext\UnitfulExt.jl:10
│ Revise evaluation error at C:\Users\wester\.julia\packages\Plots\esM5q\ext\UnitfulExt.jl:10
│
│ Stacktrace:
│ [1] methods_by_execution!(recurse::Any, methodinfo::Revise.CodeTrackingMethodInfo, docexprs::Dict{Module, Vector{Expr}}, mod::Module, ex::Expr; mode::Symbol, disablebp::Bool, always_rethrow::Bool, kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
│ @ Revise C:\Users\wester\.julia\packages\Revise\P8ITN\src\lowered.jl:199
│ [2] #eval_with_signatures#91
│ @ C:\Users\wester\.julia\packages\Revise\P8ITN\src\packagedef.jl:467 [inlined]
│ [3] instantiate_sigs!(modexsigs::OrderedCollections.OrderedDict{Module, OrderedCollections.OrderedDict{Revise.RelocatableExpr, Union{Nothing, Vector{Any}}}}; mode::Symbol, kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
│ @ Revise C:\Users\wester\.julia\packages\Revise\P8ITN\src\packagedef.jl:475
│ [4] #invokelatest#2
│ @ .\essentials.jl:731 [inlined]
│ [5] maybe_add_includes_to_pkgdata!(pkgdata::Revise.PkgData, file::String, includes::Vector{Pair{Module, String}}; eval_now::Bool)
│ @ Revise C:\Users\wester\.julia\packages\Revise\P8ITN\src\pkgs.jl:170
│ [6] eval_require_now(pkgdata::Revise.PkgData, fileidx::Int64, filekey::String, sourcefile::String, modcaller::Module, expr::Expr)
│ @ Revise C:\Users\wester\.julia\packages\Revise\P8ITN\src\pkgs.jl:284
│ [7] #invokelatest#2
│ @ .\essentials.jl:729 [inlined]
│ [8] invokelatest
│ @ .\essentials.jl:726 [inlined]
│ [9] add_require(sourcefile::String, modcaller::Module, idmod::String, modname::String, expr::Expr)
│ @ Revise C:\Users\wester\.julia\packages\Revise\P8ITN\src\pkgs.jl:229
│ [10] withnotifications(::Any, ::Vararg{Any})
│ @ Requires C:\Users\wester\.julia\packages\Requires\Z8rfN\src\require.jl:70
│ [11] (::Plots.var"#503#521")()
│ @ Plots C:\Users\wester\.julia\packages\Requires\Z8rfN\src\require.jl:106
│ [12] #invokelatest#2
│ @ .\essentials.jl:729 [inlined]
│ [13] invokelatest
│ @ .\essentials.jl:726 [inlined]
│ [14] foreach(f::typeof(Base.invokelatest), itr::Vector{Function})
│ @ Base .\abstractarray.jl:2774
│ [15] loadpkg(pkg::Base.PkgId)
│ @ Requires C:\Users\wester\.julia\packages\Requires\Z8rfN\src\require.jl:27
│ [16] #invokelatest#2
│ @ .\essentials.jl:729 [inlined]
│ [17] invokelatest
│ @ .\essentials.jl:726 [inlined]
│ [18] run_package_callbacks(modkey::Base.PkgId)
│ @ Base .\loading.jl:869
│ [19] _tryrequire_from_serialized(modkey::Base.PkgId, path::String, sourcepath::String, depmods::Vector{Any})
│ @ Base .\loading.jl:944
│ [20] _require_search_from_serialized(pkg::Base.PkgId, sourcepath::String, build_id::UInt64)
│ @ Base .\loading.jl:1028
│ [21] _require(pkg::Base.PkgId)
│ @ Base .\loading.jl:1315
│ [22] _require_prelocked(uuidkey::Base.PkgId)
│ @ Base .\loading.jl:1200
│ [23] macro expansion
│ @ .\loading.jl:1180 [inlined]
│ [24] macro expansion
│ @ .\lock.jl:223 [inlined]
│ [25] require(into::Module, mod::Symbol)
│ @ Base .\loading.jl:1144
│ [26] eval
│ @ .\boot.jl:368 [inlined]
│ [27] include_string(mapexpr::typeof(REPL.softscope), mod::Module, code::String, filename::String)
│ @ Base .\loading.jl:1428
│ [28] invokelatest(::Any, ::Any, ::Vararg{Any}; kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
│ @ Base .\essentials.jl:729
│ [29] invokelatest(::Any, ::Any, ::Vararg{Any})
│ @ Base .\essentials.jl:726
│ [30] inlineeval(m::Module, code::String, code_line::Int64, code_column::Int64, file::String; softscope::Bool)
│ @ VSCodeServer c:\Users\wester\.vscode\extensions\julialang.language-julia-1.47.2\scripts\packages\VSCodeServer\src\eval.jl:233
│ [31] (::VSCodeServer.var"#66#70"{Bool, Bool, Bool, Module, String, Int64, Int64, String, VSCodeServer.ReplRunCodeRequestParams})()
│ @ VSCodeServer c:\Users\wester\.vscode\extensions\julialang.language-julia-1.47.2\scripts\packages\VSCodeServer\src\eval.jl:157
│ [32] withpath(f::VSCodeServer.var"#66#70"{Bool, Bool, Bool, Module, String, Int64, Int64, String, VSCodeServer.ReplRunCodeRequestParams}, path::String)
│ @ VSCodeServer c:\Users\wester\.vscode\extensions\julialang.language-julia-1.47.2\scripts\packages\VSCodeServer\src\repl.jl:249
│ [33] (::VSCodeServer.var"#65#69"{Bool, Bool, Bool, Module, String, Int64, Int64, String, VSCodeServer.ReplRunCodeRequestParams})()
│ @ VSCodeServer c:\Users\wester\.vscode\extensions\julialang.language-julia-1.47.2\scripts\packages\VSCodeServer\src\eval.jl:155
│ [34] hideprompt(f::VSCodeServer.var"#65#69"{Bool, Bool, Bool, Module, String, Int64, Int64, String, VSCodeServer.ReplRunCodeRequestParams})
│ @ VSCodeServer c:\Users\wester\.vscode\extensions\julialang.language-julia-1.47.2\scripts\packages\VSCodeServer\src\repl.jl:38
│ [35] (::VSCodeServer.var"#64#68"{Bool, Bool, Bool, Module, String, Int64, Int64, String, VSCodeServer.ReplRunCodeRequestParams})()
│ @ VSCodeServer c:\Users\wester\.vscode\extensions\julialang.language-julia-1.47.2\scripts\packages\VSCodeServer\src\eval.jl:126
│ [36] with_logstate(f::Function, logstate::Any)
│ @ Base.CoreLogging .\logging.jl:511
│ [37] with_logger
│ @ .\logging.jl:623 [inlined]
│ [38] (::VSCodeServer.var"#63#67"{VSCodeServer.ReplRunCodeRequestParams})()
│ @ VSCodeServer c:\Users\wester\.vscode\extensions\julialang.language-julia-1.47.2\scripts\packages\VSCodeServer\src\eval.jl:225
│ [39] #invokelatest#2
│ @ .\essentials.jl:729 [inlined]
│ [40] invokelatest(::Any)
│ @ Base .\essentials.jl:726
│ [41] macro expansion
│ @ c:\Users\wester\.vscode\extensions\julialang.language-julia-1.47.2\scripts\packages\VSCodeServer\src\eval.jl:34 [inlined]
│ [42] (::VSCodeServer.var"#61#62")()
│ @ VSCodeServer .\task.jl:484
│
│ caused by: invalid redefinition of constant MissingOrQuantity
│ Stacktrace:
│ [1] top-level scope
│ @ C:\Users\wester\.julia\packages\Plots\esM5q\ext\UnitfulExt.jl:10
│ [2] eval
│ @ .\boot.jl:368 [inlined]
│ [3] methods_by_execution!(recurse::Any, methodinfo::Revise.CodeTrackingMethodInfo, docexprs::Dict{Module, Vector{Expr}}, mod::Module, ex::Expr; mode::Symbol, disablebp::Bool, always_rethrow::Bool, kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
│ @ Revise C:\Users\wester\.julia\packages\Revise\P8ITN\src\lowered.jl:194
│ [4] #eval_with_signatures#91
│ @ C:\Users\wester\.julia\packages\Revise\P8ITN\src\packagedef.jl:467 [inlined]
│ [5] instantiate_sigs!(modexsigs::OrderedCollections.OrderedDict{Module, OrderedCollections.OrderedDict{Revise.RelocatableExpr, Union{Nothing, Vector{Any}}}}; mode::Symbol, kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
│ @ Revise C:\Users\wester\.julia\packages\Revise\P8ITN\src\packagedef.jl:475
│ [6] #invokelatest#2
│ @ .\essentials.jl:731 [inlined]
│ [7] maybe_add_includes_to_pkgdata!(pkgdata::Revise.PkgData, file::String, includes::Vector{Pair{Module, String}}; eval_now::Bool)
│ @ Revise C:\Users\wester\.julia\packages\Revise\P8ITN\src\pkgs.jl:170
│ [8] eval_require_now(pkgdata::Revise.PkgData, fileidx::Int64, filekey::String, sourcefile::String, modcaller::Module, expr::Expr)
│ @ Revise C:\Users\wester\.julia\packages\Revise\P8ITN\src\pkgs.jl:284
│ [9] #invokelatest#2
│ @ .\essentials.jl:729 [inlined]
│ [10] invokelatest
│ @ .\essentials.jl:726 [inlined]
│ [11] add_require(sourcefile::String, modcaller::Module, idmod::String, modname::String, expr::Expr)
│ @ Revise C:\Users\wester\.julia\packages\Revise\P8ITN\src\pkgs.jl:229
│ [12] withnotifications(::Any, ::Vararg{Any})
│ @ Requires C:\Users\wester\.julia\packages\Requires\Z8rfN\src\require.jl:70
│ [13] (::Plots.var"#503#521")()
│ @ Plots C:\Users\wester\.julia\packages\Requires\Z8rfN\src\require.jl:106
│ [14] #invokelatest#2
│ @ .\essentials.jl:729 [inlined]
│ [15] invokelatest
│ @ .\essentials.jl:726 [inlined]
│ [16] foreach(f::typeof(Base.invokelatest), itr::Vector{Function})
│ @ Base .\abstractarray.jl:2774
│ [17] loadpkg(pkg::Base.PkgId)
│ @ Requires C:\Users\wester\.julia\packages\Requires\Z8rfN\src\require.jl:27
│ [18] #invokelatest#2
│ @ .\essentials.jl:729 [inlined]
│ [19] invokelatest
│ @ .\essentials.jl:726 [inlined]
│ [20] run_package_callbacks(modkey::Base.PkgId)
│ @ Base .\loading.jl:869
│ [21] _tryrequire_from_serialized(modkey::Base.PkgId, path::String, sourcepath::String, depmods::Vector{Any})
│ @ Base .\loading.jl:944
│ [22] _require_search_from_serialized(pkg::Base.PkgId, sourcepath::String, build_id::UInt64)
│ @ Base .\loading.jl:1028
│ [23] _require(pkg::Base.PkgId)
│ @ Base .\loading.jl:1315
│ [24] _require_prelocked(uuidkey::Base.PkgId)
│ @ Base .\loading.jl:1200
│ [25] macro expansion
│ @ .\loading.jl:1180 [inlined]
│ [26] macro expansion
│ @ .\lock.jl:223 [inlined]
│ [27] require(into::Module, mod::Symbol)
│ @ Base .\loading.jl:1144
│ [28] eval
│ @ .\boot.jl:368 [inlined]
│ [29] include_string(mapexpr::typeof(REPL.softscope), mod::Module, code::String, filename::String)
│ @ Base .\loading.jl:1428
│ [30] invokelatest(::Any, ::Any, ::Vararg{Any}; kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
│ @ Base .\essentials.jl:729
│ [31] invokelatest(::Any, ::Any, ::Vararg{Any})
│ @ Base .\essentials.jl:726
│ [32] inlineeval(m::Module, code::String, code_line::Int64, code_column::Int64, file::String; softscope::Bool)
│ @ VSCodeServer c:\Users\wester\.vscode\extensions\julialang.language-julia-1.47.2\scripts\packages\VSCodeServer\src\eval.jl:233
│ [33] (::VSCodeServer.var"#66#70"{Bool, Bool, Bool, Module, String, Int64, Int64, String, VSCodeServer.ReplRunCodeRequestParams})()
│ @ VSCodeServer c:\Users\wester\.vscode\extensions\julialang.language-julia-1.47.2\scripts\packages\VSCodeServer\src\eval.jl:157
│ [34] withpath(f::VSCodeServer.var"#66#70"{Bool, Bool, Bool, Module, String, Int64, Int64, String, VSCodeServer.ReplRunCodeRequestParams}, path::String)
│ @ VSCodeServer c:\Users\wester\.vscode\extensions\julialang.language-julia-1.47.2\scripts\packages\VSCodeServer\src\repl.jl:249
│ [35] (::VSCodeServer.var"#65#69"{Bool, Bool, Bool, Module, String, Int64, Int64, String, VSCodeServer.ReplRunCodeRequestParams})()
│ @ VSCodeServer c:\Users\wester\.vscode\extensions\julialang.language-julia-1.47.2\scripts\packages\VSCodeServer\src\eval.jl:155
│ [36] hideprompt(f::VSCodeServer.var"#65#69"{Bool, Bool, Bool, Module, String, Int64, Int64, String, VSCodeServer.ReplRunCodeRequestParams})
│ @ VSCodeServer c:\Users\wester\.vscode\extensions\julialang.language-julia-1.47.2\scripts\packages\VSCodeServer\src\repl.jl:38
│ [37] (::VSCodeServer.var"#64#68"{Bool, Bool, Bool, Module, String, Int64, Int64, String, VSCodeServer.ReplRunCodeRequestParams})()
│ @ VSCodeServer c:\Users\wester\.vscode\extensions\julialang.language-julia-1.47.2\scripts\packages\VSCodeServer\src\eval.jl:126
│ [38] with_logstate(f::Function, logstate::Any)
│ @ Base.CoreLogging .\logging.jl:511
│ [39] with_logger
│ @ .\logging.jl:623 [inlined]
│ [40] (::VSCodeServer.var"#63#67"{VSCodeServer.ReplRunCodeRequestParams})()
│ @ VSCodeServer c:\Users\wester\.vscode\extensions\julialang.language-julia-1.47.2\scripts\packages\VSCodeServer\src\eval.jl:225
│ [41] #invokelatest#2
│ @ .\essentials.jl:729 [inlined]
│ [42] invokelatest(::Any)
│ @ Base .\essentials.jl:726
│ [43] macro expansion
│ @ c:\Users\wester\.vscode\extensions\julialang.language-julia-1.47.2\scripts\packages\VSCodeServer\src\eval.jl:34 [inlined]
│ [44] (::VSCodeServer.var"#61#62")()
│ @ VSCodeServer .\task.jl:484
└ @ Base loading.jl:874
Is there a way to avoid this error?