petvana/AutoSysimages.jl

Warning: Function 'pkgversion' is needed to check versions.

Closed this issue · 2 comments

When launching asysimg I get the following warning:

ufechner@TUD277255:~/repos/Plotting$ asysimg 
┌ Info: The package AutoSysimages.jl started!
│  Loaded sysimage:    /home/ufechner/.julia/asysimg/1.8.1/1wTEXm/asysimg-2022-09-17T12-51-08.314.so
│  Active directory:   /home/ufechner/.julia/asysimg/1.8.1/1wTEXm
│  Global snoop file:  /home/ufechner/.julia/asysimg/1.8.1/1wTEXm/snoop-file.jl
└  Tmp. snoop file:    /tmp/jl_fi3s5sV0Nu-snoop.jl
┌ Warning: Function 'pkgversion' is needed to check versions.
└ @ AutoSysimages ~/.julia/packages/AutoSysimages/LTaGS/src/AutoSysimages.jl:375
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.8.1 (2022-09-06)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

asysimg> 

Where is this function coming from? Is it from Julia 1.9?

What about using this for Julia < 1.9:

pkgversion(m::Module) = Pkg.TOML.parsefile(joinpath(dirname(string(first(methods(m.eval)).file)), "..", "Project.toml"))["version"]