I am probably not explaining things properly. I am not trying to install the PIPCore package, but continue the development of the PIPCore.jl module that I started on the original VM.
What I have done now is to uninstall Julia, making sure I delete the original folder it was in completely, and re-install it, accepting the default installation location: C:\Users\my_username\AppData\Local\Programs\Julia-1.6.2
I then cloned the source code from GitHub to E:\Source\
where it now resides in E:\Source\PIPCore.jl
.
I launched Visual Studio Code and opened this folder. I started the Julia REPL.
julia> pwd()
"E:\\Source\\PIPCore.jl"
I then :
(PIPCore) pkg> instantiate
Precompiling project...
✓ Revise
112 dependencies successfully precompiled in 74 seconds (12 already precompiled)
1 dependency precompiled but a different version is currently loaded. Restart julia to access the new version
1 dependency errored. To see a full report either run `import Pkg; Pkg.precompile()` or load the package
I restarted VSC as instructed (Restart julia to access the new version) , and started Julia REPL
julia> import Pkg; Pkg.precompile()
0 dependencies successfully precompiled in 5 seconds (124 already precompiled)
ERROR: The following 1 direct dependency failed to precompile:
PIPCore [5f73200a-36c0-42cd-9607-31bc8d8705ce]
Error: Missing source file for PIPCore [5f73200a-36c0-42cd-9607-31bc8d8705ce
Stacktrace:
[1] pkgerror(msg::String)
@ Pkg.Types C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Pkg\src\Types.jl:55
[2] precompile(ctx::Pkg.Types.Context; internal_call::Bool, strict::Bool, kwargs::Base.Iterators.Pairs{Union{}, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
@ Pkg.API C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Pkg\src\API.jl:1265
[3] precompile
@ C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Pkg\src\API.jl:921 [inlined]
[4] #precompile#196
@ C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Pkg\src\API.jl:919 [inlined]
[5] precompile()
@ Pkg.API C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Pkg\src\API.jl:919
[6] top-level scope
@ REPL[2]:1
Inside the E:\Source\PIPCore.jl
directory is the src subdirectory with the PIPCore source code :
module PIPCore
# using statements
#export statement
#some code
include("staging.jl")
end
staging.jl
is in the same src
sub-directory.
Project.toml:
name = "PIPCore"
uuid = "5f73200a-36c0-42cd-9607-31bc8d8705ce"
authors = ["Kobus Herbst"]
version = "0.1.0"
[deps]
...
To the best of my knowledge these are the steps to follow to continue working on Julia source code, this procedure worked for me before, I can’t figure out why it doesn’t now.