From oneself at gmail.com Sun Oct 20 17:46:57 2024 From: oneself at gmail.com (Eyal Erez) Date: Sun, 20 Oct 2024 20:46:57 +0300 Subject: [xmonad] Could not load modules after recent update Message-ID: Hi, I use xmonad on arch linux. I've recently updated my system, as one often does, and now my xmonad.hs is failing to compile and I am failing to start xmonad. Here is an example of an error: xmonad.hs:3:1: error: Could not load module ‘XMonad.Actions.CycleWS’ It is a member of the package ‘xmonad-contrib-0.18.1-Hn3tyQ1hgcfBs6gP5hIKJ’ which is unusable due to missing dependencies: random-1.2.1.2-4MvNAJNQIvxGHtrKNblxG1 Use -v (or `:set -v` in ghci) to see a list of the files searched for. | 3 | import XMonad.Actions.CycleWS | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ The full log is here: https://pastebin.com/KkFQQSwU It seems that xmonad-contrib is missing the "random" library. I've tried reinstalling xmonad, xmonad-contrib, haskell-random, and any other library I can think of. However, it does not seem to improve the situation. Is there anything I can do to debug this further? Here are some of my installed package versions: xmonad 0.18.0-20 xmonad-contrib 0.18.1-5 haskell-random 1.2.1.2-16 Thank you kindly -- There are 10 types of people, those who know binary and those who don't. -------------- next part -------------- An HTML attachment was scrubbed... URL: From platon7pronko at gmail.com Sun Oct 20 18:03:03 2024 From: platon7pronko at gmail.com (Platon Pronko) Date: Sun, 20 Oct 2024 20:03:03 +0200 Subject: [xmonad] Could not load modules after recent update In-Reply-To: References: Message-ID: <9e4dffc9-32ea-4d9e-ae33-94961fa6002a@gmail.com> On 2024-10-20 19:46, Eyal Erez wrote: > Hi, > > I use xmonad on arch linux. I've recently updated my system, as one > often does, and now my xmonad.hs is failing to compile and I am failing to > start xmonad. > Might not be very helpful, but I'm also on Arch and I moved from using system-provided Haskell packages for my xmonad needs. System-provided packages are upgraded almost on every update, and xmonad has to be recompiled every time, and if you forget to recompile it then after a reboot your DE won't work and you have to drop to a tty to fix that. Also, there is a truckload of haskell packages and they clutter up the update logs - removing them freshened up things considerably. So I can't help you with this particular problem, but I can help you transition to stack-based install, which has the nice benefit of not breaking on system updates. (however, it has the downside of taking 13GB of space in the ~/.stack/ folder, YMMV) -- Best regards, Platon Pronko PGP 2A62D77A7A2CB94E From allbery.b at gmail.com Sun Oct 20 18:14:00 2024 From: allbery.b at gmail.com (Brandon Allbery) Date: Sun, 20 Oct 2024 14:14:00 -0400 Subject: [xmonad] Could not load modules after recent update In-Reply-To: <9e4dffc9-32ea-4d9e-ae33-94961fa6002a@gmail.com> References: <9e4dffc9-32ea-4d9e-ae33-94961fa6002a@gmail.com> Message-ID: For what it's worth, the Arch Wiki warns about this ( https://wiki.archlinux.org/title/Xmonad#Problems_with_finding_shared_libraries_after_update) and gives solutions. The way Arch manages its Haskell packages causes problems like this. On Sun, Oct 20, 2024 at 2:03 PM Platon Pronko wrote: > On 2024-10-20 19:46, Eyal Erez wrote: > > Hi, > > > > I use xmonad on arch linux. I've recently updated my system, as one > > often does, and now my xmonad.hs is failing to compile and I am failing > to > > start xmonad. > > > > Might not be very helpful, but I'm also on Arch and I moved from using > system-provided Haskell packages for my xmonad needs. > > System-provided packages are upgraded almost on every update, and xmonad > has to be recompiled every time, and if you forget to recompile it then > after a reboot your DE won't work and you have to drop to a tty to fix that. > > Also, there is a truckload of haskell packages and they clutter up the > update logs - removing them freshened up things considerably. > > So I can't help you with this particular problem, but I can help you > transition to stack-based install, which has the nice benefit of not > breaking on system updates. > (however, it has the downside of taking 13GB of space in the ~/.stack/ > folder, YMMV) > > -- > Best regards, > Platon Pronko > PGP 2A62D77A7A2CB94E > _______________________________________________ > xmonad mailing list > xmonad at haskell.org > http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad > -- brandon s allbery kf8nh allbery.b at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From oneself at gmail.com Tue Oct 22 12:38:23 2024 From: oneself at gmail.com (Eyal Erez) Date: Tue, 22 Oct 2024 15:38:23 +0300 Subject: [xmonad] Could not load modules after recent update In-Reply-To: References: <9e4dffc9-32ea-4d9e-ae33-94961fa6002a@gmail.com> Message-ID: I've tried some of the suggested solutions in the arch linux wiki, but they do not seem to work. I built everything from scratch using stack and seems to be back to working. Thank you for the suggestion. I built xmonad and xmonad-contrib off of the v0.18.0 and v0.18.1 tags respectively. How and how often do you upgrade your installation? On Sun, Oct 20, 2024 at 9:23 PM Brandon Allbery wrote: > For what it's worth, the Arch Wiki warns about this ( > https://wiki.archlinux.org/title/Xmonad#Problems_with_finding_shared_libraries_after_update) > and gives solutions. The way Arch manages its Haskell packages causes > problems like this. > > On Sun, Oct 20, 2024 at 2:03 PM Platon Pronko > wrote: > >> On 2024-10-20 19:46, Eyal Erez wrote: >> > Hi, >> > >> > I use xmonad on arch linux. I've recently updated my system, as one >> > often does, and now my xmonad.hs is failing to compile and I am failing >> to >> > start xmonad. >> > >> >> Might not be very helpful, but I'm also on Arch and I moved from using >> system-provided Haskell packages for my xmonad needs. >> >> System-provided packages are upgraded almost on every update, and xmonad >> has to be recompiled every time, and if you forget to recompile it then >> after a reboot your DE won't work and you have to drop to a tty to fix that. >> >> Also, there is a truckload of haskell packages and they clutter up the >> update logs - removing them freshened up things considerably. >> >> So I can't help you with this particular problem, but I can help you >> transition to stack-based install, which has the nice benefit of not >> breaking on system updates. >> (however, it has the downside of taking 13GB of space in the ~/.stack/ >> folder, YMMV) >> >> -- >> Best regards, >> Platon Pronko >> PGP 2A62D77A7A2CB94E >> _______________________________________________ >> xmonad mailing list >> xmonad at haskell.org >> http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad >> > > > -- > brandon s allbery kf8nh > allbery.b at gmail.com > _______________________________________________ > xmonad mailing list > xmonad at haskell.org > http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad > -- *Eyal Erez <**oneself at gmail.com* *>* There are 10 types of people, those who know binary and those who don't. -------------- next part -------------- An HTML attachment was scrubbed... URL: From allbery.b at gmail.com Tue Oct 22 15:13:01 2024 From: allbery.b at gmail.com (Brandon Allbery) Date: Tue, 22 Oct 2024 11:13:01 -0400 Subject: [xmonad] Could not load modules after recent update In-Reply-To: References: <9e4dffc9-32ea-4d9e-ae33-94961fa6002a@gmail.com> Message-ID: I upgrade weekly, but I'm a dev so I'm expected to keep on top of `master`. On Tue, Oct 22, 2024 at 8:39 AM Eyal Erez wrote: > I've tried some of the suggested solutions in the arch linux wiki, but > they do not seem to work. > > I built everything from scratch using stack and seems to be back to > working. Thank you for the suggestion. > > I built xmonad and xmonad-contrib off of the v0.18.0 and v0.18.1 tags > respectively. How and how often do you upgrade your installation? > > On Sun, Oct 20, 2024 at 9:23 PM Brandon Allbery > wrote: > >> For what it's worth, the Arch Wiki warns about this ( >> https://wiki.archlinux.org/title/Xmonad#Problems_with_finding_shared_libraries_after_update) >> and gives solutions. The way Arch manages its Haskell packages causes >> problems like this. >> >> On Sun, Oct 20, 2024 at 2:03 PM Platon Pronko >> wrote: >> >>> On 2024-10-20 19:46, Eyal Erez wrote: >>> > Hi, >>> > >>> > I use xmonad on arch linux. I've recently updated my system, as one >>> > often does, and now my xmonad.hs is failing to compile and I am >>> failing to >>> > start xmonad. >>> > >>> >>> Might not be very helpful, but I'm also on Arch and I moved from using >>> system-provided Haskell packages for my xmonad needs. >>> >>> System-provided packages are upgraded almost on every update, and xmonad >>> has to be recompiled every time, and if you forget to recompile it then >>> after a reboot your DE won't work and you have to drop to a tty to fix that. >>> >>> Also, there is a truckload of haskell packages and they clutter up the >>> update logs - removing them freshened up things considerably. >>> >>> So I can't help you with this particular problem, but I can help you >>> transition to stack-based install, which has the nice benefit of not >>> breaking on system updates. >>> (however, it has the downside of taking 13GB of space in the ~/.stack/ >>> folder, YMMV) >>> >>> -- >>> Best regards, >>> Platon Pronko >>> PGP 2A62D77A7A2CB94E >>> _______________________________________________ >>> xmonad mailing list >>> xmonad at haskell.org >>> http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad >>> >> >> >> -- >> brandon s allbery kf8nh >> allbery.b at gmail.com >> _______________________________________________ >> xmonad mailing list >> xmonad at haskell.org >> http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad >> > > > -- > *Eyal Erez <**oneself at gmail.com* *>* > > There are 10 types of people, those who know binary and those who don't. > > -- brandon s allbery kf8nh allbery.b at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From oneself at gmail.com Sat Oct 26 14:34:50 2024 From: oneself at gmail.com (Eyal Erez) Date: Sat, 26 Oct 2024 17:34:50 +0300 Subject: [xmonad] Could not load modules after recent update In-Reply-To: References: <9e4dffc9-32ea-4d9e-ae33-94961fa6002a@gmail.com> Message-ID: Got it. And what do you do to fully rebuild? git pull [...]; stack upgrade; stack install? On Tue, Oct 22, 2024 at 6:13 PM Brandon Allbery wrote: > I upgrade weekly, but I'm a dev so I'm expected to keep on top of `master`. > > On Tue, Oct 22, 2024 at 8:39 AM Eyal Erez wrote: > >> I've tried some of the suggested solutions in the arch linux wiki, but >> they do not seem to work. >> >> I built everything from scratch using stack and seems to be back to >> working. Thank you for the suggestion. >> >> I built xmonad and xmonad-contrib off of the v0.18.0 and v0.18.1 tags >> respectively. How and how often do you upgrade your installation? >> >> On Sun, Oct 20, 2024 at 9:23 PM Brandon Allbery >> wrote: >> >>> For what it's worth, the Arch Wiki warns about this ( >>> https://wiki.archlinux.org/title/Xmonad#Problems_with_finding_shared_libraries_after_update) >>> and gives solutions. The way Arch manages its Haskell packages causes >>> problems like this. >>> >>> On Sun, Oct 20, 2024 at 2:03 PM Platon Pronko >>> wrote: >>> >>>> On 2024-10-20 19:46, Eyal Erez wrote: >>>> > Hi, >>>> > >>>> > I use xmonad on arch linux. I've recently updated my system, as one >>>> > often does, and now my xmonad.hs is failing to compile and I am >>>> failing to >>>> > start xmonad. >>>> > >>>> >>>> Might not be very helpful, but I'm also on Arch and I moved from using >>>> system-provided Haskell packages for my xmonad needs. >>>> >>>> System-provided packages are upgraded almost on every update, and >>>> xmonad has to be recompiled every time, and if you forget to recompile it >>>> then after a reboot your DE won't work and you have to drop to a tty to fix >>>> that. >>>> >>>> Also, there is a truckload of haskell packages and they clutter up the >>>> update logs - removing them freshened up things considerably. >>>> >>>> So I can't help you with this particular problem, but I can help you >>>> transition to stack-based install, which has the nice benefit of not >>>> breaking on system updates. >>>> (however, it has the downside of taking 13GB of space in the ~/.stack/ >>>> folder, YMMV) >>>> >>>> -- >>>> Best regards, >>>> Platon Pronko >>>> PGP 2A62D77A7A2CB94E >>>> _______________________________________________ >>>> xmonad mailing list >>>> xmonad at haskell.org >>>> http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad >>>> >>> >>> >>> -- >>> brandon s allbery kf8nh >>> allbery.b at gmail.com >>> _______________________________________________ >>> xmonad mailing list >>> xmonad at haskell.org >>> http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad >>> >> >> >> -- >> *Eyal Erez <**oneself at gmail.com* *>* >> >> There are 10 types of people, those who know binary and those who don't. >> >> > > -- > brandon s allbery kf8nh > allbery.b at gmail.com > -- *Eyal Erez <**oneself at gmail.com* *>* There are 10 types of people, those who know binary and those who don't. -------------- next part -------------- An HTML attachment was scrubbed... URL: From allbery.b at gmail.com Sat Oct 26 14:40:24 2024 From: allbery.b at gmail.com (Brandon Allbery) Date: Sat, 26 Oct 2024 10:40:24 -0400 Subject: [xmonad] Could not load modules after recent update In-Reply-To: References: <9e4dffc9-32ea-4d9e-ae33-94961fa6002a@gmail.com> Message-ID: I use cabal, not stack. I have an upgrade script but it basically builds xmonad exe, X11 lib, xmonad lib, xmonad-contrib lib, then my config. https://github.com/geekosaur/xmonad.hs/blob/hilfy-2023/update.sh On Sat, Oct 26, 2024 at 10:35 AM Eyal Erez wrote: > Got it. > > And what do you do to fully rebuild? git pull [...]; stack upgrade; stack > install? > > On Tue, Oct 22, 2024 at 6:13 PM Brandon Allbery > wrote: > >> I upgrade weekly, but I'm a dev so I'm expected to keep on top of >> `master`. >> >> On Tue, Oct 22, 2024 at 8:39 AM Eyal Erez wrote: >> >>> I've tried some of the suggested solutions in the arch linux wiki, but >>> they do not seem to work. >>> >>> I built everything from scratch using stack and seems to be back to >>> working. Thank you for the suggestion. >>> >>> I built xmonad and xmonad-contrib off of the v0.18.0 and v0.18.1 tags >>> respectively. How and how often do you upgrade your installation? >>> >>> On Sun, Oct 20, 2024 at 9:23 PM Brandon Allbery >>> wrote: >>> >>>> For what it's worth, the Arch Wiki warns about this ( >>>> https://wiki.archlinux.org/title/Xmonad#Problems_with_finding_shared_libraries_after_update) >>>> and gives solutions. The way Arch manages its Haskell packages causes >>>> problems like this. >>>> >>>> On Sun, Oct 20, 2024 at 2:03 PM Platon Pronko >>>> wrote: >>>> >>>>> On 2024-10-20 19:46, Eyal Erez wrote: >>>>> > Hi, >>>>> > >>>>> > I use xmonad on arch linux. I've recently updated my system, as one >>>>> > often does, and now my xmonad.hs is failing to compile and I am >>>>> failing to >>>>> > start xmonad. >>>>> > >>>>> >>>>> Might not be very helpful, but I'm also on Arch and I moved from using >>>>> system-provided Haskell packages for my xmonad needs. >>>>> >>>>> System-provided packages are upgraded almost on every update, and >>>>> xmonad has to be recompiled every time, and if you forget to recompile it >>>>> then after a reboot your DE won't work and you have to drop to a tty to fix >>>>> that. >>>>> >>>>> Also, there is a truckload of haskell packages and they clutter up the >>>>> update logs - removing them freshened up things considerably. >>>>> >>>>> So I can't help you with this particular problem, but I can help you >>>>> transition to stack-based install, which has the nice benefit of not >>>>> breaking on system updates. >>>>> (however, it has the downside of taking 13GB of space in the ~/.stack/ >>>>> folder, YMMV) >>>>> >>>>> -- >>>>> Best regards, >>>>> Platon Pronko >>>>> PGP 2A62D77A7A2CB94E >>>>> _______________________________________________ >>>>> xmonad mailing list >>>>> xmonad at haskell.org >>>>> http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad >>>>> >>>> >>>> >>>> -- >>>> brandon s allbery kf8nh >>>> allbery.b at gmail.com >>>> _______________________________________________ >>>> xmonad mailing list >>>> xmonad at haskell.org >>>> http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad >>>> >>> >>> >>> -- >>> *Eyal Erez <**oneself at gmail.com* *>* >>> >>> There are 10 types of people, those who know binary and those who don't. >>> >>> >> >> -- >> brandon s allbery kf8nh >> allbery.b at gmail.com >> > > > -- > *Eyal Erez <**oneself at gmail.com* *>* > > There are 10 types of people, those who know binary and those who don't. > > -- brandon s allbery kf8nh allbery.b at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From rdiaz02 at gmail.com Thu Oct 31 08:08:55 2024 From: rdiaz02 at gmail.com (Ramon Diaz-Uriarte) Date: Thu, 31 Oct 2024 09:08:55 +0100 Subject: [xmonad] DynamicProjects: creating a new project that partially matches predefined project Message-ID: <87bjz01yp4.fsf@gmail.com> Dear All, I use XMonad.Actions.DynamicProjects. I have a bunch of configured, predefined projects, say one with name "emacs". Now, when I use switchProjectPrompt, I do not know how to create a new (not predefined) project called "em": as soon as I type "em" it matches "emacs" and on pressing enter the "emacs" project is created. The only solution I've found is to type "em1" or similar, to prevent matching but I guess there must be a simpler way that I am missing. Thanks, R. -- Ramon Diaz-Uriarte Department of Biochemistry, Lab B-31 Facultad de Medicina Universidad Autónoma de Madrid Arzobispo Morcillo, 4 28029 Madrid Spain Phone: +34-91-497-2412 Email: rdiaz02 at gmail.com r.diaz at uam.es ramon.diaz at iib.uam.es https://ligarto.org/rdiaz From allbery.b at gmail.com Thu Oct 31 15:45:49 2024 From: allbery.b at gmail.com (Brandon Allbery) Date: Thu, 31 Oct 2024 11:45:49 -0400 Subject: [xmonad] DynamicProjects: creating a new project that partially matches predefined project In-Reply-To: <87bjz01yp4.fsf@gmail.com> References: <87bjz01yp4.fsf@gmail.com> Message-ID: This is an interesting issue. I *think* you need to change your XPConfig to change autoComplete to Nothing so the completion isn't auto-selected. It would be nice if switchProjectPrompt did this automatically, though. On Thu, Oct 31, 2024 at 4:09 AM Ramon Diaz-Uriarte wrote: > Dear All, > > I use XMonad.Actions.DynamicProjects. I have a bunch of configured, > predefined projects, say one with name "emacs". Now, when I use > switchProjectPrompt, I do not know how to create a new (not predefined) > project called "em": as soon as I type "em" it matches "emacs" and on > pressing enter the "emacs" project is created. The only solution I've found > is to type "em1" or similar, to prevent matching but I guess there must be > a simpler way that I am missing. > > Thanks, > > R. > > > -- > Ramon Diaz-Uriarte > Department of Biochemistry, Lab B-31 > Facultad de Medicina > Universidad Autónoma de Madrid > Arzobispo Morcillo, 4 > 28029 Madrid > Spain > > Phone: +34-91-497-2412 > > Email: rdiaz02 at gmail.com > r.diaz at uam.es > ramon.diaz at iib.uam.es > > https://ligarto.org/rdiaz > > > _______________________________________________ > xmonad mailing list > xmonad at haskell.org > http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad > -- brandon s allbery kf8nh allbery.b at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From rdiaz02 at gmail.com Thu Oct 31 21:33:42 2024 From: rdiaz02 at gmail.com (Ramon Diaz-Uriarte) Date: Thu, 31 Oct 2024 22:33:42 +0100 Subject: [xmonad] DynamicProjects: creating a new project that partially matches predefined project In-Reply-To: (Brandon Allbery's message of "Thu, 31 Oct 2024 11:45:49 -0400") References: <87bjz01yp4.fsf@gmail.com> Message-ID: <874j4s9cuh.fsf@gmail.com> Thanks, but I tried and it does not seem to solve it. These are the relevant bits of my xmonad.hs myProjectConfig = def { font = "xft:Inconsolata:size=14:bold:antialias=true" , position = CenteredAt (1/2) (1/2) , fgColor = "White" , bgColor = "#454545" , height = 36 , searchPredicate = fuzzyMatch , sorter = fuzzySort , autoComplete = Nothing } ("M-w", switchProjectPrompt myProjectConfig) I've commented out the fuzzyMatch and fuzzSort , but that does not help. Best, R. On Thu, 31-October-2024, at 16:45:49, Brandon Allbery wrote: > This is an interesting issue. I think you need to change your XPConfig to change autoComplete to Nothing so the completion isn't auto-selected. It > would be nice if switchProjectPrompt did this automatically, though. > > On Thu, Oct 31, 2024 at 4:09 AM Ramon Diaz-Uriarte wrote: > > Dear All, > > I use XMonad.Actions.DynamicProjects. I have a bunch of configured, predefined projects, say one with name "emacs". Now, when I use > switchProjectPrompt, I do not know how to create a new (not predefined) project called "em": as soon as I type "em" it matches "emacs" and > on pressing enter the "emacs" project is created. The only solution I've found is to type "em1" or similar, to prevent matching but I guess > there must be a simpler way that I am missing. > > Thanks, > > R. > > -- > Ramon Diaz-Uriarte > Department of Biochemistry, Lab B-31 > Facultad de Medicina > Universidad Autónoma de Madrid > Arzobispo Morcillo, 4 > 28029 Madrid > Spain > > Phone: +34-91-497-2412 > > Email: rdiaz02 at gmail.com > r.diaz at uam.es > ramon.diaz at iib.uam.es > > https://ligarto.org/rdiaz > > _______________________________________________ > xmonad mailing list > xmonad at haskell.org > http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad -- Ramon Diaz-Uriarte Department of Biochemistry, Lab B-31 Facultad de Medicina Universidad Autónoma de Madrid Arzobispo Morcillo, 4 28029 Madrid Spain Phone: +34-91-497-2412 Email: rdiaz02 at gmail.com r.diaz at uam.es ramon.diaz at iib.uam.es https://ligarto.org/rdiaz