Skip to content

UndefVarError: reset! not defined in DCISolver when updating to SolverCore 0.3.9 #181

@amontoison

Description

@amontoison

Description

Error with SolverCore.jl v0.3.9 (JuliaSmoothOptimizers/SolverCore.jl#119).

    Testing Running tests...
Allocs: Error During Test at /home/alexis/Bureau/git/DCISolver.jl/test/runtests.jl:21
  Got exception outside of a @test
  LoadError: UndefVarError: `reset!` not defined in `DCISolver`
  Stacktrace:
    [1] solve!(workspace::DCISolver.DCIWorkspace{Float64, Vector{Float64}, Vector{Int64}, LinearOperators.LinearOperator{Float64, Int64, NLPModels.var"#5#7"{MGH01Feas{Float64, Vector{Float64}}, Vector{Float64}, Vector{Float64}, typeof(*), typeof(+)}, NLPModels.var"#6#8"{MGH01Feas{Float64, Vector{Float64}}, Vector{Float64}, Vector{Float64}, typeof(*), typeof(+)}, NLPModels.var"#6#8"{MGH01Feas{Float64, Vector{Float64}}, Vector{Float64}, Vector{Float64}, typeof(*), typeof(+)}, Vector{Float64}}, Int64, LDLFactorizationStruct}, nlp::MGH01Feas{Float64, Vector{Float64}}, stats::GenericExecutionStats{Float64, Vector{Float64}, Vector{Float64}, Any}; callback::DCISolver.var"#10#12", kwargs::@Kwargs{})
      @ DCISolver ~/Bureau/git/DCISolver.jl/src/main.jl:15
    [2] solve!
      @ ~/Bureau/git/DCISolver.jl/src/main.jl:1 [inlined]
    [3] var"##core#236"(solver#233::DCISolver.DCIWorkspace{Float64, Vector{Float64}, Vector{Int64}, LinearOperators.LinearOperator{Float64, Int64, NLPModels.var"#5#7"{MGH01Feas{Float64, Vector{Float64}}, Vector{Float64}, Vector{Float64}, typeof(*), typeof(+)}, NLPModels.var"#6#8"{MGH01Feas{Float64, Vector{Float64}}, Vector{Float64}, Vector{Float64}, typeof(*), typeof(+)}, NLPModels.var"#6#8"{MGH01Feas{Float64, Vector{Float64}}, Vector{Float64}, Vector{Float64}, typeof(*), typeof(+)}, Vector{Float64}}, Int64, LDLFactorizationStruct}, nlp#234::MGH01Feas{Float64, Vector{Float64}}, stats#235::GenericExecutionStats{Float64, Vector{Float64}, Vector{Float64}, Any})
      @ Main ~/.julia/packages/BenchmarkTools/2di2E/src/execution.jl:598
    [4] var"##sample#237"(::Tuple{DCISolver.DCIWorkspace{Float64, Vector{Float64}, Vector{Int64}, LinearOperators.LinearOperator{Float64, Int64, NLPModels.var"#5#7"{MGH01Feas{Float64, Vector{Float64}}, Vector{Float64}, Vector{Float64}, typeof(*), typeof(+)}, NLPModels.var"#6#8"{MGH01Feas{Float64, Vector{Float64}}, Vector{Float64}, Vector{Float64}, typeof(*), typeof(+)}, NLPModels.var"#6#8"{MGH01Feas{Float64, Vector{Float64}}, Vector{Float64}, Vector{Float64}, typeof(*), typeof(+)}, Vector{Float64}}, Int64, LDLFactorizationStruct}, MGH01Feas{Float64, Vector{Float64}}, GenericExecutionStats{Float64, Vector{Float64}, Vector{Float64}, Any}}, __params::BenchmarkTools.Parameters)
      @ Main ~/.julia/packages/BenchmarkTools/2di2E/src/execution.jl:607
    [5] _lineartrial(b::BenchmarkTools.Benchmark, p::BenchmarkTools.Parameters; maxevals::Int64, kwargs::@Kwargs{})
      @ BenchmarkTools ~/.julia/packages/BenchmarkTools/2di2E/src/execution.jl:186
    [6] _lineartrial(b::BenchmarkTools.Benchmark, p::BenchmarkTools.Parameters)
      @ BenchmarkTools ~/.julia/packages/BenchmarkTools/2di2E/src/execution.jl:181
    [7] #invokelatest#2
      @ ./essentials.jl:1055 [inlined]
    [8] invokelatest
      @ ./essentials.jl:1052 [inlined]
    [9] #lineartrial#46
      @ ~/.julia/packages/BenchmarkTools/2di2E/src/execution.jl:51 [inlined]
   [10] lineartrial
      @ ~/.julia/packages/BenchmarkTools/2di2E/src/execution.jl:50 [inlined]
   [11] tune!(b::BenchmarkTools.Benchmark, p::BenchmarkTools.Parameters; progressid::Nothing, nleaves::Float64, ndone::Float64, verbose::Bool, pad::String, kwargs::@Kwargs{})
      @ BenchmarkTools ~/.julia/packages/BenchmarkTools/2di2E/src/execution.jl:299
   [12] tune!
      @ ~/.julia/packages/BenchmarkTools/2di2E/src/execution.jl:288 [inlined]
   [13] tune!(b::BenchmarkTools.Benchmark)
      @ BenchmarkTools ~/.julia/packages/BenchmarkTools/2di2E/src/execution.jl:288
   [14] macro expansion
      @ ~/.julia/packages/BenchmarkTools/2di2E/src/execution.jl:461 [inlined]
   [15] top-level scope
      @ ~/Bureau/git/DCISolver.jl/test/test-allocs.jl:8
   [16] include
      @ ./sysimg.jl:38 [inlined]
   [17] macro expansion
      @ ~/Bureau/git/DCISolver.jl/test/runtests.jl:22 [inlined]
   [18] macro expansion
      @ ~/julia/julia-1.11.7/share/julia/stdlib/v1.11/Test/src/Test.jl:1709 [inlined]
   [19] top-level scope
      @ ~/Bureau/git/DCISolver.jl/test/runtests.jl:22
   [20] include(fname::String)
      @ Main ./sysimg.jl:38
   [21] top-level scope
      @ none:6
  in expression starting at /home/alexis/Bureau/git/DCISolver.jl/test/test-allocs.jl:3
Test Summary: | Error  Total   Time
Allocs        |     1      1  16.2s
ERROR: LoadError: Some tests did not pass: 0 passed, 0 failed, 1 errored, 0 broken.
in expression starting at /home/alexis/Bureau/git/DCISolver.jl/test/runtests.jl:15
ERROR: Package DCISolver errored during testing

Package Version

Branch main for DCISolver.jl and main for SolverCore.jl

Julia Version

1.11.7

Reproduction steps

Just run the tests of DCISolver.jl

Relevant log output

Operating System

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions