Open realkrantz opened 2 years ago
I found a working solution at: https://discourse.julialang.org/t/how-to-set-julia-project-for-juliacall/60408.
However, when I try (after calling Julia with JuliaCall):
julia> using Turing
I get (whereas, in vscode it works without error):
Error happens in Julia.
Failed to precompile Turing [fce5fe82-541a-59a6-adf8-730c64b5f9a0] to C:\Users\x\.julia\compiled\v1.7\Turing\jl_7982.tmp.
Stacktrace:
[1] error(s::String)
@ Base .\error.jl:33
[2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, ignore_loaded_modules::Bool)
@ Base .\loading.jl:1466
[3] compilecache(pkg::Base.PkgId, path::String)
@ Base .\loading.jl:1410
[4] _require(pkg::Base.PkgId)
@ Base .\loading.jl:1120
[5] require(uuidkey::Base.PkgId)
@ Base .\loading.jl:1013
[6] require(into::Module, mod::Symbol)
@ Base .\loading.jl:997
[7] eval
@ .\boot.jl:373 [inlined]
[8] eval_string(x::String)
@ Main.JuliaCall C:\Users\x\Documents\R\win-library\4.1\JuliaCall\julia\setup.jl:203
[9] docall(call1::Ptr{Nothing})
@ Main.JuliaCall C:\Users\x\Documents\R\win-library\4.1\JuliaCall\julia\setup.jl:176
Any help would be much appreciated.
Using Julia REPL in vscode I can activate a project by typing:
]activate project
How can I do that using JuliaCall's
julia_console
?Thanks for any help.