I tried using julia in VSCode. But whenever I try to run the code from VSCode, I get
[Running] julia “/home/ved/Documents/ProgrammingProjectsJulia/1.jl”
/bin/sh: 1: julia: not found
[Done] exited with code=127 in 0.012 seconds
Here is my settings.json:
I am using Ubuntu 20.
How can this be fixed?
I use Ubuntu 20 so .exe won’t be there.
which julia say when running in shell?
Fixed quotes of @oheil suggestion:
it is stiill the same as given in the question.
Try to put
into your PATH variable. For test (you are using bash?) you may run
in the shell, and start VSCode from the same shell afterwards.
If this works you can put the same command into your
.bashrc or better in the system resource file
I have put this into the bashrc file. So, I can just type julia in a fresh terminal and julia repl for v1.5 opens also, I can run a julia code by just typing
julia name.jl. However, for some reason VSCode is not recognising julia.
Also, now that I check it, I guess the problem is with the code runner extension of vscode.
In VSCode you start a Julia REPL with
View → Command Palette …
Julia: Start REPL
and click on the menu item which should appear.
I just say that to make sure that this is what you do and which doesn’t work.
Ok, i don’t have that installed.
I have the julia extension in VSCode. What is the keyboard shortcut to run the code?
Also pressing that run button on the top right it runs the code but the REPL doesn’t open.
It opens in a Julia Debugger, but I want to run in a REPL.
How to open a repl when we run the code using the julia extension?