Closed gvanuxem closed 5 months ago
I forgot:
julia> versioninfo()
Julia Version 1.11.0-beta1
Commit 08e1fc0abb9 (2024-04-10 08:40 UTC)
Build Info:
Official https://julialang.org/ release
Platform Info:
OS: Linux (x86_64-linux-gnu)
CPU: 8 × 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz
WORD_SIZE: 64
LLVM: libLLVM-16.0.6 (ORCJIT, tigerlake)
Threads: 1 default, 0 interactive, 1 GC (on 8 virtual cores)
That's not specific to embedding, you need to load InteractiveUtils
and/or REPL
first (which is done automatically only in REPL sessions):
% julia +1.10 -e 'Base.Docs.apropos(rand)'
Core.Compiler.adce_pass!
Base.retry
Base.zero
Base.isassigned
Base.elsize
[...]
% julia +1.10 -e 'using InteractiveUtils, REPL; Base.Docs.apropos(rand)'
Core.Compiler.adce_pass!
Base.retry
Base.zero
Base.isassigned
Base.elsize
[...]
% julia +1.11 -e 'Base.Docs.apropos(rand)'
ERROR: MethodError: no method matching apropos(::typeof(rand))
The function `apropos` exists, but no method is defined for this combination of argument types.
Stacktrace:
[1] top-level scope
@ none:1
% julia +1.11 -e 'using InteractiveUtils, REPL; Base.Docs.apropos(rand)'
Core.Compiler.adce_pass!
Base.isassigned
Base.summarysize
Base.accumulate!
Base.@timed
Base.elsize
[...]
A "hello world" will not help you ;)
What does that mean?
For information, I have found a workaround. For apropos
even an import of 'Base.Docs' or using
it does not do the job in 1.11.* for example.
Importing "REPL" fixes this. In fact, my issue was as far as I know only for @docs
and Base.Docs.apropos
.
So, I repeat, it is only for embedded Julia after loading libjulia in an another application. I don't know if this need to be documented, but this issue can be closed for me.
I have found a workaround.
I mean, I gave you a piece of code which works in all versions of Julia in my first message 🙂
I have found a workaround.
I mean, I gave you a piece of code which works in all versions of Julia in my first message 🙂
Rho, exactly, sorry 👍
These two strings can no longer be evaluated whereas it wasn't problematic with Julia-1.10.0:
The piece of C code is as simple as:
I don't think it's an input/output problem since (in FriCAS here):
And all my tests for other purposes work nicely. The errors corresponding to these two evaluated strings:
And these two commands are parsed /evaluated correctly in the Julia REPL. I may be wrong, and maybe there is an incompatible change since the 1.11.0 series, if so, I did not notice it.