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

xkb::GetNames still fails unable to unpack reply.value_list() #213

Open
igor-petruk opened this issue Oct 25, 2022 · 1 comment
Open

xkb::GetNames still fails unable to unpack reply.value_list() #213

igor-petruk opened this issue Oct 25, 2022 · 1 comment

Comments

@igor-petruk
Copy link

igor-petruk commented Oct 25, 2022

I've seen previous bugfixes, but it looks like the issue remains.

I am trying to print layout names and selected layout, but I cannot get past fetching atoms

let reply = conn.wait_for_reply(conn.send_request(
         &xkb::GetNames{
               device_spec: xkb::Id::UseCoreKbd as xkb::DeviceSpec,
               which: xkb::NameDetail::all(),
          }
)).unwrap();
println!("Len: {}", reply.value_list().len());

Crashes with attempt to add with overflow. If I limit NameDetail to SYMBOLS and/or GROUP_NAMES

internal error: entered unreacheable code: Could not match any expression for GetNamesReplyValueList`.

xcb 1.1.1, features: xkb, and optionally - xlib_xcb

@igor-petruk
Copy link
Author

igor-petruk commented Oct 25, 2022

Afaik, I've just tried with git version of the library - the fix in #184 indeed helped. With that established, when can the package be pushed to crates.io? Thanks!

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

No branches or pull requests

1 participant