Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
ufechner7 opened this issue Sep 17, 2022 · 2 comments · Fixed by #9
Closed

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

ufechner7 opened this issue Sep 17, 2022 · 2 comments · Fixed by #9
Labels
enhancement New feature or request

Comments

@ufechner7
Copy link

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> 
@petvana petvana added the enhancement New feature or request label Sep 18, 2022
@ufechner7
Copy link
Author

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

@ufechner7
Copy link
Author

ufechner7 commented Sep 18, 2022

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"]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants