julia-vscode / TestItemRunner.jl

Run Julia test items
MIT License
76 stars 11 forks source link

Error "The test process crashed while running this test" #26

Closed kbarros closed 2 years ago

kbarros commented 2 years ago

A failing test reports the error "The test process crashed while running this test".

The full output is listed in the attachment. testitemrunner_output.txt

Relevant output may be the following:

ERROR: MethodError: no method matching size(::StaticArraysCore.SMatrix{3, 3, Float64, 9})
The applicable method may be too new: running in world age 32416, while current world is 32506.
Closest candidates are:
   [...]

Julia VSCode extension 1.7.12.

davidanthoff commented 2 years ago

Could you copy the full stack trace of the error message? That would very easily pin down where I need to fix something :)

kbarros commented 2 years ago

Thanks for taking a look, see stack trace below. Note that the crash only appears when the test fails.

TestItemRunner has been a huge help in our project.

┌ Error: Some Julia code in the VS Code extension crashed
└ @ Main ~/.vscode/extensions/julialang.language-julia-1.7.12/scripts/error_handler.jl:15
ERROR: MethodError: no method matching size(::StaticArraysCore.SMatrix{3, 3, Float64, 9})
The applicable method may be too new: running in world age 32416, while current world is 32506.
Closest candidates are:
  size(::Union{LinearAlgebra.Adjoint{T, <:Union{StaticArraysCore.StaticArray{Tuple{var"#s2"}, T, 1} where var"#s2", StaticArraysCore.StaticArray{Tuple{var"#s3", var"#s4"}, T, 2} where {var"#s3", var"#s4"}}}, LinearAlgebra.Diagonal{T, <:StaticArraysCore.StaticArray{Tuple{var"#s13"}, T, 1} where var"#s13"}, LinearAlgebra.Hermitian{T, <:StaticArraysCore.StaticArray{Tuple{var"#s10", var"#s11"}, T, 2} where {var"#s10", var"#s11"}}, LinearAlgebra.LowerTriangular{T, <:StaticArraysCore.StaticArray{Tuple{var"#s18", var"#s19"}, T, 2} where {var"#s18", var"#s19"}}, LinearAlgebra.Symmetric{T, <:StaticArraysCore.StaticArray{Tuple{var"#s7", var"#s8"}, T, 2} where {var"#s7", var"#s8"}}, LinearAlgebra.Transpose{T, <:Union{StaticArraysCore.StaticArray{Tuple{var"#s2"}, T, 1} where var"#s2", StaticArraysCore.StaticArray{Tuple{var"#s3", var"#s4"}, T, 2} where {var"#s3", var"#s4"}}}, LinearAlgebra.UnitLowerTriangular{T, <:StaticArraysCore.StaticArray{Tuple{var"#s24", var"#s25"}, T, 2} where {var"#s24", var"#s25"}}, LinearAlgebra.UnitUpperTriangular{T, <:StaticArraysCore.StaticArray{Tuple{var"#s21", var"#s22"}, T, 2} where {var"#s21", var"#s22"}}, LinearAlgebra.UpperTriangular{T, <:StaticArraysCore.StaticArray{Tuple{var"#s15", var"#s16"}, T, 2} where {var"#s15", var"#s16"}}, StaticArraysCore.StaticArray{Tuple{var"#s25"}, T, 1} where var"#s25", StaticArraysCore.StaticArray{Tuple{var"#s1", var"#s3"}, T, 2} where {var"#s1", var"#s3"}, StaticArraysCore.StaticArray{<:Tuple, T}} where T) at ~/.julia/packages/StaticArrays/PUoe1/src/abstractarray.jl:9 (method too new to be called from this world context.)
  size(::AbstractArray{T, N}, !Matched::Any) where {T, N} at abstractarray.jl:42
  size(!Matched::Union{LinearAlgebra.QR, LinearAlgebra.QRCompactWY, LinearAlgebra.QRPivoted}) at ~/.julia/juliaup/julia-1.8.1+0.aarch64/share/julia/stdlib/v1.8/LinearAlgebra/src/qr.jl:581
  ...
Stacktrace:
  [1] length
    @ ./abstractarray.jl:279 [inlined]
  [2] isempty(a::StaticArraysCore.SMatrix{3, 3, Float64, 9})
    @ Base ./abstractarray.jl:1170
  [3] typeinfo_prefix(io::IOContext{IOBuffer}, X::StaticArraysCore.SMatrix{3, 3, Float64, 9})
    @ Base ./arrayshow.jl:581
  [4] show(io::IOContext{IOBuffer}, X::StaticArraysCore.SMatrix{3, 3, Float64, 9})
    @ Base ./arrayshow.jl:485
  [5] showerror(io::IOContext{IOBuffer}, ex::MethodError)
    @ Base ./errorshow.jl:276
  [6] showerror(io::IOContext{IOBuffer}, ex::MethodError, bt::Vector{Union{Ptr{Nothing}, Base.InterpreterIP}}; backtrace::Bool)
    @ Base ./errorshow.jl:88
  [7] showerror(io::IOContext{IOBuffer}, ex::LoadError, bt::Vector{Union{Ptr{Nothing}, Base.InterpreterIP}}; backtrace::Bool)
    @ Base ./errorshow.jl:96
  [8] display_error(io::IOBuffer, er::LoadError, bt::Vector{Union{Ptr{Nothing}, Base.InterpreterIP}})
    @ Base ./client.jl:111
  [9] sprint(::Function, ::LoadError, ::Vararg{Any}; context::Nothing, sizehint::Int64)
    @ Base ./strings/io.jl:114
 [10] sprint(::Function, ::LoadError, ::Vararg{Any})
    @ Base ./strings/io.jl:107
 [11] run_testitem_handler(conn::VSCodeTestServer.JSONRPC.JSONRPCEndpoint{Base.PipeEndpoint, Base.PipeEndpoint}, params::VSCodeTestServer.TestserverRunTestitemRequestParams)
    @ VSCodeTestServer ~/.vscode/extensions/julialang.language-julia-1.7.12/scripts/packages/VSCodeTestServer/src/VSCodeTestServer.jl:111
 [12] dispatch_msg(x::VSCodeTestServer.JSONRPC.JSONRPCEndpoint{Base.PipeEndpoint, Base.PipeEndpoint}, dispatcher::VSCodeTestServer.JSONRPC.MsgDispatcher, msg::Dict{String, Any})
    @ VSCodeTestServer.JSONRPC ~/.vscode/extensions/julialang.language-julia-1.7.12/scripts/packages/JSONRPC/src/typed.jl:67
 [13] serve_in_env(conn::Base.PipeEndpoint)
    @ VSCodeTestServer ~/.vscode/extensions/julialang.language-julia-1.7.12/scripts/packages/VSCodeTestServer/src/VSCodeTestServer.jl:169
 [14] #13
    @ ~/.vscode/extensions/julialang.language-julia-1.7.12/scripts/packages/VSCodeTestServer/src/VSCodeTestServer.jl:180 [inlined]
 [15] (::VSCodeTestServer.TestEnv.var"#2#3"{VSCodeTestServer.var"#13#15"{Base.PipeEndpoint}})()
    @ VSCodeTestServer.TestEnv ~/.vscode/extensions/julialang.language-julia-1.7.12/scripts/packages/TestEnv/src/julia-1.8/activate_do.jl:18
 [16] withenv(::VSCodeTestServer.TestEnv.var"#2#3"{VSCodeTestServer.var"#13#15"{Base.PipeEndpoint}}, ::Pair{String, String}, ::Vararg{Pair{String}})
    @ Base ./env.jl:172
 [17] (::Pkg.Operations.var"#107#112"{String, Bool, Bool, Bool, VSCodeTestServer.TestEnv.var"#2#3"{VSCodeTestServer.var"#13#15"{Base.PipeEndpoint}}, Pkg.Types.PackageSpec})()
    @ Pkg.Operations ~/.julia/juliaup/julia-1.8.1+0.aarch64/share/julia/stdlib/v1.8/Pkg/src/Operations.jl:1619
 [18] with_temp_env(fn::Pkg.Operations.var"#107#112"{String, Bool, Bool, Bool, VSCodeTestServer.TestEnv.var"#2#3"{VSCodeTestServer.var"#13#15"{Base.PipeEndpoint}}, Pkg.Types.PackageSpec}, temp_env::String)
    @ Pkg.Operations ~/.julia/juliaup/julia-1.8.1+0.aarch64/share/julia/stdlib/v1.8/Pkg/src/Operations.jl:1493
 [19] (::Pkg.Operations.var"#105#110"{Nothing, Bool, Bool, Bool, VSCodeTestServer.TestEnv.var"#2#3"{VSCodeTestServer.var"#13#15"{Base.PipeEndpoint}}, Pkg.Types.Context, Pkg.Types.PackageSpec, String, Nothing, String})(tmp::String)
    @ Pkg.Operations ~/.julia/juliaup/julia-1.8.1+0.aarch64/share/julia/stdlib/v1.8/Pkg/src/Operations.jl:1582
 [20] mktempdir(fn::Pkg.Operations.var"#105#110"{Nothing, Bool, Bool, Bool, VSCodeTestServer.TestEnv.var"#2#3"{VSCodeTestServer.var"#13#15"{Base.PipeEndpoint}}, Pkg.Types.Context, Pkg.Types.PackageSpec, String, Nothing, String}, parent::String; prefix::String)
    @ Base.Filesystem ./file.jl:764
 [21] mktempdir(fn::Function, parent::String) (repeats 2 times)
    @ Base.Filesystem ./file.jl:760
 [22] sandbox(fn::Function, ctx::Pkg.Types.Context, target::Pkg.Types.PackageSpec, target_path::String, sandbox_path::String, sandbox_project_override::Nothing; preferences::Nothing, force_latest_compatible_version::Bool, allow_earlier_backwards_compatible_versions::Bool, allow_reresolve::Bool)
    @ Pkg.Operations ~/.julia/juliaup/julia-1.8.1+0.aarch64/share/julia/stdlib/v1.8/Pkg/src/Operations.jl:1540
 [23] sandbox
    @ ~/.julia/juliaup/julia-1.8.1+0.aarch64/share/julia/stdlib/v1.8/Pkg/src/Operations.jl:1531 [inlined]
 [24] activate(f::VSCodeTestServer.var"#13#15"{Base.PipeEndpoint}, pkg::String)
    @ VSCodeTestServer.TestEnv ~/.vscode/extensions/julialang.language-julia-1.7.12/scripts/packages/TestEnv/src/julia-1.8/activate_do.jl:16
 [25] serve(conn::Base.PipeEndpoint, project_path::String, package_path::String, package_name::String; is_dev::Bool, crashreporting_pipename::Nothing)
    @ VSCodeTestServer ~/.vscode/extensions/julialang.language-julia-1.7.12/scripts/packages/VSCodeTestServer/src/VSCodeTestServer.jl:179
 [26] serve(conn::Base.PipeEndpoint, project_path::String, package_path::String, package_name::String)
    @ VSCodeTestServer ~/.vscode/extensions/julialang.language-julia-1.7.12/scripts/packages/VSCodeTestServer/src/VSCodeTestServer.jl:173
 [27] top-level scope
    @ ~/.vscode/extensions/julialang.language-julia-1.7.12/scripts/testserver/testserver_main.jl:16
 [28] include(mod::Module, _path::String)
    @ Base ./Base.jl:419
 [29] exec_options(opts::Base.JLOptions)
    @ Base ./client.jl:303
 [30] _start()
    @ Base ./client.jl:522