-
Notifications
You must be signed in to change notification settings - Fork 12
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
Outdated packages, Test error and example error #69
Comments
This message does not mean it failed to run, the app will work as usual but that warning may appear on certain windows machines. I'm working on getting the warning silenced, it does not indicate a problem. 3.4 will move to the newer dependency versions, I've had some compatibility issues in the past so I locked mousetrap to specific versions I'm positive work. Regarding the test, I can't reproduce this running julia> ndigits(CHECK_BUTTON_STATE_ACTIVE)
ERROR: MethodError: no method matching CheckButtonState(::Int64)
Closest candidates are:
(::Type{T})(::T) where T<:Number
@ Core boot.jl:792
(::Type{T})(::AbstractChar) where T<:Union{Int32, Int64}
@ Base char.jl:51
(::Type{T})(::AbstractChar) where T<:Union{AbstractChar, Number}
@ Base char.jl:50
...
Stacktrace:
[1] convert(#unused#::Type{CheckButtonState}, x::Int64)
@ Base ./number.jl:7
[2] oftype(x::CheckButtonState, y::Int64)
@ Base ./essentials.jl:471
[3] zero(x::CheckButtonState)
@ Base ./number.jl:308
[4] unsigned(x::CheckButtonState)
@ Base ./int.jl:215
[5] ndigits0zpb(x::CheckButtonState, b::Int64)
@ Base ./intfuncs.jl:573
[6] ndigits0z(x::CheckButtonState, b::Int64)
@ Base ./intfuncs.jl:635
[7] ndigits(x::CheckButtonState; base::Int64, pad::Int64)
@ Base ./intfuncs.jl:671
[8] ndigits(x::CheckButtonState)
@ Base ./intfuncs.jl:671
[9] top-level scope Something weird about the C Macro definition, I will investigate to solve this |
solved by 002d730, I will try to resolve the DBUS warning before 3.4 releases so I will keep this open until then |
Thank you, the warning persists but all the tests pass now on the Win 11 machine and on a Linux machine. |
I started Julia in a fresh temporary environment on a Win 11 machine and ran the install instructions, and found some outdated packages and tests that errored.
`julia> begin
Pkg.add(url="https://github.com/clemapfel/mousetrap.jl")
Pkg.test("Mousetrap")
end
(julia.exe:42660): GLib-GIO-WARNING **: 09:02:19.905: C:\Users\jakez.julia\artifacts\13606487e48c4dea9d20813adf4f03a3edea59fd\bin\gdbus.exe dbus binary failed to launch bus, maybe incompatible version
Test Summary: | Pass Total Time
Action | 7 7 0.3s
Test Summary: | Pass Total Time
Adjustment | 10 10 0.2s
Test Summary: | Pass Total Time
AlertDialog | 8 8 0.3s
Test Summary: | Pass Total Time
Angle | 1 1 0.0s
(julia.exe:42660): GLib-GIO-CRITICAL **: 09:02:38.171: g_dbus_connection_emit_signal: assertion 'G_IS_DBUS_CONNECTION (connection)' failed
(julia.exe:42660): GLib-GIO-CRITICAL **: 09:02:38.176: g_dbus_connection_emit_signal: assertion 'G_IS_DBUS_CONNECTION (connection)' failed
Test Summary: | Pass Total Time
Application | 12 12 0.1s
Test Summary: | Pass Total Time
AspectFrame | 7 7 0.0s
Test Summary: | Pass Total Time
Box | 8 8 0.1s
Test Summary: | Pass Total Time
Button | 6 6 0.2s
Test Summary: | Pass Total Time
CenterBox | 3 3 0.0s
CheckButton: Error During Test at C:\Users\jakez.julia\packages\Mousetrap\WZu6w\test\runtests.jl:338
Got exception outside of a @test
MethodError: no method matching CheckButtonState(::Int64)
Closest candidates are:
(::Type{T})(::T) where T<:Number
@ Core boot.jl:792
(::Type{T})(::CxxWrap.CxxWrapCore.CppEnum) where T<:Integer
@ CxxWrap C:\Users\jakez.julia\packages\CxxWrap\5IZvn\src\CxxWrap.jl:136
(::Type{<:Integer})(::Sockets.IPAddr)
@ Sockets C:\Users\jakez\AppData\Local\Programs\Julia-1.10.0\share\julia\stdlib\v1.10\Sockets\src\IPAddr.jl:11
...
Stacktrace:
[1] convert(::Type{CheckButtonState}, x::Int64)
@ Base .\number.jl:7
[2] oftype(x::CheckButtonState, y::Int64)
@ Base .\essentials.jl:517
[3] zero(x::CheckButtonState)
@ Base .\number.jl:308
[4] unsigned(x::CheckButtonState)
@ Base .\int.jl:215
[5] ndigits0zpb(x::CheckButtonState, b::Int64)
@ Base .\intfuncs.jl:599
[6] ndigits0z(x::CheckButtonState, b::Int64)
@ Base .\intfuncs.jl:661
[7] ndigits(x::CheckButtonState; base::Int64, pad::Int64)
@ Base .\intfuncs.jl:700
[8] _str_sizehint(x::CheckButtonState)
@ Base .\strings\io.jl:131
[9] print_to_string(::Symbol, ::Vararg{Any})
@ Base .\strings\io.jl:143
[10] string
@ .\strings\io.jl:189 [inlined]
[11] show_aux(io::Base.DevNull, x::CheckButton, fields::Symbol)
@ Mousetrap C:\Users\jakez.julia\packages\Mousetrap\WZu6w\src\Mousetrap.jl:473
[12] show
@ C:\Users\jakez.julia\packages\Mousetrap\WZu6w\src\Mousetrap.jl:2763 [inlined]
[13] macro expansion
@ C:\Users\jakez.julia\packages\Mousetrap\WZu6w\test\runtests.jl:340 [inlined]
[14] macro expansion
@ C:\Users\jakez\AppData\Local\Programs\Julia-1.10.0\share\julia\stdlib\v1.10\Test\src\Test.jl:1577 [inlined]
[15] test_check_button(::Stack)
@ Main C:\Users\jakez.julia\packages\Mousetrap\WZu6w\test\runtests.jl:339
[16] (::var"#177#179")(container::Stack, window::Window)
@ Main C:\Users\jakez.julia\packages\Mousetrap\WZu6w\test\runtests.jl:2805
[17] (::TypedFunction)(::Stack, ::Vararg{Any})
@ Mousetrap C:\Users\jakez.julia\packages\Mousetrap\WZu6w\src\Mousetrap.jl:91
[18] (::Mousetrap.var"#1055#1069"{Window, TypedFunction})(x::Tuple{CxxWrap.CxxWrapCore.CxxRef{Mousetrap.detail._Stack}})
@ Mousetrap C:\Users\jakez.julia\packages\Mousetrap\WZu6w\src\Mousetrap.jl:666
[19] safe_call(scope::String, f::Function, args::Tuple{CxxWrap.CxxWrapCore.CxxRef{Mousetrap.detail._Stack}})
@ Mousetrap C:\Users\jakez.julia\packages\Mousetrap\WZu6w\src\Mousetrap.jl:190
[20] present!(arg1::Mousetrap.detail._WindowAllocated)
@ Mousetrap.detail C:\Users\jakez.julia\packages\CxxWrap\5IZvn\src\CxxWrap.jl:624
[21] present!(x::Window)
@ Mousetrap C:\Users\jakez.julia\packages\Mousetrap\WZu6w\src\Mousetrap.jl:205
[22] (::var"#176#178")(app::Application)
@ Main C:\Users\jakez.julia\packages\Mousetrap\WZu6w\test\runtests.jl:2861
[23] (::TypedFunction)(args::Application)
@ Mousetrap C:\Users\jakez.julia\packages\Mousetrap\WZu6w\src\Mousetrap.jl:91
[24] (::Mousetrap.var"#14#15"{TypedFunction})(app::Application)
@ Mousetrap C:\Users\jakez.julia\packages\Mousetrap\WZu6w\src\Mousetrap.jl:1542
[25] (::TypedFunction)(args::Application)
@ Mousetrap C:\Users\jakez.julia\packages\Mousetrap\WZu6w\src\Mousetrap.jl:91
[26] (::Mousetrap.var"#6#8"{TypedFunction})(x::Tuple{CxxWrap.CxxWrapCore.CxxRef{Mousetrap.detail._Application}})
@ Mousetrap C:\Users\jakez.julia\packages\Mousetrap\WZu6w\src\Mousetrap.jl:657
[27] safe_call(scope::String, f::Function, args::Tuple{CxxWrap.CxxWrapCore.CxxRef{Mousetrap.detail._Application}})
@ Mousetrap C:\Users\jakez.julia\packages\Mousetrap\WZu6w\src\Mousetrap.jl:190
[28] run!(arg1::Mousetrap.detail._ApplicationAllocated)
@ Mousetrap.detail C:\Users\jakez.julia\packages\CxxWrap\5IZvn\src\CxxWrap.jl:624
[29] run!(app::Application)
@ Mousetrap C:\Users\jakez.julia\packages\Mousetrap\WZu6w\src\Mousetrap.jl:1511
[30] main(f::Function, application_id::String)
@ Mousetrap C:\Users\jakez.julia\packages\Mousetrap\WZu6w\src\Mousetrap.jl:1552
[31] top-level scope
@ C:\Users\jakez.julia\packages\Mousetrap\WZu6w\test\runtests.jl:2778
[32] include(fname::String)
@ Base.MainInclude .\client.jl:489
[33] top-level scope
@ none:6
[34] eval
@ Core .\boot.jl:385 [inlined]
[35] exec_options(opts::Base.JLOptions)
@ Base .\client.jl:291
[36] _start()
@ Base .\client.jl:552
Test Summary: | Error Total Time
CheckButton | 1 1 2.0s
[ERROR] In Stack::emit_signal_realize: Some tests did not pass: 0 passed, 0 failed, 1 errored, 0 broken.
Testing Mousetrap tests passed
(jl_MJtt0i) pkg> status --outdated -m
Status
C:\Users\jakez\AppData\Local\Temp\jl_MJtt0i\Manifest.toml
⌅ [15f4f7f2] AutoHashEquals v0.2.0 (<v2.1.0): Registrator, RegistryTools
⌅ [d8793406] ObjectFile v0.3.7 (<v0.4.1): BinaryBuilder
⌅ [e9f186c6] Libffi_jll v3.2.2+1 (<v3.4.4+0): Glib_jll, HarfBuzz_jll, Wayland_jll
⌅ [89763e89] Libtiff_jll v4.4.0+0 (<v4.6.0+0): gdk_pixbuf_jll
⌅ [3eaa8342] libcxxwrap_julia_jll v0.11.2+0 (<v0.12.0+0): CxxWrap
`
Then I tried the first example and it failed to run with the following message.
`julia> using Mousetrap
julia> main() do app::Application
window = Window(app)
set_child!(window, Label("Hellowworld!"))
present!(window)
end
(julia.exe:41196): GLib-GIO-WARNING **: 09:07:12.279: C:\Users\jakez.julia\artifacts\13606487e48c4dea9d20813adf4f03a3edea59fd\bin\gdbus.exe dbus binary failed to launch bus, maybe incompatible version
`
The text was updated successfully, but these errors were encountered: