I am trying to test Github codespaces with a Julia project. I am using this devcontainer.json: https://github.com/microsoft/vscode-dev-containers/blob/b384de8d7bb7dbf58cedbeb8212d72ed49132581/containers/julia/.devcontainer/devcontainer.json
However Julia is not on the path in the container causing the “postcreatecommand” to fail as well as the extension not loading properly. I have tried to modify the devcontainer using the following command:
“remoteEnv”: { “PATH”: “${remoteEnv:PATH}:/usr/local/julia/bin” }
without any success.
vscode ➜ ~/workspace $ julia
bash: julia: command not found
vscode ➜ ~/workspace $ echo $PATH
/home/vscode/.vscode-remote/bin/5e350b1b79675cecdff224eb00f7bf62ae8789fc/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/vscode/.local/bin:/home/vscode/.local/bin
The strange this is that by observing the log file it seems as the path is set properly at some point:
[2020-12-04 13:04:02.559 Agent.Workspace I] VSCode (0) [STDOUT]: JULIA_PATH=/usr/local/julia
[2020-12-04 13:04:02.559 Agent.Workspace I] VSCode (0) [STDOUT]: PATH=/usr/local/julia/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/julia/bin…
Any help av advice is appreciated!