You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and when running report_package there is an error since in JET's scope, pkgdir() obviously returns nothing and then joindir fails due to the missing method:
julia> using JET
julia> report_package("Foo")
[toplevel-info] virtualized the context of Main (took 0.008 sec)
[toplevel-info] entered into /Users/tamasgal/tmp/jet/Foo/src/Foo.jl
[toplevel-info] exited from /Users/tamasgal/tmp/jet/Foo/src/Foo.jl (took 1.614 sec)
═════ 1 toplevel error found ═════
┌ @ /Users/tamasgal/tmp/jet/Foo/src/Foo.jl:3
│ MethodError: no method matching joinpath(::Nothing, ::String)
│
│ Closest candidates are:
│ joinpath(::AbstractString...)
│ @ Base path.jl:327
└─────────────────────
julia>
A bit of a background story: one of my packages uses the following top-level line to get access to its own version which is needed for metadata in files the package generates:
const version = VersionNumber(Pkg.TOML.parsefile(joinpath(pkgdir(KM3io), "Project.toml"))["version"])
I am not able to evaluate anything further because JET stops at this line.
Side quest: I am open for any suggestions how to obtain the version number 😉
The text was updated successfully, but these errors were encountered:
I have the following dummy package as MWE:
and when running
report_package
there is an error since in JET's scope,pkgdir()
obviously returnsnothing
and thenjoindir
fails due to the missing method:A bit of a background story: one of my packages uses the following top-level line to get access to its own version which is needed for metadata in files the package generates:
I am not able to evaluate anything further because JET stops at this line.
Side quest: I am open for any suggestions how to obtain the version number 😉
The text was updated successfully, but these errors were encountered: