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

Mouse bindings appear to not be wrapped in userCode #493

Open
3 tasks done
geekosaur opened this issue Feb 16, 2024 · 1 comment
Open
3 tasks done

Mouse bindings appear to not be wrapped in userCode #493

geekosaur opened this issue Feb 16, 2024 · 1 comment

Comments

@geekosaur
Copy link
Contributor

Problem Description

From IRC:

[16 19:52:39] <beastwick> could my keybind some how be triggering xmonad to close for some reason?
[16 19:52:45] <beastwick> as if I did a control shift q
[16 19:53:40] <geekosaur> I expect that planeMove is crashing, and from glancing over the code I expect it's referencing past the end of a list and (!!) is throwing an exception
[16 19:54:16] <geekosaur> I'm not sure we wrap those in userCode to catch exceptions
[16 19:54:24] <beastwick> is there a haskell debugger? something I could attach to the xmonad process and step through code?
[16 19:55:05] <geekosaur> since it's native code you would use gdb or lldb, but ghc's debugger support isn't very good at present
[16 19:57:51] <geekosaur> hm. you could change the binding to: \w -> catchX (planeMove (Lines 4) Circular ToUp) (return ())
[16 19:58:08] <geekosaur> that won't make the key work but it should log the error and continue
[16 19:59:03] <geekosaur> (and if it does then I need to file a bug that we aren't guarding mouse bindings properly)
[16 20:03:00] <beastwick> okay I wrapped it in a catch, no crashing now

Checklist

  • I've read CONTRIBUTING.md

  • I tested my configuration

    • With xmonad version 0.17.0
    • With xmonad-contrib version 0.17.0
@geekosaur
Copy link
Contributor Author

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