Bug Squasher

Nov 09, 2008 17:04

Today, for the first time, I fixed an open source bug! Woohoo! It was a a function in XMonad that was passed incorrect arguments; a tiny bug, but a bug nonetheless.

code, xmonad, bugs

Leave a comment

Comments 4

lindseykuper November 10 2008, 02:20:33 UTC
Woohoo! How was the bug manifesting itself?

Reply

chadversary November 10 2008, 22:38:11 UTC
The code refused to compile! So the bug was not hard to miss. Recently, GHC released a new stable version, and it seems to have broken some deprecated syntax (I'm guessing). Basically, all i did was understand the error message, dug through several modules in the source, and repaired the syntax at the naughty spots.

XMonad/Hooks/UrgencyHook.hs:359:48:
The section `5.0 `seconds`' takes one argument,
but its type `Int' has none
In the `duration' field of a record
In the expression:
DzenUrgencyHook {duration = (5.0 `seconds`), args = []}
In the definition of `dzenUrgencyHook':
dzenUrgencyHook = DzenUrgencyHook
{duration = (5.0 `seconds`), args = []}

Reply

lindseykuper November 10 2008, 23:20:35 UTC
Ha! Haskell strikes me as one of those "if it compiles at all, it's probably right" languages.

You mean that the bug was hard to miss, not 'not hard to miss'. Right?

Reply

chadversary November 10 2008, 23:26:34 UTC
Blundering negatives, oh my. It was "hard to miss" == "obvious".

Reply


Leave a comment

Up