Hi again, I’ve struggled some more with my old code in the new Julia, so I want to get the simplest instructions possible to do the following…
Globally, my new version is Julia 1.10.0. My old code ran perfectly well under Julia 1.4.2. My old computer (with that old Julia) is dead and gone, but I have copies of its last working versions of Manifest.toml
and Project.toml
. Currently, JuliaPro is gone, so I am now running Julia with Visual Studio Code. I have installed the new Julia with Juliaup, and I have already run the command: juliaup add 1.4.2
, and it says: `1.4.2` is already installed
. So far, so good.
I created a directory called C:\MyResearchPlace\OldPrograms
. In that directory, I placed the key old files: Manifest.toml
, Project.toml
, and LovelyOldProgram.jl
. I will edit that program and place lots of modified versions of it in that same directory.
What I want, is that every time I click on a julia program (.jl
) file located inside THAT PARTICULAR DIRECTORY, it opens up in Visual Studio Code, and when I select-all and execute the code, for it to automatically run under Julia 1.4.2, using the packages defined by the Manifest.toml
and Project.toml
files located in C:\MyResearchPlace\OldPrograms
. (Simply placing those files in that directory and clicking on the julia file doesn’t seem to do the trick.)
When I open a julia program in ANY OTHER DIRECTORY, it might as well run under the global Julia 1.10.0 environment, but I don’t care as much.
I’ve seen instructions that relate to starting up Julia with line commands, but that’s not how I do it; I just click on a .jl
file, for it to open up in Visual Studio Code, I use Ctrl-a
to select all of the code, and then Shift-Enter
to execute it all. There’s nowhere to type any line commands.
Thanks again for any information.