!ZmUSesoOjmVsKbzFbp:nixos.org

Nix Emacs

784 Members
All things Nix/Emacs! https://github.com/nix-community/emacs-overlay | For Doom Emacs: https://matrix.to/#/#doom-emacs:nixos.org176 Servers

Load older messages


SenderMessageTime
22 Dec 2024
@ian:rainingmessages.devian joined the room.09:04:39
@pallas_42:matrix.orgphasmid joined the room.16:27:31
@allrealmsoflife:matrix.orgallrealmsoflife joined the room.20:28:41
24 Dec 2024
@qbit:tapenet.orgqbit huh, seems gs is missing from the latest texlive stuff 00:53:49
@misha:pub.solarmisha joined the room.09:26:31
@misha:pub.solarmisha Hi all, I (think) I have been closely following this manual for installing Emacs on NixOS, but with this set-up, when I run Emacs, it cannot find the packages that I have installed (in this test case only evil). Do you maybe have any tips? 09:31:50
@misha:pub.solarmisha(I can see that packages are installed in the /nix/store...)09:32:35
@misha:pub.solarmishaIt's just that Emacs doesn't find them09:32:43
@misha:pub.solarmishaI would say it's an issue of load-path? But I'm a bit stuck.09:33:24
@adis:blad.isadisbladis The ((emacsPackagesFor emacs30).emacsWithPackages bit returns a wrapped Emacs with all the packages available, but you also have emacs30 above which is an unwrapped emacs 09:38:49
@adis:blad.isadisbladisYou'll want to remove the unwrapped one09:39:18
@misha:pub.solarmishaAh... How stupid. Thank you so much.10:00:16
26 Dec 2024
@tubobo:matrix.orgtubobo joined the room.00:37:02
@tubobo:matrix.orgtubobo

Folks my emacs kept on crashing after a recent nixos rebuild. I'm on NixOS running KDE Plasma 6.2.4, on nixos-unstable. My doom-emacs config hasn't changed for more than a year. I've tried changing package to emacs, emacs30, emacs30-pgtk etc and none of them works. emacs -nw and emacs -q works fine.

Fatal error 11: Segmentation fault
Backtrace:
/nix/store/laalwa0p76k3vqc4z7hvdjgir47ncgl8-emacs-pgtk-30.0.92/bin/emacs() [0x538468]
/nix/store/laalwa0p76k3vqc4z7hvdjgir47ncgl8-emacs-pgtk-30.0.92/bin/emacs() [0x422995]
/nix/store/laalwa0p76k3vqc4z7hvdjgir47ncgl8-emacs-pgtk-30.0.92/bin/emacs() [0x422f09]
/nix/store/laalwa0p76k3vqc4z7hvdjgir47ncgl8-emacs-pgtk-30.0.92/bin/emacs() [0x536258]
/nix/store/laalwa0p76k3vqc4z7hvdjgir47ncgl8-emacs-pgtk-30.0.92/bin/emacs() [0x5362dc]
/nix/store/wn7v2vhyyyi6clcyn0s9ixvl7d4d87ic-glibc-2.40-36/lib/libc.so.6(+0x40620) [0x7fb7068de620]
/nix/store/laalwa0p76k3vqc4z7hvdjgir47ncgl8-emacs-pgtk-30.0.92/bin/emacs() [0x44a349]
/nix/store/laalwa0p76k3vqc4z7hvdjgir47ncgl8-emacs-pgtk-30.0.92/bin/emacs() [0x4633e1]
/nix/store/laalwa0p76k3vqc4z7hvdjgir47ncgl8-emacs-pgtk-30.0.92/bin/emacs() [0x464221]
/nix/store/laalwa0p76k3vqc4z7hvdjgir47ncgl8-emacs-pgtk-30.0.92/bin/emacs() [0x464c80]
/nix/store/laalwa0p76k3vqc4z7hvdjgir47ncgl8-emacs-pgtk-30.0.92/bin/emacs() [0x45df56]
/nix/store/laalwa0p76k3vqc4z7hvdjgir47ncgl8-emacs-pgtk-30.0.92/bin/emacs() [0x468d98]
/nix/store/laalwa0p76k3vqc4z7hvdjgir47ncgl8-emacs-pgtk-30.0.92/bin/emacs() [0x466966]
/nix/store/laalwa0p76k3vqc4z7hvdjgir47ncgl8-emacs-pgtk-30.0.92/bin/emacs() [0x46f6e0]
/nix/store/laalwa0p76k3vqc4z7hvdjgir47ncgl8-emacs-pgtk-30.0.92/bin/emacs() [0x473ef0]
/nix/store/laalwa0p76k3vqc4z7hvdjgir47ncgl8-emacs-pgtk-30.0.92/bin/emacs() [0x4949b1]
/nix/store/laalwa0p76k3vqc4z7hvdjgir47ncgl8-emacs-pgtk-30.0.92/bin/emacs() [0x4955fb]
/nix/store/laalwa0p76k3vqc4z7hvdjgir47ncgl8-emacs-pgtk-30.0.92/bin/emacs() [0x5a76fc]
/nix/store/laalwa0p76k3vqc4z7hvdjgir47ncgl8-emacs-pgtk-30.0.92/bin/emacs() [0x448459]
/nix/store/laalwa0p76k3vqc4z7hvdjgir47ncgl8-emacs-pgtk-30.0.92/bin/emacs() [0x47dc4d]
/nix/store/laalwa0p76k3vqc4z7hvdjgir47ncgl8-emacs-pgtk-30.0.92/bin/emacs() [0x524004]
/nix/store/laalwa0p76k3vqc4z7hvdjgir47ncgl8-emacs-pgtk-30.0.92/bin/emacs() [0x528229]
/nix/store/laalwa0p76k3vqc4z7hvdjgir47ncgl8-emacs-pgtk-30.0.92/bin/emacs() [0x52a5b2]
/nix/store/laalwa0p76k3vqc4z7hvdjgir47ncgl8-emacs-pgtk-30.0.92/bin/emacs() [0x5a7667]
/nix/store/laalwa0p76k3vqc4z7hvdjgir47ncgl8-emacs-pgtk-30.0.92/bin/emacs() [0x514946]
/nix/store/laalwa0p76k3vqc4z7hvdjgir47ncgl8-emacs-pgtk-30.0.92/bin/emacs() [0x5a7553]
/nix/store/laalwa0p76k3vqc4z7hvdjgir47ncgl8-emacs-pgtk-30.0.92/bin/emacs() [0x5148d9]
/nix/store/laalwa0p76k3vqc4z7hvdjgir47ncgl8-emacs-pgtk-30.0.92/bin/emacs() [0x51970a]
/nix/store/laalwa0p76k3vqc4z7hvdjgir47ncgl8-emacs-pgtk-30.0.92/bin/emacs() [0x519aaf]
/nix/store/laalwa0p76k3vqc4z7hvdjgir47ncgl8-emacs-pgtk-30.0.92/bin/emacs() [0x42bd2a]
/nix/store/wn7v2vhyyyi6clcyn0s9ixvl7d4d87ic-glibc-2.40-36/lib/libc.so.6(+0x2a27e) [0x7fb7068c827e]
/nix/store/wn7v2vhyyyi6clcyn0s9ixvl7d4d87ic-glibc-2.40-36/lib/libc.so.6(__libc_start_main+0x89) [0x7fb7068c8339]
/nix/store/laalwa0p76k3vqc4z7hvdjgir47ncgl8-emacs-pgtk-30.0.92/bin/emacs() [0x42c365]
fish: Job 1, 'emacs' terminated by signal SIGSEGV (Address boundary error)
00:55:57
@10leej:matrix.org@10leej:matrix.org left the room.01:42:06
@rrix:aelf.landrrixthat is not a valuable stack trace unfortunately03:55:19
@rrix:aelf.landrrixhttps://nixos.wiki/wiki/Debug_Symbols03:55:55
@tubobo:matrix.orgtuboboit seems getting the debug symbols is quite involved haha... a bit beyond my nix-fu04:31:38
@rrix:aelf.landrrixwherever you set your emacs package you can call overrideAttrs on it to specify dontStrip etc https://nixos.org/manual/nixpkgs/stable/#sec-pkg-overrideAttrs04:35:21
@rrix:aelf.landrrixthe nix-build example oneliner too in that debug symbols page should get you there04:36:18
@rrix:aelf.landrrix on my phone but sth like nix-build -E 'with import <nixpkgs> {}; enableDebugging emacs' 04:36:58
@rrix:aelf.landrrixbit more of a pain to use the oxerlay version tho04:37:16
@tubobo:matrix.orgtubobothank you so much. will this work for nix flake?04:38:08
@rrix:aelf.landrrixoh i forgot that gdb needs source etc i see what you mean 04:38:21
@rrix:aelf.landrrixbut you can still get the emacs stack without going all the way down the rabbit hole04:38:51
@rrix:aelf.landrrix
In reply to @tubobo:matrix.org
thank you so much. will this work for nix flake?
enableDebugging is just a function in nixpkgs, you can access it in flake outputs sure
04:39:52
* @rrix:aelf.landrrix afk04:40:14
@tubobo:matrix.orgtubobo So, I recompiled emacs with the dontStripe attribute, and this failed to compile until after I removed emacsPackage.vterm. After that emacs is starting fine. 04:59:44
@tubobo:matrix.orgtubobothank you @rrix for helping out05:08:20
@rrix:aelf.landrrixlol ofc its a heisenbug crash that goes away when you enable symbols 🤣06:09:23

Show newer messages


Back to Room ListRoom Version: 6