I have this test file:
include("simc.jl")
using .Simc
push!(Base.DL_LOAD_PATH, pwd())
function f()
println(say42())
end
f()
The library I’m loading is defective, but when I run the whole file with Julia:Execute File
I’m only getting a blank line response in REPL. When I execute just f()
, I get proper error message:
julia> f()
ERROR: could not load library "libsimc.so"
What is the proper workflow or test file structure in order to get all error messages when using Julia:Execute File
?
EDIT
Instead of convoluted example above, this simple file behaves the same way:
function f()
error("some error")
end
f()
producing a blank line when run with Julia:Execute File
. When I run it (err.jl
) with REPL:
julia> include("err.jl")
ERROR: some error
it behaves as expected. Is there a reason for Julia:Execute File
to behave differently than include()
?