Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Misleading error message with malformed Manifest.toml #4173

Open
giordano opened this issue Feb 25, 2025 · 0 comments
Open

Misleading error message with malformed Manifest.toml #4173

giordano opened this issue Feb 25, 2025 · 0 comments

Comments

@giordano
Copy link
Contributor

I got the following malformed manifest while dealing with git conflicts: https://github.com/JuliaPackaging/Yggdrasil/blob/e5b0900dbc69d7c59ab7ce146d9ba9285ee9c0df/.ci/Manifest.toml. My fault. But Pkg (using current julia master) complains with a particularly misleading error message:

ERROR: expected a single entry for "StyledStrings" in "/cache/build/yggy-amdci7-3/julialang/yggdrasil/.ci/Project.toml"
Stacktrace:
  [1] error(s::String)
    @ Base ./error.jl:44
  [2] explicit_manifest_deps_get(project_file::String, where::Base.PkgId, name::String)
    @ Base ./loading.jl:1035
  [3] manifest_deps_get(env::String, where::Base.PkgId, name::String)
    @ Base ./loading.jl:734
  [4] identify_package_env(where::Base.PkgId, name::String)
    @ Base ./loading.jl:347
  [5] identify_package
    @ ./loading.jl:430 [inlined]
  [6] stale_cachefile(modkey::Base.PkgId, build_id::UInt128, modpath::String, cachefile::String; ignore_loaded::Bool, requested_flags::Base.CacheFlags, reasons::Nothing, stalecheck::Bool)
    @ Base ./loading.jl:4095
  [7] stale_cachefile
    @ ./loading.jl:3947 [inlined]
  [8] _require_search_from_serialized(pkg::Base.PkgId, sourcepath::String, build_id::UInt128, stalecheck::Bool; reasons::Dict{String, Int64}, DEPOT_PATH::Vector{String})
    @ Base ./loading.jl:2082
  [9] __require_prelocked(pkg::Base.PkgId, env::String)
    @ Base ./loading.jl:2630
 [10] _require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base ./loading.jl:2493
 [11] macro expansion
    @ ./loading.jl:2421 [inlined]
 [12] macro expansion
    @ ./lock.jl:376 [inlined]
 [13] __require(into::Module, mod::Symbol)
    @ Base ./loading.jl:2386
 [14] #invoke_in_world#2
    @ ./essentials.jl:1125 [inlined]
 [15] invoke_in_world
    @ ./essentials.jl:1121 [inlined]
 [16] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:2366
 [17] eval(m::Module, e::Any)
    @ Core ./boot.jl:488
 [18] exec_options(opts::Base.JLOptions)
    @ Base ./client.jl:294
 [19] _start()
    @ Base ./client.jl:560

but the problem is the Manifest.toml file, not the Project.toml.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant