codehenry / xmonad

Automatically exported from code.google.com/p/xmonad
0 stars 0 forks source link

xmonad won't start: Irrefutable pattern failed for pattern (Data.Maybe.Just nbc_) #336

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. last line of ~/.xinitrc:
exec /Users/franco/.cabal/bin/xmonad

What is the expected output? What do you see instead?
I expect to have xmonad launch but i get this error in console

11/13/09 2:36:51 PM org.x.startx[7572]  xmonad-i386-darwin: 
XMonad/Main.hsc:(82,14)-(84,41): Irrefutable pattern failed for pattern 
(Data.Maybe.Just nbc_)

What version of the product are you using? On what operating system?
xmonad 0.9 (installed via cabal)
ghc-version (6.10.4) installed via the package
OSX 10.6.2 (Snow Leopard)

Are you using an xmonad.hs?  Please attach it and the output of "xmonad
--recompile".

import XMonad

main = xmonad defaultConfig

#no output

Please provide any additional information below.
on a mailing list i've seen hints that X cannot support the colors gray and red 
but i'm using a 
very stock snow leopard X11, only fullscreen is turned on

Original issue reported on code.google.com by flazzar...@gmail.com on 13 Nov 2009 at 7:44

GoogleCodeExporter commented 8 years ago

Original comment by byor...@gmail.com on 13 Nov 2009 at 8:07

GoogleCodeExporter commented 8 years ago
What colors are safe for you?  Here's some Haskell to try in ghci, once you've
started X with some other window manager.

:m + Graphics.X11.Xlib XMonad.Operations
dpy <- openDisplay ""
mapM (initColor dpy) ["red", "gray", "blue", "black", "white", "#000000", 
"#ffffff"]

Feel free to put any other colors you think might work in that list on the third
line.  The ones that correspond to "Just" values (rather than "Nothing" values) 
are safe.

Original comment by daniel.w...@gmail.com on 13 Nov 2009 at 8:18

GoogleCodeExporter commented 8 years ago
I think we are making progress!

Prelude> :m + Graphics.X11.Xlib XMonad.Operations
Prelude Graphics.X11.Xlib XMonad.Operations> dpy <- openDisplay ""
Loading package syb ... linking ... done.
Loading package X11-1.4.6.1 ... can't load .so/.DLL for: X11 
(dlopen(libX11.dylib, 9): image not found)

Original comment by flazzar...@gmail.com on 13 Nov 2009 at 8:31

GoogleCodeExporter commented 8 years ago
From some testing on http://hpaste.org/fastcgi/hpaste.fcgi/view?id=12122#a12127 
, it
seems that XDefaultColormap is returning garbage (18022232529829921, rather 
than 32
on most systems).  Perhaps GHC is miscompiling the X11 bindings, or the user's 
libX11
is busted?

Unless some OS X testers can reproduce this, I can only assume this is a problem
specific to this user's set up.

Original comment by SpencerJ...@gmail.com on 13 Nov 2009 at 9:57

GoogleCodeExporter commented 8 years ago
I can reproduce this problem on a clean Snow Leopard installation.
Installed GHC 6.10.4, then the Haskell platform and then "cabal install xmonad".
This is the output of "cabal install xmonad"

pepe:~/.cabal/packages/hackage.haskell.org/xmonad/0.9/xmonad-0.9$ cabal install
Resolving dependencies...
Configuring xmonad-0.9...
Preprocessing library xmonad-0.9...
ld: warning: in 
/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/libgmp.a, 
file is not 
of required architecture
Preprocessing executables for xmonad-0.9...
ld: warning: in 
/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/libgmp.a, 
file is not 
of required architecture
Building xmonad-0.9...
[1 of 8] Compiling XMonad.StackSet  ( XMonad/StackSet.hs, 
dist/build/XMonad/StackSet.o )
[2 of 8] Compiling XMonad.Core      ( XMonad/Core.hs, dist/build/XMonad/Core.o )
[3 of 8] Compiling XMonad.Layout    ( XMonad/Layout.hs, 
dist/build/XMonad/Layout.o )
[4 of 8] Compiling XMonad.Operations ( XMonad/Operations.hs, 
dist/build/XMonad/Operations.o )
[5 of 8] Compiling XMonad.ManageHook ( XMonad/ManageHook.hs, 
dist/build/XMonad/ManageHook.o )
[6 of 8] Compiling XMonad.Config    ( XMonad/Config.hs, 
dist/build/XMonad/Config.o )
[7 of 8] Compiling XMonad.Main      ( dist/build/XMonad/Main.hs, 
dist/build/XMonad/Main.o )
[8 of 8] Compiling XMonad           ( XMonad.hs, dist/build/XMonad.o )
ar: creating archive dist/build/libHSxmonad-0.9.a
[ 1 of 10] Compiling Paths_xmonad     ( dist/build/autogen/Paths_xmonad.hs, 
dist/build/xmonad/xmonad-
tmp/Paths_xmonad.o )
[ 2 of 10] Compiling XMonad.StackSet  ( XMonad/StackSet.hs, 
dist/build/xmonad/xmonad-
tmp/XMonad/StackSet.o )
[ 3 of 10] Compiling XMonad.Core      ( XMonad/Core.hs, 
dist/build/xmonad/xmonad-tmp/XMonad/Core.o )
[ 4 of 10] Compiling XMonad.Layout    ( XMonad/Layout.hs, 
dist/build/xmonad/xmonad-
tmp/XMonad/Layout.o )
[ 5 of 10] Compiling XMonad.Operations ( XMonad/Operations.hs, 
dist/build/xmonad/xmonad-
tmp/XMonad/Operations.o )
[ 6 of 10] Compiling XMonad.ManageHook ( XMonad/ManageHook.hs, 
dist/build/xmonad/xmonad-
tmp/XMonad/ManageHook.o )
[ 7 of 10] Compiling XMonad.Config    ( XMonad/Config.hs, 
dist/build/xmonad/xmonad-
tmp/XMonad/Config.o )
[ 8 of 10] Compiling XMonad.Main      ( 
dist/build/xmonad/xmonad-tmp/XMonad/Main.hs, 
dist/build/xmonad/xmonad-tmp/XMonad/Main.o )
[ 9 of 10] Compiling XMonad           ( XMonad.hs, 
dist/build/xmonad/xmonad-tmp/XMonad.o )
[10 of 10] Compiling Main             ( Main.hs, 
dist/build/xmonad/xmonad-tmp/Main.o )
Linking dist/build/xmonad/xmonad ...
Preprocessing library xmonad-0.9...
Preprocessing executables for xmonad-0.9...
Running Haddock for xmonad-0.9...
Warning: The documentation for the following packages are not installed. No
links will be generated to these packages: rts-1.0
Warning: XMonad.Core: could not find link destinations for:
    XMonad.Layout.NextNoWrap
Warning: XMonad.Config: could not find link destinations for:
    XMonad.Config.defaultConfig
Documentation created: dist/doc/html/xmonad/index.html
Installing library in /Users/pepe/.cabal/lib/xmonad-0.9/ghc-6.10.4
Installing executable(s) in /Users/pepe/.cabal/bin
Registering xmonad-0.9...
Reading package info from "dist/installed-pkg-config" ... done.
Writing new package config file... done.

Then this is the output of "xmonad"

pepe:~$ xmonad
/Users/pepe/.xmonad/xmonad-i386-darwin: executeFile: does not exist (No such 
file or directory)
xmonad: XMonad/Main.hsc:(82,14)-(84,41): Irrefutable pattern failed for pattern 
(Data.Maybe.Just nbc_)

And then this is the output of "xmonad --recompile"
pepe:~$ xmonad --recompile
xmonad: /Users/pepe/.xmonad/xmonad.errors: openFile: does not exist (No such 
file or directory)

Original comment by pepeibo...@gmail.com on 3 Dec 2009 at 11:56

GoogleCodeExporter commented 8 years ago
I just ran a bunch of updates after installing snow leopard yesterday morning. 
After 
getting xmonad working initially it is now displaying this behavior

Original comment by aconb...@gmail.com on 8 Jan 2010 at 5:51

GoogleCodeExporter commented 8 years ago
I have the exact same issue as aconbere.

Original comment by bra...@gmail.com on 9 May 2010 at 1:47

GoogleCodeExporter commented 8 years ago
same problem here,trying to install following this 
guide...http://www.lanternthree.com/blog/index.php/2010/03/05/minimalist-x-windo
w-managers-xmonad-
on-apple-os-x-snow-leopard-10-6/

Original comment by sonom...@gmail.com on 2 Jun 2010 at 9:20

GoogleCodeExporter commented 8 years ago
FYI, I get this error on 10.5.8, xmonad 0.9.1 from cabal; so it doesn't seem to 
be limited to Snow Leopard. I tried copying over the xmonad binary from 
~/.cabal/bin, but didn't seem to help.

Original comment by rws...@gmail.com on 15 Jul 2010 at 3:31

GoogleCodeExporter commented 8 years ago
I also get this exact same error with ghc 6.12.1, X11 1.5.0, xmonad 0.9.1 and 
snow leopard 10.6.4. I also tried to install via cabal.

Original comment by soeren.r...@gmail.com on 26 Aug 2010 at 7:29