Error "Missing source file" when precompiling using Julia 1.10.2

I did the following:

git clone https://github.com/aenarete/KitePodModels.jl
cd KitePodModels.jl
julia --project

and get the following error message:

julia> using KitePodModels
    Updating registry at `~/.julia/registries/General.toml`
    Updating `~/repos/KitePodModels.jl/Project.toml`
  [ffbed154] + DocStringExtensions v0.9.3
  [90980105] + KiteUtils v0.4.8
  [189a3867] + Reexport v1.2.2
    Updating `~/repos/KitePodModels.jl/Manifest.toml`
⌅ [79e6a3ab] + Adapt v3.7.2
⌃ [4fba245c] + ArrayInterface v7.7.1
  [69666777] + Arrow v2.7.1
  [31f734f8] + ArrowTypes v2.3.0
  [c3b6d118] + BitIntegers v0.3.1
  [336ed68f] + CSV v0.10.13
  [5ba52731] + CodecLz4 v0.4.3
  [944b1d66] + CodecZlib v0.7.4
  [6b39b394] + CodecZstd v0.8.2
  [34da2185] + Compat v4.14.0
  [f0e56b4a] + ConcurrentUtilities v2.3.1
  [187b0558] + ConstructionBase v1.5.4
  [9a962f9c] + DataAPI v1.16.0
  [e2d170a0] + DataValueInterfaces v1.0.0
  [ffbed154] + DocStringExtensions v0.9.3
  [4e289a0a] + EnumX v1.0.4
  [e2ba6199] + ExprTools v0.1.10
  [48062228] + FilePathsBase v0.9.21
⌃ [46192b85] + GPUArraysCore v0.1.5
  [842dd82b] + InlineStrings v1.4.0
  [82899510] + IteratorInterfaceExtensions v1.0.0
  [692b3bcd] + JLLWrappers v1.5.0
  [90980105] + KiteUtils v0.4.8
  [e6f89c97] + LoggingExtras v1.0.3
  [78c3b35d] + Mocking v0.7.7
  [bac558e1] + OrderedCollections v1.6.3
  [d96e819e] + Parameters v0.12.3
  [69de0a69] + Parsers v2.8.1
  [2dfb63ee] + PooledArrays v1.4.3
  [aea7be01] + PrecompileTools v1.2.0
  [21216c6a] + Preferences v1.4.3
  [94ee1d12] + Quaternions v0.7.6
  [c1ae055f] + RealDot v0.1.0
  [3cdcf5f2] + RecipesBase v1.3.4
⌅ [731186ca] + RecursiveArrayTools v2.38.10
  [189a3867] + Reexport v1.2.2
  [ae029012] + Requires v1.3.0
  [6038ab10] + Rotations v1.7.0
  [6c6a2e73] + Scratch v1.2.1
  [91c51154] + SentinelArrays v1.4.1
  [90137ffa] + StaticArrays v1.9.3
  [1e83bf80] + StaticArraysCore v1.4.2
  [69024149] + StringEncodings v0.3.7
  [09ab397b] + StructArrays v0.6.18
  [856f2bd8] + StructTypes v1.10.0
⌅ [2efcf032] + SymbolicIndexingInterface v0.2.2
  [dc5dba14] + TZJData v1.1.0+2023d
  [3783bdb8] + TableTraits v1.0.1
  [bd369af6] + Tables v1.11.1
  [1e6cf692] + TestEnv v1.101.1
  [f269a46b] + TimeZones v1.13.0
  [3bb67fe8] + TranscodingStreams v0.10.4
  [3a884ed6] + UnPack v1.0.2
  [ea10d353] + WeakRefStrings v1.4.2
  [76eceee3] + WorkerUtilities v1.6.1
  [ddb6d928] + YAML v0.4.9
  [94ce4f54] + Libiconv_jll v1.17.0+0
  [5ced341a] + Lz4_jll v1.9.4+0
  [3161d3a3] + Zstd_jll v1.5.5+0
  [0dad84c5] + ArgTools v1.1.1
  [56f22d72] + Artifacts
  [2a0f44e3] + Base64
  [ade2ca70] + Dates
  [f43a241f] + Downloads v1.6.0
  [7b1f6079] + FileWatching
  [9fa8497b] + Future
  [b77e0a4c] + InteractiveUtils
  [4af54fe1] + LazyArtifacts
  [b27032c2] + LibCURL v0.6.4
  [76f85450] + LibGit2
  [8f399da3] + Libdl
  [37e2e46d] + LinearAlgebra
  [56ddb016] + Logging
  [d6f4376e] + Markdown
  [a63ad114] + Mmap
  [ca575930] + NetworkOptions v1.2.0
  [44cfe95a] + Pkg v1.10.0
  [de0858da] + Printf
  [3fa0cd96] + REPL
  [9a3f8284] + Random
  [ea8e919c] + SHA v0.7.0
  [9e88b42a] + Serialization
  [6462fe0b] + Sockets
  [2f01184e] + SparseArrays v1.10.0
  [10745b16] + Statistics v1.10.0
  [4607b0f0] + SuiteSparse
  [fa267f1f] + TOML v1.0.3
  [a4e569a6] + Tar v1.10.0
  [8dfed614] + Test
  [cf7118a7] + UUIDs
  [4ec0a83e] + Unicode
  [e66e0078] + CompilerSupportLibraries_jll v1.1.0+0
  [deac9b47] + LibCURL_jll v8.4.0+0
  [e37daf67] + LibGit2_jll v1.6.4+0
  [29816b5a] + LibSSH2_jll v1.11.0+1
  [c8ffd9c3] + MbedTLS_jll v2.28.2+1
  [14a3606d] + MozillaCACerts_jll v2023.1.10
  [4536629a] + OpenBLAS_jll v0.3.23+4
  [bea87d4a] + SuiteSparse_jll v7.2.1+1
  [83775a58] + Zlib_jll v1.2.13+1
  [8e850b90] + libblastrampoline_jll v5.8.0+1
  [8e850ede] + nghttp2_jll v1.52.0+1
  [3f19e933] + p7zip_jll v17.4.0+2
        Info Packages marked with ⌃ and ⌅ have new versions available. Those with ⌃ may be upgradable, but those with ⌅ are restricted by compatibility constraints from upgrading. To see why use `status --outdated -m`
Precompiling KitePodModels
  1 dependency successfully precompiled in 11 seconds. 39 already precompiled.

ERROR: The following 1 direct dependency failed to precompile:

KiteUtils [90980105-b163-44e5-ba9f-8b1c83bb0533]

Error: Missing source file for KiteUtils [90980105-b163-44e5-ba9f-8b1c83bb0533
Stacktrace:
  [1] pkgerror(msg::String)
    @ Pkg.Types ~/.julia/juliaup/julia-1.10.2+0.x64.linux.gnu/share/julia/stdlib/v1.10/Pkg/src/Types.jl:70
  [2] precompile(ctx::Pkg.Types.Context, pkgs::Vector{…}; internal_call::Bool, strict::Bool, warn_loaded::Bool, already_instantiated::Bool, timing::Bool, _from_loading::Bool, kwargs::@Kwargs{…})
    @ Pkg.API ~/.julia/juliaup/julia-1.10.2+0.x64.linux.gnu/share/julia/stdlib/v1.10/Pkg/src/API.jl:1659
  [3] precompile(pkgs::Vector{Pkg.Types.PackageSpec}; io::Base.TTY, kwargs::@Kwargs{_from_loading::Bool})
    @ Pkg.API ~/.julia/juliaup/julia-1.10.2+0.x64.linux.gnu/share/julia/stdlib/v1.10/Pkg/src/API.jl:159
  [4] precompile
    @ ~/.julia/juliaup/julia-1.10.2+0.x64.linux.gnu/share/julia/stdlib/v1.10/Pkg/src/API.jl:147 [inlined]
  [5] #precompile#114
    @ ~/.julia/juliaup/julia-1.10.2+0.x64.linux.gnu/share/julia/stdlib/v1.10/Pkg/src/API.jl:146 [inlined]
  [6] #invokelatest#2
    @ ./essentials.jl:894 [inlined]
  [7] invokelatest
    @ ./essentials.jl:889 [inlined]
  [8] _require(pkg::Base.PkgId, env::String)
    @ Base ./loading.jl:1963
  [9] __require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base ./loading.jl:1812
 [10] #invoke_in_world#3
    @ ./essentials.jl:926 [inlined]
 [11] invoke_in_world
    @ ./essentials.jl:923 [inlined]
 [12] _require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base ./loading.jl:1803
 [13] macro expansion
    @ ./loading.jl:1790 [inlined]
 [14] macro expansion
    @ ./lock.jl:267 [inlined]
 [15] __require(into::Module, mod::Symbol)
    @ Base ./loading.jl:1753
 [16] #invoke_in_world#3
    @ ./essentials.jl:926 [inlined]
 [17] invoke_in_world
    @ ./essentials.jl:923 [inlined]
 [18] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:1746
Some type information was truncated. Use `show(err)` to see complete types.

Any idea?

Works for me on 1.10.1.

Maybe something in your .julia directory is broken? You could try to delete the downloaded dependency maybe:

rm -rf ~/.julia/packages/KiteUtils/

This did not help.

julia> versioninfo()
Julia Version 1.10.2
Commit bd47eca2c8a (2024-03-01 10:14 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 16 × AMD Ryzen 7 7840U w/ Radeon  780M Graphics
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-15.0.7 (ORCJIT, znver3)
Threads: 1 default, 0 interactive, 1 GC (on 16 virtual cores)

I still get:

Error: Missing source file for KiteUtils [90980105-b163-44e5-ba9f-8b1c83bb0533

If I do:

git clone https://github.com/ufechner7/KiteUtils.jl
cd KiteUtils.jl
julia --project

I get the following, 7 error messages:

ulia> using KiteUtils
    Updating registry at `~/.julia/registries/General.toml`
    Updating `~/repos/KiteUtils.jl/Project.toml`
  [69666777] + Arrow v2.7.1
  [336ed68f] + CSV v0.10.13
  [ffbed154] + DocStringExtensions v0.9.3
  [d96e819e] + Parameters v0.12.3
⌃ [731186ca] + RecursiveArrayTools v2.38.10
  [6038ab10] + Rotations v1.7.0
⌅ [90137ffa] + StaticArrays v1.5.12
  [09ab397b] + StructArrays v0.6.18
  [856f2bd8] + StructTypes v1.10.0
  [1e6cf692] + TestEnv v1.101.1
  [ddb6d928] + YAML v0.4.9
    Updating `~/repos/KiteUtils.jl/Manifest.toml`
⌅ [79e6a3ab] + Adapt v3.7.2
⌃ [4fba245c] + ArrayInterface v7.7.1
  [69666777] + Arrow v2.7.1
  [31f734f8] + ArrowTypes v2.3.0
  [c3b6d118] + BitIntegers v0.3.1
  [336ed68f] + CSV v0.10.13
  [5ba52731] + CodecLz4 v0.4.3
  [944b1d66] + CodecZlib v0.7.4
  [6b39b394] + CodecZstd v0.8.2
  [34da2185] + Compat v4.14.0
  [f0e56b4a] + ConcurrentUtilities v2.3.1
  [187b0558] + ConstructionBase v1.5.4
  [9a962f9c] + DataAPI v1.16.0
  [e2d170a0] + DataValueInterfaces v1.0.0
  [ffbed154] + DocStringExtensions v0.9.3
  [4e289a0a] + EnumX v1.0.4
  [e2ba6199] + ExprTools v0.1.10
  [48062228] + FilePathsBase v0.9.21
⌃ [46192b85] + GPUArraysCore v0.1.5
  [842dd82b] + InlineStrings v1.4.0
  [82899510] + IteratorInterfaceExtensions v1.0.0
  [692b3bcd] + JLLWrappers v1.5.0
  [e6f89c97] + LoggingExtras v1.0.3
  [78c3b35d] + Mocking v0.7.7
  [bac558e1] + OrderedCollections v1.6.3
  [d96e819e] + Parameters v0.12.3
  [69de0a69] + Parsers v2.8.1
  [2dfb63ee] + PooledArrays v1.4.3
  [aea7be01] + PrecompileTools v1.2.0
  [21216c6a] + Preferences v1.4.3
  [94ee1d12] + Quaternions v0.7.6
  [c1ae055f] + RealDot v0.1.0
  [3cdcf5f2] + RecipesBase v1.3.4
⌃ [731186ca] + RecursiveArrayTools v2.38.10
  [ae029012] + Requires v1.3.0
  [6038ab10] + Rotations v1.7.0
  [6c6a2e73] + Scratch v1.2.1
  [91c51154] + SentinelArrays v1.4.1
⌅ [90137ffa] + StaticArrays v1.5.12
  [1e83bf80] + StaticArraysCore v1.4.2
  [69024149] + StringEncodings v0.3.7
  [09ab397b] + StructArrays v0.6.18
  [856f2bd8] + StructTypes v1.10.0
⌅ [2efcf032] + SymbolicIndexingInterface v0.2.2
  [dc5dba14] + TZJData v1.1.0+2023d
  [3783bdb8] + TableTraits v1.0.1
  [bd369af6] + Tables v1.11.1
  [1e6cf692] + TestEnv v1.101.1
  [f269a46b] + TimeZones v1.13.0
  [3bb67fe8] + TranscodingStreams v0.10.4
  [3a884ed6] + UnPack v1.0.2
  [ea10d353] + WeakRefStrings v1.4.2
  [76eceee3] + WorkerUtilities v1.6.1
  [ddb6d928] + YAML v0.4.9
  [94ce4f54] + Libiconv_jll v1.17.0+0
  [5ced341a] + Lz4_jll v1.9.4+0
  [3161d3a3] + Zstd_jll v1.5.5+0
  [0dad84c5] + ArgTools v1.1.1
  [56f22d72] + Artifacts
  [2a0f44e3] + Base64
  [ade2ca70] + Dates
  [f43a241f] + Downloads v1.6.0
  [7b1f6079] + FileWatching
  [9fa8497b] + Future
  [b77e0a4c] + InteractiveUtils
  [4af54fe1] + LazyArtifacts
  [b27032c2] + LibCURL v0.6.4
  [76f85450] + LibGit2
  [8f399da3] + Libdl
  [37e2e46d] + LinearAlgebra
  [56ddb016] + Logging
  [d6f4376e] + Markdown
  [a63ad114] + Mmap
  [ca575930] + NetworkOptions v1.2.0
  [44cfe95a] + Pkg v1.10.0
  [de0858da] + Printf
  [3fa0cd96] + REPL
  [9a3f8284] + Random
  [ea8e919c] + SHA v0.7.0
  [9e88b42a] + Serialization
  [6462fe0b] + Sockets
  [2f01184e] + SparseArrays v1.10.0
  [10745b16] + Statistics v1.10.0
  [4607b0f0] + SuiteSparse
  [fa267f1f] + TOML v1.0.3
  [a4e569a6] + Tar v1.10.0
  [8dfed614] + Test
  [cf7118a7] + UUIDs
  [4ec0a83e] + Unicode
  [e66e0078] + CompilerSupportLibraries_jll v1.1.0+0
  [deac9b47] + LibCURL_jll v8.4.0+0
  [e37daf67] + LibGit2_jll v1.6.4+0
  [29816b5a] + LibSSH2_jll v1.11.0+1
  [c8ffd9c3] + MbedTLS_jll v2.28.2+1
  [14a3606d] + MozillaCACerts_jll v2023.1.10
  [4536629a] + OpenBLAS_jll v0.3.23+4
  [bea87d4a] + SuiteSparse_jll v7.2.1+1
  [83775a58] + Zlib_jll v1.2.13+1
  [8e850b90] + libblastrampoline_jll v5.8.0+1
  [8e850ede] + nghttp2_jll v1.52.0+1
  [3f19e933] + p7zip_jll v17.4.0+2
        Info Packages marked with ⌃ and ⌅ have new versions available. Those with ⌃ may be upgradable, but those with ⌅ are restricted by compatibility constraints from upgrading. To see why use `status --outdated -m`
Precompiling KiteUtils
  1 dependency successfully precompiled in 3 seconds. 37 already precompiled.

ERROR: The following 7 direct dependencies failed to precompile:

RecursiveArrayTools [731186ca-8d62-57ce-b412-fbd966d074cd]

Error: Missing source file for RecursiveArrayTools [731186ca-8d62-57ce-b412-fbd966d074cd]
Rotations [6038ab10-8711-5258-84ad-4b1120ba62dc]

Error: Missing source file for Rotations [6038ab10-8711-5258-84ad-4b1120ba62dc]

StructArrays [09ab397b-f2b6-538f-b94a-2f83cf4a842a]

Error: Missing source file for StructArrays [09ab397b-f2b6-538f-b94a-2f83cf4a842a]

YAML [ddb6d928-2868-570f-bddf-ab3f9cf99eb6]

Error: Missing source file for YAML [ddb6d928-2868-570f-bddf-ab3f9cf99eb6]

Parameters [d96e819e-fc66-5662-9728-84c9c7592b0a]

Error: Missing source file for Parameters [d96e819e-fc66-5662-9728-84c9c7592b0a]

StructTypes [856f2bd8-1eba-4b0a-8007-ebc267875bd4]

Error: Missing source file for StructTypes [856f2bd8-1eba-4b0a-8007-ebc267875bd4]

Arrow [69666777-d1a9-59fb-9406-91d4454c9d45]

Error: Missing source file for Arrow [69666777-d1a9-59fb-9406-91d4454c9d45]
Stacktrace:
  [1] pkgerror(msg::String)
    @ Pkg.Types ~/.julia/juliaup/julia-1.10.2+0.x64.linux.gnu/share/julia/stdlib/v1.10/Pkg/src/Types.jl:70
  [2] precompile(ctx::Pkg.Types.Context, pkgs::Vector{…}; internal_call::Bool, strict::Bool, warn_loaded::Bool, already_instantiated::Bool, timing::Bool, _from_loading::Bool, kwargs::@Kwargs{…})
    @ Pkg.API ~/.julia/juliaup/julia-1.10.2+0.x64.linux.gnu/share/julia/stdlib/v1.10/Pkg/src/API.jl:1659
  [3] precompile(pkgs::Vector{Pkg.Types.PackageSpec}; io::Base.TTY, kwargs::@Kwargs{_from_loading::Bool})
    @ Pkg.API ~/.julia/juliaup/julia-1.10.2+0.x64.linux.gnu/share/julia/stdlib/v1.10/Pkg/src/API.jl:159
  [4] precompile
    @ ~/.julia/juliaup/julia-1.10.2+0.x64.linux.gnu/share/julia/stdlib/v1.10/Pkg/src/API.jl:147 [inlined]
  [5] #precompile#114
    @ ~/.julia/juliaup/julia-1.10.2+0.x64.linux.gnu/share/julia/stdlib/v1.10/Pkg/src/API.jl:146 [inlined]
  [6] #invokelatest#2
    @ ./essentials.jl:894 [inlined]
  [7] invokelatest
    @ ./essentials.jl:889 [inlined]
  [8] _require(pkg::Base.PkgId, env::String)
    @ Base ./loading.jl:1963
  [9] __require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base ./loading.jl:1812
 [10] #invoke_in_world#3
    @ ./essentials.jl:926 [inlined]
 [11] invoke_in_world
    @ ./essentials.jl:923 [inlined]
 [12] _require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base ./loading.jl:1803
 [13] macro expansion
    @ ./loading.jl:1790 [inlined]
 [14] macro expansion
    @ ./lock.jl:267 [inlined]
 [15] __require(into::Module, mod::Symbol)
    @ Base ./loading.jl:1753
 [16] #invoke_in_world#3
    @ ./essentials.jl:926 [inlined]
 [17] invoke_in_world
    @ ./essentials.jl:923 [inlined]
 [18] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:1746
Some type information was truncated. Use `show(err)` to see complete types.

I then switched back to Julia 1.10.1:

juliaup add 1.10.1
juliaup default 1.10.1

and the error disappeared…

Created a bug report: Error missing source file while precompiling on 1.10.2 · Issue #53623 · JuliaLang/julia · GitHub