eval() does not work with DaemonMode?
I was very happy to discover DaemonMode pkg! One problem I just encounter is that it fails on eval() Is this a user error? Can I somehow make it work? Or is it a bug? See below for simple example:
$ cat test.jl
println("test the daemon!")
v = eval(Meta.parse("pi"))
println("test the daemon! v= ", v)
$ julia -e 'using DaemonMode; runargs()' test.jl
est the daemon!
31mERROR: LoadError: MethodError: no method matching eval(::Symbol)
Stacktrace:
[1] top-level scope at /private/tmp/test.jl:2
$ julia test.jl
test the daemon!
test the daemon! v= π
$
Versions:
julia> versioninfo()
Julia Version 1.5.3
Commit 788b2c77c1 (2020-11-09 13:37 UTC)
Platform Info:
OS: macOS (x86_64-apple-darwin18.7.0)
CPU: Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-9.0.1 (ORCJIT, skylake)
julia>
Thank you. Yes, it is actually a limitation with DaemonMode that I have scheduled to solve, because in several packages (for instance, to use models for MLJ) it is required. I hope to fix in few days.
Dear @rczerminski-valo, I have actually solved the eval problem in a new version 0.1.10. It was a priority for me because loading several models for MLJ was not possible without allowing eval function in DaemonMode. Please, when the new version is available, check it to be sure it is working.
Awesome! I will whenever new version is available.
In the meantime, I have encountered another problem. I am getting:
ERROR: LoadError: REvalError: Error in .julia$cmd(paste0(Rhomeset, "Base.include(Main,\"", system.file("julia/setup.jl", :
when I run using DaemonMode. The same script works fine when executed directly. The script is using R code (RCall Julia pkg and JuliaCall R pkg).