hi Path aggregation seems to have declared independence from my instructions. Here the problem (with vscode Repl)
The bad behavior
julia> cd("C:\\proj\\Rprojs\\PS1908\\julia\\21T4_vormdp")
using Pkg
Pkg.activate(".")
Activating environment at `C:\proj\Rprojs\PS1908\julia\21T4_vormdp\Project.toml`
julia> pwd()
"C:\\proj\\Rprojs\\PS1908\\julia\\21T4_vormdp"
julia> include("./src/orders.jl")
ERROR: LoadError: SystemError: opening file "c:\\proj\\Rprojs\\PS1908\\julia\\21T4_vormdp\\mains\\src\\orders.jl": No such file or directory
Stacktrace:
[1] systemerror(p::String, errno::Int32; extrainfo::Nothing)
@ Base .\error.jl:168
-
the
include
instruction should try to open the combination ofC:\\proj\\Rprojs\\PS1908\\julia\\21T4_vormdp
- with
./src/orders.jl
-
but instead it tries to open a different file…
c:\\proj\\Rprojs\\PS1908\\julia\\21T4_vormdp\\mains\\src\\orders.jl
The same from a terminal session- works fine.
PS C:\proj\Rprojs\PS1908\julia\21T4_vormdp> julia
_
_ _ _(_)_ | Documentation: https://docs.julialang.org
(_) | (_) (_) |
_ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 1.6.1 (2021-04-23)
_/ |\__'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |
julia> cd("C:\\proj\\Rprojs\\PS1908\\julia\\21T4_vormdp")
julia> using Pkg
julia> Pkg.activate(".")
Activating environment at `C:\proj\Rprojs\PS1908\julia\21T4_vormdp\Project.toml`
julia> pwd()
"C:\\proj\\Rprojs\\PS1908\\julia\\21T4_vormdp"
julia> include("./src/orders.jl")
Main.orders
- Would you know about this? Does vscode maintain a separate “current” directory? like a “shadow”
pwd
?