Can't customize XMonad
System
- xuname: Void 4.19.12_1 x86_64 GenuineIntel uptodate rrrmFFFFFF
- package: xmonad-0.15_1, xmonad-contrib-0.15_1
Expected behavior
When below is in ~/.xmonad/xmonad.hs, xmonad --recompile should give no output and successfully compile (https://hackage.haskell.org/package/xmonad-contrib-0.15/docs/XMonad-Doc-Configuring.html).
import XMonad
main = xmonad $ def
{ borderWidth = 2
, terminal = "urxvt"
, normalBorderColor = "#cccccc"
, focusedBorderColor = "#cd8b00" }
Additionally, the xmonad-contrib package should have more files in it than just the license.
Actual behavior
With haskell snippet above in ~/.xmonad/xmonad.hs:
$ xmonad --recompile
XMonad will use ghc to recompile, because "/home/adam/.xmonad/build" does not exist.
Error detected while loading xmonad configuration file: /home/adam/.xmonad/xmonad.hs
xmonad.hs:1:1: error:
Could not find module ‘XMonad’
Use -v to see a list of the files searched for.
|
1 | import XMonad
| ^^^^^^^^^^^^^
Please check the file for errors.
And the files in xmonad-contrib are:
$ xbps-query -Rf xmonad-contrib
/usr/share/licenses/xmonad-contrib/LICENSE
Any ideas @xaltsc?
Steps to reproduce the behavior
- Install xmonad.
- Create
~/.xmonad/xmonad.hswith config shown above. xmonad --recompile
As a temporary fix you could install it from source (quick and easy) or use "cabal install xmonad && cabal install xmonad-contrib".
This is still a problem. xmonad-contrib builds the files but doesn't install anything expect the license file as non-Jedi reported. xmonad uses the stackage version from the package template, but xmonad-contrib takes that info from it's own stack.yaml file. Don't know if that can be relevant to the issue.
Xmonad isn't reading its configuration file from .xmonad/xmonad.hs help.
I second this, facing the same issue, would like to switch back to XMonad and not have to deal with cabal for this (which still somehow doesn't actually seem to fix the issue at hand anyway, I tried)...
For a temporary workaround until xmonad-contrib issue is fixed, I got it all to install via cabal with the following:
xbps-install -y xorg dmenu xmonad cabal-install libX11-devel libXinerama-devel libXext-devel libXrandr-devel libXScrnSaver-devel ncurses-libtinfo-devel pkg-config
cabal update
cabal install --lib xmonad xmonad-contrib X11
cabal install xmonad
@xaltsc ?
I propose that either someone adopts the package or that it (and xmonad-contrib) be removed. I used to think that it worked, but this was my first package I think, I didn't do proper testing and I never managed to get it working.
The issue still remains ... I agree with @xaltsc and the package must be removed because it doesn't work properly ... What are the steps to do so ? Someone just needs to push a merge request with xmonad and xmonad-contrib templates removed ?
And adding it to removed-packages, possibly. Is it that useless without the recompilation?
Well it's like using a window manager without any type of personal configuration, don't know if you use any WM but yeah it kind defeats the point of a window manager if We can't configure.
On Mon, Oct 25 2021 at 06:22:37 -0700, Érico Nogueira Rolim @.***> wrote:
And adding it to removed-packages, possibly. Is it that useless without the recompilation?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/void-linux/void-packages/issues/6414#issuecomment-950924849, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMRTQPKATI234SHKJQBPZ4TUIVKZ3ANCNFSM4GMWYOCQ. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
Yeah, I didn't know whether all configuration happened in the form of recompilation rather than a config file.
@xaltsc should xmobar be added to that list as well ? I don't know if xmobar can be used on other WM ... If not I will added it to the commit
The xmonad-contrib template seems to compile the package successfully, but it doesn't install the files.
Ideally it would be a simple fix for someone familiar with xbps-src.
@xaltsc should xmobar be added to that list as well ? I don't know if xmobar can be used on other WM ... If not I will added it to the commit
I don't use xmobar anymore, but there's a chance that xmobar may work if the binary is successfully installed since xmobar can be used without a xmobar.hs
The xmonad-contrib template seems to compile the package successfully, but it doesn't install the files.
Ideally it would be a simple fix for someone familiar with xbps-src.
IIRC, it's more complicated than that, xbps and stack/cabal/etc. don't go along very well.
@xaltsc should xmobar be added to that list as well ? I don't know if xmobar can be used on other WM ... If not I will added it to the commit
I don't use xmobar anymore, but there's a chance that xmobar may work if the binary is successfully instance since xmobar can be used without a xmobar.hs.
xmobar is fine and works well.
xmonad got removed. Introducing it again with issues resolved, possibly by getting away with recompilation by making it restricted and asking to rebuild with xbps-src is still an option.
The xmonad-contrib template seems to compile the package successfully, but it doesn't install the files.
Ideally it would be a simple fix for someone familiar with xbps-src.
I'd appreciate it if you elaborate a bit further. AFAIK void-src is used for foreign packages, right? I already attempted more than twice, and it's frustrating it won't work even implementing both methods cabal and stack. Although I'd tried on Fedora and it's work great but in Void Linux, I see some missing files.
@riseekrthakur ./xbps-src is used to build XBPS packages.
I successfully installed xmonad and xmonad-contrib in Void Linux via cabal. See https://github.com/void-linux/void-packages/issues/6414#issuecomment-760591521
Installation is not a headache on my end either, the only problem I'm running into is that it won't create a build directory inside the ~/.config/xmonad and so on it complaining about "Could not find the module $NAMED" also a hard time in recompiling xmonad.