# Tests don'r run anymore because "sourcepath !== nothing"

**URL:** <https://discourse.julialang.org/t/tests-donr-run-anymore-because-sourcepath-nothing/58959>\
**Category:** General Usage\
**Created:** [April 10, 2021, 1:19am UTC](https://discourse.julialang.org/t/tests-donr-run-anymore-because-sourcepath-nothing/58959 "2021-04-10T01:19:05Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![joa-quim](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/joa-quim/32/227_2.png) [@joa-quim](https://discourse.julialang.org/u/joa-quim)\
**Post date:** [April 10, 2021, 1:19am UTC](https://discourse.julialang.org/t/tests-donr-run-anymore-because-sourcepath-nothing/58959/1 "2021-04-10T01:19:05Z")

</div>

This happened first with Julia 1.5, now with Julia 1.6, i only have left Julia-DEV

```julia
(@tomls) pkg> test GMT
ERROR: AssertionError: sourcepath !== nothing
Stacktrace:
  [1] is_package_downloaded(ctx::Pkg.Types.Context, pkg::Pkg.Types.PackageSpec)
    @ Pkg.Operations C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Pkg\src\Operations.jl:1780
  [2] #13
    @ C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Pkg\src\Operations.jl:130 [inlined]
  [3] _all
    @ .\reduce.jl:923 [inlined]
  [4] #all#698
    @ .\reducedim.jl:886 [inlined]
  [5] all
    @ .\reducedim.jl:886 [inlined]
  [6] is_instantiated(ctx::Pkg.Types.Context)
...

```

---

<div class="post-metadata">

**Author:** ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)\
**Post date:** [April 10, 2021, 2:00am UTC](https://discourse.julialang.org/t/tests-donr-run-anymore-because-sourcepath-nothing/58959/2 "2021-04-10T02:00:14Z")

</div>

You’re probably using a manifest generated with a different version of Julia. Delete it.

---

<div class="post-metadata">

**Author:** ![joa-quim](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/joa-quim/32/227_2.png) [@joa-quim](https://discourse.julialang.org/u/joa-quim)\
**Post date:** [April 10, 2021, 5:59pm UTC](https://discourse.julialang.org/t/tests-donr-run-anymore-because-sourcepath-nothing/58959/3 "2021-04-10T17:59:56Z")

</div>

Don’t know which Manifest you refer to. The package didn’t have a Manifest. Ended up nuking the `.julia` (not fun).

---

<div class="post-metadata">

**Author:** ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)\
**Post date:** [April 10, 2021, 6:18pm UTC](https://discourse.julialang.org/t/tests-donr-run-anymore-because-sourcepath-nothing/58959/4 "2021-04-10T18:18:06Z")

</div>

> [@joa-quim](#):
>
> Don’t know which Manifest you refer to.

I don’t know that to say. People should report issues to `Pkg.jl` when it gives unhelpful error messages, like [Unhelpful error message about failure to parse compatibility version · Issue #1853 · JuliaLang/Pkg.jl · GitHub](https://github.com/JuliaLang/Pkg.jl/issues/1853). Nuking `.julia` and moving on is not going to fix anything if `Pkg` developers aren’t reminded of these usability issues.

---

<div class="post-metadata">

**Author:** ![joa-quim](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/joa-quim/32/227_2.png) [@joa-quim](https://discourse.julialang.org/u/joa-quim)\
**Post date:** [April 11, 2021, 1:31am UTC](https://discourse.julialang.org/t/tests-donr-run-anymore-because-sourcepath-nothing/58959/5 "2021-04-11T01:31:53Z")

</div>

Sorry, you are right but I needed to have this issue solved and didn’t think on it.

---

<div class="post-metadata">

**Author:** ![joa-quim](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/joa-quim/32/227_2.png) [@joa-quim](https://discourse.julialang.org/u/joa-quim)\
**Post date:** [April 13, 2021, 10:16pm UTC](https://discourse.julialang.org/t/tests-donr-run-anymore-because-sourcepath-nothing/58959/6 "2021-04-13T22:16:50Z")

</div>

Ok, got the error again. How can I help solving it?

```julia
(@tomls) pkg> test GMT
ERROR: AssertionError: sourcepath !== nothing
Stacktrace:
  [1] is_package_downloaded(ctx::Pkg.Types.Context, pkg::Pkg.Types.PackageSpec)
    @ Pkg.Operations C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Pkg\src\Operations.jl:1780
  [2] #13
    @ C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Pkg\src\Operations.jl:130 [inlined]
  [3] _all
    @ .\reduce.jl:923 [inlined]
  [4] #all#698
    @ .\reducedim.jl:886 [inlined]
  [5] all
    @ .\reducedim.jl:886 [inlined]
  [6] is_instantiated(ctx::Pkg.Types.Context)
    @ Pkg.Operations C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Pkg\src\Operations.jl:130
  [7] instantiate(ctx::Pkg.Types.Context; manifest::Nothing, update_registry::Bool, verbose::Bool, platform::Base.BinaryPlatforms.Platform, allow_autoprecomp::Bool, kwargs::Base.Iterators.Pairs{Union{}, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
    @ Pkg.API C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Pkg\src\API.jl:1307
  [8] test(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}; coverage::Bool, julia_args::Cmd, test_args::Cmd, test_fn::Nothing)
    @ Pkg.Operations C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Pkg\src\Operations.jl:1621
  [9] test(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}; coverage::Bool, test_fn::Nothing, julia_args::Cmd, test_args::Cmd, kwargs::Base.Iterators.Pairs{Union{}, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
    @ Pkg.API C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Pkg\src\API.jl:336
 [10] test(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec})
    @ Pkg.API C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Pkg\src\API.jl:323
 [11] #test#62
    @ C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Pkg\src\API.jl:73 [inlined]
 [12] test(pkgs::Vector{Pkg.Types.PackageSpec})
    @ Pkg.API C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Pkg\src\API.jl:72
 [13] do_cmd!(command::Pkg.REPLMode.Command, repl::REPL.LineEditREPL)
    @ Pkg.REPLMode C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Pkg\src\REPLMode\REPLMode.jl:408
 [14] do_cmd(repl::REPL.LineEditREPL, input::String; do_rethrow::Bool)
    @ Pkg.REPLMode C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Pkg\src\REPLMode\REPLMode.jl:386
 [15] do_cmd
    @ C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Pkg\src\REPLMode\REPLMode.jl:377 [inlined]
 [16] (::Pkg.REPLMode.var"#24#27"{REPL.LineEditREPL, REPL.LineEdit.Prompt})(s::REPL.LineEdit.MIState, buf::IOBuffer, ok::Bool)
    @ Pkg.REPLMode C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Pkg\src\REPLMode\REPLMode.jl:550
 [17] #invokelatest#2
    @ .\essentials.jl:708 [inlined]
 [18] invokelatest
    @ .\essentials.jl:706 [inlined]
 [19] run_interface(terminal::REPL.Terminals.TextTerminal, m::REPL.LineEdit.ModalInterface, s::REPL.LineEdit.MIState)
    @ REPL.LineEdit C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\REPL\src\LineEdit.jl:2441
 [20] run_frontend(repl::REPL.LineEditREPL, backend::REPL.REPLBackendRef)
    @ REPL C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\REPL\src\REPL.jl:1126
 [21] (::REPL.var"#44#49"{REPL.LineEditREPL, REPL.REPLBackendRef})()
    @ REPL .\task.jl:406

```

---

<div class="post-metadata">

**Author:** ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)\
**Post date:** [April 13, 2021, 11:42pm UTC](https://discourse.julialang.org/t/tests-donr-run-anymore-because-sourcepath-nothing/58959/7 "2021-04-13T23:42:35Z")

</div>

Open an issue in Pkg. The very first problem at this point is that we don’t even know what manifest is triggering the issue. Maybe the one of the `@tomls` environment? Who knows, it isn’t written anywhere.

---

<div class="post-metadata">

**Author:** ![joa-quim](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/joa-quim/32/227_2.png) [@joa-quim](https://discourse.julialang.org/u/joa-quim)\
**Post date:** [April 14, 2021, 12:05am UTC](https://discourse.julialang.org/t/tests-donr-run-anymore-because-sourcepath-nothing/58959/8 "2021-04-14T00:05:30Z")

</div>

Done.

---

<div class="post-metadata">

**Author:** ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)\
**Post date:** [April 14, 2021, 12:11am UTC](https://discourse.julialang.org/t/tests-donr-run-anymore-because-sourcepath-nothing/58959/9 "2021-04-14T00:11:25Z")

</div>

I read in [the issue](https://github.com/JuliaLang/Pkg.jl/issues/2513)

> Currently, 1.5, 1.6 and 1.7DEV and have been doing this for a long time but now, possibly related to something new in 1.7DEV I’m getting this error when trying to run the tests in either julia1.5 or 1.6

As I already said above, manifests are specific to a minor version of Julia. You can’t expect to share them across multiple minor versions. That’s a matter of fact and something that is likely not going to be fixed: manifests are for reproducibility with a specific minor Julia version.

For me the issue is that Pkg doesn’t clearly tell what file is causing the issue.

---

<div class="post-metadata">

**Author:** ![joa-quim](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/joa-quim/32/227_2.png) [@joa-quim](https://discourse.julialang.org/u/joa-quim)\
**Post date:** [April 14, 2021, 12:21am UTC](https://discourse.julialang.org/t/tests-donr-run-anymore-because-sourcepath-nothing/58959/10 "2021-04-14T00:21:09Z")

</div>

But I’ve been doing that for years and only more recently things broke.  
I don’ want to have to reinstall everything (packages) every time I update Julia.

---

<div class="post-metadata">

**Author:** ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)\
**Post date:** [April 14, 2021, 12:24am UTC](https://discourse.julialang.org/t/tests-donr-run-anymore-because-sourcepath-nothing/58959/11 "2021-04-14T00:24:01Z")

</div>

> [@joa-quim](#):
>
> But I’ve been doing that for years and only more recently things broke.

Things “break” especially when standard libraries change between minor versions. They changed a lot between v1.5 and v1.7. You’ve been only lucky before because there is no guarantee that a manifest can be instantiated with a different minor version of Julia.

> [@joa-quim](#):
>
> I don’ want to have to reinstall everything (packages) every time I update Julia.

Who said you have to?
