-
Notifications
You must be signed in to change notification settings - Fork 20
Closed
spine-tools/Spine-Toolbox
#3066Description
Describe the bug
I had a Julia Environment with SpineOpt v0.9.2 installed. Trying to upgrade it to 0.10.0 using Pkg.update("SpineOpt")
did nothing.
To Reproduce
See listing below.
Expected behavior
SpineOpt should have been updated to 0.10.0. Instead, the version remained in 0.9.2.
Desktop
- Which SpineOpt version? 0.9.2
- Which toolbox version? Latest master
- OS: Win11
Listing from cmd.exe running Julia v1.10
C:\data\JuliaProjects\SpineOptProject>c:\Users\ttepsa\AppData\Local\julias\julia-1.10\bin\julia.exe
_
_ _ _(_)_ | Documentation: https://docs.julialang.org
(_) | (_) (_) |
_ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 1.10.5 (2024-08-27)
_/ |\__'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |
julia> using Pkg
julia> Pkg.activate(".")
Activating project at `C:\data\JuliaProjects\SpineOptProject`
julia> Pkg.installed()
┌ Warning: Pkg.installed() is deprecated
└ @ Pkg c:\Users\ttepsa\AppData\Local\julias\julia-1.10\share\julia\stdlib\v1.10\Pkg\src\Pkg.jl:750
Dict{String, VersionNumber} with 3 entries:
"PackageCompiler" => v"2.2.0"
"IJulia" => v"1.26.0"
"SpineOpt" => v"0.9.2"
julia> Pkg.update("SpineOpt")
Updating registry at `C:\Users\ttepsa\.julia\registries\General.toml`
No Changes to `C:\data\JuliaProjects\SpineOptProject\Project.toml`
No Changes to `C:\data\JuliaProjects\SpineOptProject\Manifest.toml`
julia> Pkg.installed()
┌ Warning: Pkg.installed() is deprecated
└ @ Pkg c:\Users\ttepsa\AppData\Local\julias\julia-1.10\share\julia\stdlib\v1.10\Pkg\src\Pkg.jl:750
Dict{String, VersionNumber} with 3 entries:
"PackageCompiler" => v"2.2.0"
"IJulia" => v"1.26.0"
"SpineOpt" => v"0.9.2"
julia> Pkg.Registry.update()
Updating registry at `C:\Users\ttepsa\.julia\registries\General.toml`
julia> Pkg.update("SpineOpt")
Updating registry at `C:\Users\ttepsa\.julia\registries\General.toml`
Resolving package versions...
No Changes to `C:\data\JuliaProjects\SpineOptProject\Project.toml`
No Changes to `C:\data\JuliaProjects\SpineOptProject\Manifest.toml`
julia> Pkg.installed()
┌ Warning: Pkg.installed() is deprecated
└ @ Pkg c:\Users\ttepsa\AppData\Local\julias\julia-1.10\share\julia\stdlib\v1.10\Pkg\src\Pkg.jl:750
Dict{String, VersionNumber} with 3 entries:
"PackageCompiler" => v"2.2.0"
"IJulia" => v"1.26.0"
"SpineOpt" => v"0.9.2"
julia> Pkg.status("SpineOpt")
Project SpineOptProject v0.1.0
Status `C:\data\JuliaProjects\SpineOptProject\Project.toml`
⌃ [0d8fc150] SpineOpt v0.9.2
Info Packages marked with ⌃ have new versions available and may be upgradable.
julia> Pkg.update("SpineOpt")
Updating registry at `C:\Users\ttepsa\.julia\registries\General.toml`
No Changes to `C:\data\JuliaProjects\SpineOptProject\Project.toml`
No Changes to `C:\data\JuliaProjects\SpineOptProject\Manifest.toml`
julia> Pkg.status()
Project SpineOptProject v0.1.0
Status `C:\data\JuliaProjects\SpineOptProject\Project.toml`
[7073ff75] IJulia v1.26.0
[9b87118b] PackageCompiler v2.2.0
⌃ [0d8fc150] SpineOpt v0.9.2
Info Packages marked with ⌃ have new versions available and may be upgradable.
julia> Pkg.update()
Updating registry at `C:\Users\ttepsa\.julia\registries\General.toml`
Installed libsodium_jll ─ v1.0.21+0
Installed ZeroMQ_jll ──── v4.3.6+0
Downloaded artifact: ZeroMQ
Downloaded artifact: libsodium
Updating `C:\data\JuliaProjects\SpineOptProject\Project.toml`
[0d8fc150] ↑ SpineOpt v0.9.2 ⇒ v0.10.0
Updating `C:\data\JuliaProjects\SpineOptProject\Manifest.toml`
[31c24e10] ↑ Distributions v0.25.117 ⇒ v0.25.118
[87dc4568] ↑ HiGHS v1.13.0 ⇒ v1.14.0
[b8f27783] ↑ MathOptInterface v1.37.0 ⇒ v1.37.2
[ae029012] ↑ Requires v1.3.0 ⇒ v1.3.1
[0cda1612] ↑ SpineInterface v0.15.1 ⇒ v0.15.2
[0d8fc150] ↑ SpineOpt v0.9.2 ⇒ v0.10.0
[f269a46b] ↑ TimeZones v1.21.2 ⇒ v1.21.3
[8f1865be] ↑ ZeroMQ_jll v4.3.5+3 ⇒ v4.3.6+0
[a9144af2] ↑ libsodium_jll v1.0.20+3 ⇒ v1.0.21+0
Precompiling project...
4 dependencies successfully precompiled in 5 seconds. 101 already precompiled.
julia> Pkg.installed()
┌ Warning: Pkg.installed() is deprecated
└ @ Pkg c:\Users\ttepsa\AppData\Local\julias\julia-1.10\share\julia\stdlib\v1.10\Pkg\src\Pkg.jl:750
Dict{String, VersionNumber} with 3 entries:
"PackageCompiler" => v"2.2.0"
"IJulia" => v"1.26.0"
"SpineOpt" => v"0.10.0"
julia>
In short, Pkg.update()
did the trick eventually, but I was wondering if the problem that Pkg.update("SpineOpt")
did not work was because SpineInterface was outdated and if so, should SpineInterface be automatically updated first? Otherwise, we probably need to revise the upgrade instructions on SpineOpt docs and I have to fix the Add/Update SpineOpt Wizard on Spine Toolbox side.
Metadata
Metadata
Assignees
Labels
No labels