Skip to content

Commit

Permalink
commenting out the gui extension loading code since some users are re…
Browse files Browse the repository at this point in the history
…porting pre-compilation errors
  • Loading branch information
robertfeldt committed Feb 4, 2024
1 parent 8e6888b commit e1024a3
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions src/BlackBoxOptim.jl
Original file line number Diff line number Diff line change
Expand Up @@ -157,18 +157,20 @@ include(joinpath("problems", "multi_objective.jl"))
# GUIs and front-ends (to really use it, one needs HTTP to enable BlackBoxOptimRealtimePlotServerExt)
include(joinpath("gui", "realtime_plot.jl"))

@static if !isdefined(Base, :get_extension)
function __init__()
@require Sockets = "6462fe0b-24de-5631-8697-dd941f90decc" begin
@require HTTP = "cd3eb016-35fb-5094-929b-558a96fad6f3" begin
try
include("../ext/BlackBoxOptimRealtimePlotServerExt.jl")
catch err
println("Error during pre-compilation, when loading the gui extension, ", err)
end
end
end
end
end
# Some users are reporting pre-compilation problems when the code below is included
# so for now we exclude it.
#@static if !isdefined(Base, :get_extension)
# function __init__()
# @require Sockets = "6462fe0b-24de-5631-8697-dd941f90decc" begin
# @require HTTP = "cd3eb016-35fb-5094-929b-558a96fad6f3" begin
# try
# include("../ext/BlackBoxOptimRealtimePlotServerExt.jl")
# catch err
# println("Error during pre-compilation, when loading the gui extension, ", err)
# end
# end
# end
# end
#end

end # module BlackBoxOptim

0 comments on commit e1024a3

Please sign in to comment.