Using VSCode I right click on runtests.jl and select Julia: Execute File in REPL. I obtain the following error and then try a few more commands as follows:
ERROR: LoadError: ArgumentError: Package Aqua not found in current path.
- Run `import Pkg; Pkg.add("Aqua")` to install the Aqua package.
Stacktrace:
[1] macro expansion
@ .\loading.jl:2403 [inlined]
[2] macro expansion
@ .\lock.jl:376 [inlined]
[3] __require(into::Module, mod::Symbol)
@ Base .\loading.jl:2386
[4] require(into::Module, mod::Symbol)
@ Base .\loading.jl:2362
[5] include(mapexpr::Function, mod::Module, _path::String)
@ Base .\Base.jl:307
[6] top-level scope
@ c:\Users\jakez\.julia\dev\Gantner\test\runtests.jl:5
in expression starting at c:\Users\jakez\.julia\dev\Gantner\test\Aqua.jl:1
(Gantner) pkg> activate test
Activating project at `C:\Users\jakez\.julia\dev\Gantner\test`
(test) pkg> st
Status `C:\Users\jakez\.julia\dev\Gantner\test\Project.toml`
[4c88cf16] Aqua v0.8.14
[f686b519] Gantner v0.1.1 `..`
[ade2ca70] Dates v1.11.0
[8dfed614] Test v1.11.0
(test) pkg> test
ERROR: The Project.toml of the package being tested must have a name and a UUID entry
(test) pkg>
The runtests.jl file starts as:
using Dates
using Gantner
using Test
include("Aqua.jl")
And Aqua.jl is:
using Aqua
@testset "Aqua.jl" begin
Aqua.test_all(Gantner; deps_compat=(ignore=[:Dates],))
end
I am not sure what is happening here, as the test Project.toml indicates that Aqua is present. And Aqua is registered in the Local Registry. The complete package is here.
Edit! I edited the include statement in Gantner from the line commented out to the current line as shown below.
#include(joinpath(@__DIR__, "read_exact.jl"))
include("read_exact.jl")
Now if I go ]test the tests complete but right clicking on runtests.jl gives the same error as before.