How to create a Manifest file that works also with the test environment?

Sometimes I have the problem that activating the test environment downgrades packages of the main environment.

This can be time consuming and even error prone.

I now use the following script to create a Manifest.toml file that works with both the normal environment of my project, and the test environment:

using TestEnv; pr=TestEnv.activate()
using KiteViewers, KiteModels
src = joinpath(dirname(pr), "Manifest.toml")
dest = joinpath(pwd(), "Manifest.toml")
cp(src, dest; force=true)
using Pkg
Pkg.activate(".")
Pkg.resolve()

Is there a better way to achieve this goal?

See: GitHub - aenarete/KiteViewers.jl: 3D viewer for airborne wind energy systems

If you want to reproduce the problem, do:

export JULIA_PKG_SERVER_REGISTRY_PREFERANCE=eager
julia -e 'using Pkg; Pkg.add("TestEnv")'
git clone https://github.com/aenarete/KiteViewers.jl
cd KiteViewers.jl
julia --project

and then

using KiteViewers

this works fine, but then:

using TestEnv; TestEnv.activate()
using KiteModels

this does not work. Output:

julia> using TestEnv; TestEnv.activate()
┌ Warning: Could not use exact versions of packages in manifest, re-resolving
└ @ TestEnv ~/.julia/packages/TestEnv/tgnBf/src/julia-1.9/activate_set.jl:63
"/tmp/jl_HKVd5z/Project.toml"

julia> using KiteModels
Precompiling KiteModels
  ✓ StructArrays
  ✓ GPUArraysCore
  ✓ StructArrays → StructArraysAdaptExt
  ✓ StructArrays → StructArraysSparseArraysExt
  ✓ StructArrays → StructArraysStaticArraysExt
  194 dependencies successfully precompiled in 332 seconds. 286 already precompiled.
  5 dependencies precompiled but different versions are currently loaded. Restart julia to access the new versions
[ Info: Precompiling KiteModels [b94af626-7959-4878-9336-2adc27959007]
┌ Warning: Module KiteUtils with build ID fafbfcfd-1211-aa70-0000-076c9ec435e5 is missing from the cache.
│ This may mean KiteUtils [90980105-b163-44e5-ba9f-8b1c83bb0533] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1948
[ Info: Skipping precompilation since __precompile__(false). Importing KiteModels [b94af626-7959-4878-9336-2adc27959007].
Precompiling SciMLBaseMakieExt
  1 dependency successfully precompiled in 11 seconds. 303 already precompiled.
[ Info: Precompiling SciMLBaseMakieExt [565f26a4-c902-5eae-92ad-e10714a9d9de]
┌ Warning: Module SciMLBase with build ID fafbfcfd-7f8d-4dbe-0000-07e69ca34e6e is missing from the cache.
│ This may mean SciMLBase [0bca4576-84f4-4d90-8ffe-ffa030f20462] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1948
[ Info: Skipping precompilation since __precompile__(false). Importing SciMLBaseMakieExt [565f26a4-c902-5eae-92ad-e10714a9d9de].
Precompiling DiffEqBaseUnitfulExt
  3 dependencies successfully precompiled in 7 seconds. 320 already precompiled.
[ Info: Precompiling DiffEqBaseUnitfulExt [aeb06bb4-539b-5a1b-8332-034ed9f8ca66]
┌ Warning: Module DiffEqBase with build ID fafbfcfd-75c3-6256-0000-07e642f473b8 is missing from the cache.
│ This may mean DiffEqBase [2b5f629d-d688-5b77-993f-72d75c75574e] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1948
[ Info: Skipping precompilation since __precompile__(false). Importing DiffEqBaseUnitfulExt [aeb06bb4-539b-5a1b-8332-034ed9f8ca66].
Precompiling DiffEqBaseDistributionsExt
  1 dependency successfully precompiled in 1 seconds. 322 already precompiled.
[ Info: Precompiling DiffEqBaseDistributionsExt [24f3332a-0dc5-5d65-94b6-25e75cab9690]
┌ Warning: Module DiffEqBase with build ID fafbfcfd-75c3-6256-0000-07e642f473b8 is missing from the cache.
│ This may mean DiffEqBase [2b5f629d-d688-5b77-993f-72d75c75574e] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1948
[ Info: Skipping precompilation since __precompile__(false). Importing DiffEqBaseDistributionsExt [24f3332a-0dc5-5d65-94b6-25e75cab9690].
[ Info: Precompiling DiffEqBaseChainRulesCoreExt [b00db79b-61e3-50fb-b26f-2d35b2d9e4ed]
┌ Warning: Module DiffEqBase with build ID fafbfcfd-75c3-6256-0000-07e642f473b8 is missing from the cache.
│ This may mean DiffEqBase [2b5f629d-d688-5b77-993f-72d75c75574e] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1948
[ Info: Skipping precompilation since __precompile__(false). Importing DiffEqBaseChainRulesCoreExt [b00db79b-61e3-50fb-b26f-2d35b2d9e4ed].
[ Info: Precompiling DiffEqBaseSparseArraysExt [4131c53f-b1d6-5635-a7a3-57f6f930b644]
┌ Warning: Module DiffEqBase with build ID fafbfcfd-75c3-6256-0000-07e642f473b8 is missing from the cache.
│ This may mean DiffEqBase [2b5f629d-d688-5b77-993f-72d75c75574e] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1948
[ Info: Skipping precompilation since __precompile__(false). Importing DiffEqBaseSparseArraysExt [4131c53f-b1d6-5635-a7a3-57f6f930b644].
Precompiling OrdinaryDiffEqCore
  2 dependencies successfully precompiled in 4 seconds. 324 already precompiled.
[ Info: Precompiling OrdinaryDiffEqCore [bbf590c4-e513-4bbe-9b18-05decba2e5d8]
┌ Warning: Module DiffEqBase with build ID fafbfcfd-75c3-6256-0000-07e642f473b8 is missing from the cache.
│ This may mean DiffEqBase [2b5f629d-d688-5b77-993f-72d75c75574e] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1948
[ Info: Skipping precompilation since __precompile__(false). Importing OrdinaryDiffEqCore [bbf590c4-e513-4bbe-9b18-05decba2e5d8].
Precompiling OrdinaryDiffEqBDF
  14 dependencies successfully precompiled in 77 seconds. 396 already precompiled.
[ Info: Precompiling OrdinaryDiffEqBDF [6ad6398a-0878-4a85-9266-38940aa047c8]
┌ Warning: Module OrdinaryDiffEqCore with build ID ffffffff-ffff-ffff-0000-080389ffa1ff is missing from the cache.
│ This may mean OrdinaryDiffEqCore [bbf590c4-e513-4bbe-9b18-05decba2e5d8] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1948
[ Info: Skipping precompilation since __precompile__(false). Importing OrdinaryDiffEqBDF [6ad6398a-0878-4a85-9266-38940aa047c8].
[ Info: Precompiling OrdinaryDiffEqSDIRK [2d112036-d095-4a1e-ab9a-08536f3ecdbf]
┌ Warning: Module OrdinaryDiffEqCore with build ID ffffffff-ffff-ffff-0000-080389ffa1ff is missing from the cache.
│ This may mean OrdinaryDiffEqCore [bbf590c4-e513-4bbe-9b18-05decba2e5d8] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1948
[ Info: Skipping precompilation since __precompile__(false). Importing OrdinaryDiffEqSDIRK [2d112036-d095-4a1e-ab9a-08536f3ecdbf].
[ Info: Precompiling OrdinaryDiffEqDifferentiation [4302a76b-040a-498a-8c04-15b101fed76b]
┌ Warning: Module SciMLBase with build ID fafbfcfd-7f8d-4dbe-0000-07e69ca34e6e is missing from the cache.
│ This may mean SciMLBase [0bca4576-84f4-4d90-8ffe-ffa030f20462] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1948
[ Info: Skipping precompilation since __precompile__(false). Importing OrdinaryDiffEqDifferentiation [4302a76b-040a-498a-8c04-15b101fed76b].
[ Info: Precompiling LinearSolve [7ed4a6bd-45f5-4d41-b270-4a48e9bafcae]
┌ Warning: Module SciMLBase with build ID fafbfcfd-7f8d-4dbe-0000-07e69ca34e6e is missing from the cache.
│ This may mean SciMLBase [0bca4576-84f4-4d90-8ffe-ffa030f20462] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1948
[ Info: Skipping precompilation since __precompile__(false). Importing LinearSolve [7ed4a6bd-45f5-4d41-b270-4a48e9bafcae].
[ Info: Precompiling LinearSolveRecursiveArrayToolsExt [04950c4b-5bc4-5740-952d-02d2c1eb583a]
┌ Warning: Module LinearSolve with build ID ffffffff-ffff-ffff-0000-0816f4918a1b is missing from the cache.
│ This may mean LinearSolve [7ed4a6bd-45f5-4d41-b270-4a48e9bafcae] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1948
[ Info: Skipping precompilation since __precompile__(false). Importing LinearSolveRecursiveArrayToolsExt [04950c4b-5bc4-5740-952d-02d2c1eb583a].
[ Info: Precompiling OrdinaryDiffEqNonlinearSolve [127b3ac7-2247-4354-8eb6-78cf4e7c58e8]
┌ Warning: Module SciMLBase with build ID fafbfcfd-7f8d-4dbe-0000-07e69ca34e6e is missing from the cache.
│ This may mean SciMLBase [0bca4576-84f4-4d90-8ffe-ffa030f20462] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1948
[ Info: Skipping precompilation since __precompile__(false). Importing OrdinaryDiffEqNonlinearSolve [127b3ac7-2247-4354-8eb6-78cf4e7c58e8].
[ Info: Precompiling SimpleNonlinearSolve [727e6d20-b764-4bd8-a329-72de5adea6c7]
┌ Warning: Module DiffEqBase with build ID fafbfcfd-75c3-6256-0000-07e642f473b8 is missing from the cache.
│ This may mean DiffEqBase [2b5f629d-d688-5b77-993f-72d75c75574e] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1948
[ Info: Skipping precompilation since __precompile__(false). Importing SimpleNonlinearSolve [727e6d20-b764-4bd8-a329-72de5adea6c7].
[ Info: Precompiling SimpleNonlinearSolveChainRulesCoreExt [073a8d7d-86ee-5d75-9348-f9bf6155b014]
┌ Warning: Module DiffEqBase with build ID fafbfcfd-75c3-6256-0000-07e642f473b8 is missing from the cache.
│ This may mean DiffEqBase [2b5f629d-d688-5b77-993f-72d75c75574e] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1948
[ Info: Skipping precompilation since __precompile__(false). Importing SimpleNonlinearSolveChainRulesCoreExt [073a8d7d-86ee-5d75-9348-f9bf6155b014].
[ Info: Precompiling NonlinearSolve [8913a72c-1f9b-4ce2-8d82-65094dcecaec]
┌ Warning: Module DiffEqBase with build ID fafbfcfd-75c3-6256-0000-07e642f473b8 is missing from the cache.
│ This may mean DiffEqBase [2b5f629d-d688-5b77-993f-72d75c75574e] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1948
[ Info: Skipping precompilation since __precompile__(false). Importing NonlinearSolve [8913a72c-1f9b-4ce2-8d82-65094dcecaec].
[ Info: Precompiling LineSearch [87fe0de2-c867-4266-b59a-2f0a94fc965b]
┌ Warning: Module SciMLBase with build ID fafbfcfd-7f8d-4dbe-0000-07e69ca34e6e is missing from the cache.
│ This may mean SciMLBase [0bca4576-84f4-4d90-8ffe-ffa030f20462] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1948
[ Info: Skipping precompilation since __precompile__(false). Importing LineSearch [87fe0de2-c867-4266-b59a-2f0a94fc965b].
[ Info: Precompiling SciMLJacobianOperators [19f34311-ddf3-4b8b-af20-060888a46c0e]
┌ Warning: Module SciMLBase with build ID fafbfcfd-7f8d-4dbe-0000-07e69ca34e6e is missing from the cache.
│ This may mean SciMLBase [0bca4576-84f4-4d90-8ffe-ffa030f20462] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1948
[ Info: Skipping precompilation since __precompile__(false). Importing SciMLJacobianOperators [19f34311-ddf3-4b8b-af20-060888a46c0e].
[ Info: Precompiling LineSearchLineSearchesExt [8d20b31a-8b56-511a-b573-0bef60e8c8c7]
┌ Warning: Module LineSearch with build ID ffffffff-ffff-ffff-0000-081b97c63232 is missing from the cache.
│ This may mean LineSearch [87fe0de2-c867-4266-b59a-2f0a94fc965b] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1948
[ Info: Skipping precompilation since __precompile__(false). Importing LineSearchLineSearchesExt [8d20b31a-8b56-511a-b573-0bef60e8c8c7].
[ Info: Precompiling NonlinearSolveNLsolveExt [ae262b1c-8c8a-50b1-9ef3-b8fcfb893e74]
┌ Warning: Module NonlinearSolve with build ID ffffffff-ffff-ffff-0000-081b7040a870 is missing from the cache.
│ This may mean NonlinearSolve [8913a72c-1f9b-4ce2-8d82-65094dcecaec] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1948
[ Info: Skipping precompilation since __precompile__(false). Importing NonlinearSolveNLsolveExt [ae262b1c-8c8a-50b1-9ef3-b8fcfb893e74].
Precompiling Sundials
  1 dependency successfully precompiled in 6 seconds. 324 already precompiled.
[ Info: Precompiling Sundials [c3572dad-4567-51f8-b174-8c6c989267f4]
┌ Warning: Module DiffEqBase with build ID fafbfcfd-75c3-6256-0000-07e642f473b8 is missing from the cache.
│ This may mean DiffEqBase [2b5f629d-d688-5b77-993f-72d75c75574e] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1948
[ Info: Skipping precompilation since __precompile__(false). Importing Sundials [c3572dad-4567-51f8-b174-8c6c989267f4].
[ Info: Precompiling KitePodModels [9de5dc81-f971-414a-927b-652b2f41c539]
┌ Warning: Module KiteUtils with build ID fafbfcfd-1211-aa70-0000-076c9ec435e5 is missing from the cache.
│ This may mean KiteUtils [90980105-b163-44e5-ba9f-8b1c83bb0533] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1948
[ Info: Skipping precompilation since __precompile__(false). Importing KitePodModels [9de5dc81-f971-414a-927b-652b2f41c539].
[ Info: Precompiling WinchModels [7dcfa46b-7979-4771-bbf4-0aee0da42e1f]
┌ Warning: Module KiteUtils with build ID fafbfcfd-1211-aa70-0000-076c9ec435e5 is missing from the cache.
│ This may mean KiteUtils [90980105-b163-44e5-ba9f-8b1c83bb0533] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1948
[ Info: Skipping precompilation since __precompile__(false). Importing WinchModels [7dcfa46b-7979-4771-bbf4-0aee0da42e1f].
[ Info: Precompiling AtmosphericModels [c59cac55-771d-4f45-b14d-1c681463a295]
┌ Warning: Module KiteUtils with build ID fafbfcfd-1211-aa70-0000-076c9ec435e5 is missing from the cache.
│ This may mean KiteUtils [90980105-b163-44e5-ba9f-8b1c83bb0533] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1948
[ Info: Skipping precompilation since __precompile__(false). Importing AtmosphericModels [c59cac55-771d-4f45-b14d-1c681463a295].
Precompiling ModelingToolkit
  5 dependencies successfully precompiled in 48 seconds. 421 already precompiled.
[ Info: Precompiling ModelingToolkit [961ee093-0014-501f-94e3-6117800e7a78]
┌ Warning: Module SciMLBase with build ID fafbfcfd-7f8d-4dbe-0000-07e69ca34e6e is missing from the cache.
│ This may mean SciMLBase [0bca4576-84f4-4d90-8ffe-ffa030f20462] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1948
[ Info: Skipping precompilation since __precompile__(false). Importing ModelingToolkit [961ee093-0014-501f-94e3-6117800e7a78].
[ Info: Precompiling Symbolics [0c5d862f-8b57-4792-8d23-62f2024744c7]
┌ Warning: Module SciMLBase with build ID fafbfcfd-7f8d-4dbe-0000-07e69ca34e6e is missing from the cache.
│ This may mean SciMLBase [0bca4576-84f4-4d90-8ffe-ffa030f20462] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1948
[ Info: Skipping precompilation since __precompile__(false). Importing Symbolics [0c5d862f-8b57-4792-8d23-62f2024744c7].
[ Info: Precompiling DomainSetsMakieExt [da481366-01c8-5b4d-b359-47a10c8532e7]
┌ Warning: Module Makie with build ID fafbfcfd-2006-656d-0000-0771403e11cd is missing from the cache.
│ This may mean Makie [ee78f7c6-11fb-53f2-987a-cfe4a2b5a57a] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1948
[ Info: Skipping precompilation since __precompile__(false). Importing DomainSetsMakieExt [da481366-01c8-5b4d-b359-47a10c8532e7].
[ Info: Precompiling SparseDiffToolsSymbolicsExt [cd430d6f-1330-5ba3-8763-ae950e38ad4f]
┌ Warning: Module Symbolics with build ID ffffffff-ffff-ffff-0000-082c4f61f590 is missing from the cache.
│ This may mean Symbolics [0c5d862f-8b57-4792-8d23-62f2024744c7] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1948
[ Info: Skipping precompilation since __precompile__(false). Importing SparseDiffToolsSymbolicsExt [cd430d6f-1330-5ba3-8763-ae950e38ad4f].
[ Info: Precompiling DifferentiationInterfaceSymbolicsExt [e6c02559-e2b6-5021-bc6e-a9f025c2d0c8]
┌ Warning: Module Symbolics with build ID ffffffff-ffff-ffff-0000-082c4f61f590 is missing from the cache.
│ This may mean Symbolics [0c5d862f-8b57-4792-8d23-62f2024744c7] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1948
[ Info: Skipping precompilation since __precompile__(false). Importing DifferentiationInterfaceSymbolicsExt [e6c02559-e2b6-5021-bc6e-a9f025c2d0c8].
[ Info: Precompiling SymbolicsPreallocationToolsExt [d479e226-fb54-5ebe-a75e-a7af7f39127f]
┌ Warning: Module Symbolics with build ID ffffffff-ffff-ffff-0000-082c4f61f590 is missing from the cache.
│ This may mean Symbolics [0c5d862f-8b57-4792-8d23-62f2024744c7] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1948
[ Info: Skipping precompilation since __precompile__(false). Importing SymbolicsPreallocationToolsExt [d479e226-fb54-5ebe-a75e-a7af7f39127f].
[ Info: Precompiling SymbolicsForwardDiffExt [4a213a23-c09c-5cde-9712-b631ad2c72df]
┌ Warning: Module Symbolics with build ID ffffffff-ffff-ffff-0000-082c4f61f590 is missing from the cache.
│ This may mean Symbolics [0c5d862f-8b57-4792-8d23-62f2024744c7] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1948
[ Info: Skipping precompilation since __precompile__(false). Importing SymbolicsForwardDiffExt [4a213a23-c09c-5cde-9712-b631ad2c72df].
[ Info: Precompiling DiffEqCallbacks [459566f4-90b8-5000-8ac3-15dfb0a30def]
┌ Warning: Module DiffEqBase with build ID fafbfcfd-75c3-6256-0000-07e642f473b8 is missing from the cache.
│ This may mean DiffEqBase [2b5f629d-d688-5b77-993f-72d75c75574e] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1948
[ Info: Skipping precompilation since __precompile__(false). Importing DiffEqCallbacks [459566f4-90b8-5000-8ac3-15dfb0a30def].
[ Info: Precompiling DiffEqNoiseProcess [77a26b50-5914-5dd7-bc55-306e6241c503]
┌ Warning: Module DiffEqBase with build ID fafbfcfd-75c3-6256-0000-07e642f473b8 is missing from the cache.
│ This may mean DiffEqBase [2b5f629d-d688-5b77-993f-72d75c75574e] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1948
[ Info: Skipping precompilation since __precompile__(false). Importing DiffEqNoiseProcess [77a26b50-5914-5dd7-bc55-306e6241c503].
[ Info: Precompiling JumpProcesses [ccbc3e58-028d-4f4c-8cd5-9ae44345cda5]
┌ Warning: Module DiffEqBase with build ID fafbfcfd-75c3-6256-0000-07e642f473b8 is missing from the cache.
│ This may mean DiffEqBase [2b5f629d-d688-5b77-993f-72d75c75574e] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1948
[ Info: Skipping precompilation since __precompile__(false). Importing JumpProcesses [ccbc3e58-028d-4f4c-8cd5-9ae44345cda5].
[ Info: Precompiling MTKChainRulesCoreExt [e86d2102-9cb4-5e93-8b67-808f3ccccc73]
┌ Warning: Module ModelingToolkit with build ID ffffffff-ffff-ffff-0000-082bfdb6869c is missing from the cache.
│ This may mean ModelingToolkit [961ee093-0014-501f-94e3-6117800e7a78] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1948
[ Info: Skipping precompilation since __precompile__(false). Importing MTKChainRulesCoreExt [e86d2102-9cb4-5e93-8b67-808f3ccccc73].
Precompiling SteadyStateDiffEq
  1 dependency successfully precompiled in 2 seconds. 357 already precompiled.
[ Info: Precompiling SteadyStateDiffEq [9672c7b4-1e72-59bd-8a11-6ac3964bc41f]
┌ Warning: Module DiffEqBase with build ID fafbfcfd-75c3-6256-0000-07e642f473b8 is missing from the cache.
│ This may mean DiffEqBase [2b5f629d-d688-5b77-993f-72d75c75574e] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1948
[ Info: Skipping precompilation since __precompile__(false). Importing SteadyStateDiffEq [9672c7b4-1e72-59bd-8a11-6ac3964bc41f].
ERROR: LoadError: invalid method definition in KiteModels: function WinchModels.smooth_sign must be explicitly imported to be extended
Stacktrace:
  [1] top-level scope
    @ none:0
  [2] top-level scope
    @ ~/.julia/packages/KiteModels/ujHE2/src/KPS4_3L.jl:1033
  [3] include(mod::Module, _path::String)
    @ Base ./Base.jl:495
  [4] include(x::String)
    @ KiteModels ~/.julia/packages/KiteModels/ujHE2/src/KiteModels.jl:34
  [5] top-level scope
    @ ~/.julia/packages/KiteModels/ujHE2/src/KiteModels.jl:118
  [6] include(mod::Module, _path::String)
    @ Base ./Base.jl:495
  [7] _require(pkg::Base.PkgId, env::String)
    @ Base ./loading.jl:2014
  [8] __require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base ./loading.jl:1812
  [9] #invoke_in_world#3
    @ ./essentials.jl:926 [inlined]
 [10] invoke_in_world
    @ ./essentials.jl:923 [inlined]
 [11] _require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base ./loading.jl:1803
 [12] macro expansion
    @ ./loading.jl:1790 [inlined]
 [13] macro expansion
    @ ./lock.jl:267 [inlined]
 [14] __require(into::Module, mod::Symbol)
    @ Base ./loading.jl:1753
 [15] #invoke_in_world#3
    @ ./essentials.jl:926 [inlined]
 [16] invoke_in_world
    @ ./essentials.jl:923 [inlined]
 [17] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:1746
in expression starting at /home/ufechner/.julia/packages/KiteModels/ujHE2/src/KPS4_3L.jl:1033
in expression starting at /home/ufechner/.julia/packages/KiteModels/ujHE2/src/KiteModels.jl:34

If I quit Julia and run the script ./bin/install and start Julia again everything works. But that cannot be the way it is supposed to be.

I think there will be a new feature of Pkg.jl in 1.12 allowing this: https://pkgdocs.julialang.org/dev/toml-files/#The-[workspace]-section

1 Like