Weijie
July 25, 2022, 9:12am
1
Dear there,
These days I was trying to launch Julia from a script (in my customized path) that defines the JULIA_DEPOT_PATH and Executable_Path in Vscode. However, it seems that the julia_extension is not able to find the settings in the script after click (ctrl+shift+P) to run “Julia: Start REPL”.
Nothing happens after this action:
Would be very grateful if there is any clue to address my confusion…
-Weijie
It would be helpful if you could provide more information. What does your script look like? How are you telling VSCode to use that script?
2 Likes
Weijie
July 25, 2022, 1:17pm
3
Thanks for the response!
So the script is called launch_julia_v171 in Path /home/wj/julia/, with contents:
export JULIA_DEPOT_PATH=/home/wj/julia/julia_depots
/home/wj/juliahome/julia-1.7.1/bin/julia
Then in VScode Julia extensions, the setting is:
{
"julia.environmentPath": "/home/wj/julia/julia_depots/environments/",
"julia.persistentSession.enabled": true,
"julia.executablePath": "/home/wj/julia/launch_julia_v171"
}
The executablePath works on the terminal, but unfortunately it does not work in VScode.
Thanks,
Weijie
Try
export JULIA_DEPOT_PATH=/home/wj/julia/julia_depots
/home/wj/juliahome/julia-1.7.1/bin/julia "$@"
instead. It’s important you pipe all arguments through to Julia (check that ./launch_julia_v171 -v
works, for example).
1 Like
Weijie
July 25, 2022, 1:51pm
5
Hi there,
Super cool it works after adding “$@”, although I do not get the underlying logic…
Thanks a million!
-Weijie
"$@"
expands to the parameters that your script is called with. These needs to be passed on to the actual/real Julia executable.
1 Like