8000 Mouse bindings appear to not be wrapped in `userCode` · Issue #493 · xmonad/xmonad · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Mouse bindings appear to not be wrapped in userCode #493
Open
@geekosaur

Description

@geekosaur

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0