Check your VS Code/Julia extension settings for “Environment Path” and “Executable Path” and check if this matches what you have in your REPL (see lower blue status line for Julia env).
This is what comes to my mind as what may be wrong.
e.g.
“julia.environmentPath”: “C:\Users\USER\.julia\environments\v1.4”
There is also a launch.json file which lets you modify your running environment, it looks like:
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "julia",
"request": "launch",
"name": "Run active Julia file",
"program": "${file}",
"stopOnEntry": false,
"cwd": "${workspaceFolder}",
"juliaEnv": "${command:activeJuliaEnvironment}"
}
]
}
Maybe you have modified that and forgot it?
But I can’t tell what the right settings are for you, as I don’t know which environments you are using. Check also @pixel27 suggestion.