Hi all,
Quite new to Julia packages so apologies if this is obvious. I’ve been creating and using two packages which are in my dev path. This has been working for a few weeks no problem.
Today, I inserted package1 as a dependency to the project.toml of my second package (DispersionAnalysis) and it appears to have broken everything. Now when running any ‘using’ statement in a testfile.jl I get errors. This is true for my dev packages but also normal installed packages e.g. Plots, Dates, SPICE, etc.
I tried reverting the packages back to no avail. I run my testfile.jl which looks like this:
using Revise
using DispersionAnalysis
... #some code to do dispersion analysis
And the output is:
ERROR: LoadError: ArgumentError: Package Revise [295af30f-e4ad-537b-8983-00126c2a3abe] is required but does not seem to be installed:
- Run `Pkg.instantiate()` to install all recorded dependencies.
Stacktrace:
[1] _require(::Base.PkgId) at .\loading.jl:929
[2] require(::Base.PkgId) at .\loading.jl:858
[3] require(::Module, ::Symbol) at .\loading.jl:853
[4] include_string(::Module, ::String, ::String) at .\loading.jl:1008
[5] (::getfield(Main._vscodeserver, Symbol("##9#12")){String,Int64,Int64,String})() at c:\Users\calum\.vscode\extensions\julialang.language-julia-0.12.3\scripts\terminalserver\terminalserver.jl:153
[6] withpath(::getfield(Main._vscodeserver, Symbol("##9#12")){String,Int64,Int64,String}, ::String) at c:\Users\calum\.vscode\extensions\julialang.language-julia-0.12.3\scripts\terminalserver\repl.jl:62
[7] (::getfield(Main._vscodeserver, Symbol("##8#11")){String,Int64,Int64,String})() at c:\Users\calum\.vscode\extensions\julialang.language-julia-0.12.3\scripts\terminalserver\terminalserver.jl:152
[8] hideprompt(::getfield(Main._vscodeserver, Symbol("##8#11")){String,Int64,Int64,String}) at c:\Users\calum\.vscode\extensions\julialang.language-julia-0.12.3\scripts\terminalserver\repl.jl:28
[9] macro expansion at c:\Users\calum\.vscode\extensions\julialang.language-julia-0.12.3\scripts\terminalserver\terminalserver.jl:148 [inlined]
[10] (::getfield(Main._vscodeserver, Symbol("##7#10")))() at .\task.jl:259
in expression starting at c:\Users\calum\Documents\Git-MissionAnalysis\mission-1\Mission01\MoonMission_auto.jl:2
I ran Instantiate
on Pkg DispersionAnalysis
(DispersionAnalysis) pkg> instantiate
Updating registry at `C:\Users\calum\.julia\registries\General`
Updating git-repo `https://github.com/JuliaRegistries/General.git`
Installed DelayDiffEq ─────────── v5.14.0
Installed DifferentialEquations ─ v6.6.0
Installed OrdinaryDiffEq ──────── v5.15.1
Installed FFMPEG ──────────────── v0.2.2
Installed DiffEqBase ──────────── v5.20.1
Installed MbedTLS ─────────────── v0.7.0
Installed SparseDiffTools ─────── v0.9.0
Installed StochasticDiffEq ────── v6.9.1
Building MbedTLS → `C:\Users\calum\.julia\packages\MbedTLS\a1JFn\deps\build.log`
Building FFMPEG ─→ `C:\Users\calum\.julia\packages\FFMPEG\9JQpZ\deps\build.log`
Other useful things to know:
Julia v.1.1.
I’ve closed my julia REPL in case it was leftover from another open session,
I’ve re-built and updated all packages.
I’ve also manually checked that the desired packages are installed.
Any ideas how to solve this?
Second, as a more general question, is it ok practise to add one dev package as a dependency of another? I assumed it was fine as they are both issued uuid’s by the package manager.
Thanks!