Skip to content

1.13 (and also 1.12.4): UndefVarError: project_rel_path not defined in TestEnv #103

@maleadt

Description

@maleadt
UndefVarError: `project_rel_path` not defined in `TestEnv`
Suggestion: this global was defined as `Pkg.Operations.project_rel_path` but not assigned a value.
Stacktrace:
  [1] get_test_dir(ctx::Pkg.Types.Context, pkgspec::PackageSpec)
    @ TestEnv ~/.julia/packages/TestEnv/i9lgt/src/julia-1.11/common.jl:75
  [2] test_dir_has_project_file
    @ ~/.julia/packages/TestEnv/i9lgt/src/julia-1.11/common.jl:52 [inlined]
  [3] maybe_gen_project_override!
    @ ~/.julia/packages/TestEnv/i9lgt/src/julia-1.11/common.jl:83 [inlined]
  [4] activate(pkg::String; allow_reresolve::Bool)
    @ TestEnv ~/.julia/packages/TestEnv/i9lgt/src/julia-1.11/activate_set.jl:12
  [5] activate(pkg::String)
    @ TestEnv ~/.julia/packages/TestEnv/i9lgt/src/julia-1.11/activate_set.jl:9
  [6] (::var"#7#8")()
    @ Main /PkgEval.jl/scripts/precompile.jl:44
  [7] #suppress_pkg_output##0
    @ /PkgEval.jl/scripts/precompile.jl:14 [inlined]
  [8] with(::var"#suppress_pkg_output##0#suppress_pkg_output##1"{var"#7#8"}, ::Pair{Base.ScopedValues.ScopedValue{IO}, Base.DevNull})
    @ Base.ScopedValues ./scopedvalues.jl:324
  [9] suppress_pkg_output(f::var"#7#8")
    @ Main /PkgEval.jl/scripts/precompile.jl:13
 [10] top-level scope
    @ /PkgEval.jl/scripts/precompile.jl:42
 [11] include(mod::Module, _path::String)
    @ Base ./Base.jl:309
 [12] exec_options(opts::Base.JLOptions)
    @ Base ./client.jl:344
 [13] _start()
    @ Base ./client.jl:577

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions