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…
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?
Thanks for the response!
So the script is called launch_julia_v171 in Path /home/wj/julia/, with contents:
Then in VScode Julia extensions, the setting is:
The executablePath works on the terminal, but unfortunately it does not work in VScode.
instead. It’s important you pipe all arguments through to Julia (check that
./launch_julia_v171 -v works, for example).
Super cool it works after adding “$@”, although I do not get the underlying logic…
Thanks a million!
"$@" expands to the parameters that your script is called with. These needs to be passed on to the actual/real Julia executable.