benjamin@benjamin-pc:~/Projets/test$ julia
_
_ _ _(_)_ | Documentation: https://docs.julialang.org
(_) | (_) (_) |
_ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 1.4.2 (2020-05-23)
_/ |\__'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |
(@v1.4) pkg> generate GoodPackage
Generating project GoodPackage:
GoodPackage/Project.toml
GoodPackage/src/GoodPackage.jl
(@v1.4) pkg> generate BadPackæge
Generating project BadPackæge:
BadPackæge/Project.toml
BadPackæge/src/BadPackæge.jl
(@v1.4) pkg> activate GoodPackage
Activating environment at `~/Projets/test/GoodPackage/Project.toml`
julia> cd("GoodPackage/")
(GoodPackage) pkg> activate ./test
Activating new environment at `~/Projets/test/GoodPackage/test/Project.toml`
(test) pkg> add Test
Updating registry at `~/.julia/registries/General`
Updating git-repo `https://github.com/JuliaRegistries/General.git`
Resolving package versions...
Updating `~/Projets/test/GoodPackage/test/Project.toml`
[8dfed614] + Test
Updating `~/Projets/test/GoodPackage/test/Manifest.toml`
[2a0f44e3] + Base64
[8ba89e20] + Distributed
[b77e0a4c] + InteractiveUtils
[56ddb016] + Logging
[d6f4376e] + Markdown
[9a3f8284] + Random
[9e88b42a] + Serialization
[6462fe0b] + Sockets
[8dfed614] + Test
julia> println(read("test/runtests.jl", String))
using Test
using GoodPackage
GoodPackage.greet()
@test true
(test) pkg> activate .
Activating environment at `~/Projets/test/GoodPackage/Project.toml`
(GoodPackage) pkg> test
Updating registry at `~/.julia/registries/General`
Updating git-repo `https://github.com/JuliaRegistries/General.git`
Updating `~/Projets/test/GoodPackage/Project.toml`
[no changes]
Updating `~/Projets/test/GoodPackage/Manifest.toml`
[no changes]
Testing GoodPackage
Status `/tmp/jl_yTuxRY/Manifest.toml`
[d2c24135] GoodPackage v0.1.0 [`~/Projets/test/GoodPackage`]
[2a0f44e3] Base64
[8ba89e20] Distributed
[b77e0a4c] InteractiveUtils
[56ddb016] Logging
[d6f4376e] Markdown
[9a3f8284] Random
[9e88b42a] Serialization
[6462fe0b] Sockets
[8dfed614] Test
Hello World! Testing GoodPackage tests passed
julia> cd("..")
(GoodPackage) pkg> activate BadPackæge
Activating environment at `~/Projets/test/BadPackæge/Project.toml`
julia> cd("BadPackæge/")
(BadPackæge) pkg> activate ./test
Activating new environment at `~/Projets/test/BadPackæge/test/Project.toml`
(test) pkg> add Test
Resolving package versions...
Updating `~/Projets/test/BadPackæge/test/Project.toml`
[8dfed614] + Test
Updating `~/Projets/test/BadPackæge/test/Manifest.toml`
[2a0f44e3] + Base64
[8ba89e20] + Distributed
[b77e0a4c] + InteractiveUtils
[56ddb016] + Logging
[d6f4376e] + Markdown
[9a3f8284] + Random
[9e88b42a] + Serialization
[6462fe0b] + Sockets
[8dfed614] + Test
julia> println(read("test/runtests.jl", String))
using Test
using BadPackæge
BadPackæge.greet()
@test true
(test) pkg> activate .
Activating environment at `~/Projets/test/BadPackæge/Project.toml`
(BadPackæge) pkg> test
Updating registry at `~/.julia/registries/General`
Updating git-repo `https://github.com/JuliaRegistries/General.git`
Updating `~/Projets/test/BadPackæge/Project.toml`
[no changes]
Updating `~/Projets/test/BadPackæge/Manifest.toml`
[no changes]
Testing BadPackæge
Status `/tmp/jl_eVXLCZ/Manifest.toml`
[de51fa18] BadPackæge v0.1.0 [`~/Projets/test/BadPackæge`]
[2a0f44e3] Base64
[8ba89e20] Distributed
[b77e0a4c] InteractiveUtils
[56ddb016] Logging
[d6f4376e] Markdown
[9a3f8284] Random
[9e88b42a] Serialization
[6462fe0b] Sockets
[8dfed614] Test
ERROR: LoadError: ArgumentError: Package BadPackæge not found in current path:
- Run `import Pkg; Pkg.add("BadPackæge")` to install the BadPackæge package.
Stacktrace:
[1] require(::Module, ::Symbol) at ./loading.jl:892
[2] include(::String) at ./client.jl:439
[3] top-level scope at none:6
in expression starting at /home/benjamin/Projets/test/BadPackæge/test/runtests.jl:2
ERROR: Package BadPackæge errored during testing
(BadPackæge) pkg>
So, because of the æ character in package name (mine starts by Œ, but I renamed it to make it easier, which was not the best idea here), seemingly unrelated error is thrown.
Thank you. It was a good advice to try to restart a test project to compare little by little.
I created an issue on Julia Github for that.