Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

guix-system-from-file fails #31

Open
FrozenPigs opened this issue Apr 9, 2019 · 3 comments
Open

guix-system-from-file fails #31

FrozenPigs opened this issue Apr 9, 2019 · 3 comments

Comments

@FrozenPigs
Copy link

When I use guix-system-from-file on my system config it fails, I used (setq debug-on-error t) to get the backtrace below:

Debugger entered--Lisp error: (wrong-type-argument markerp nil)
  marker-position(nil)
  geiser-repl--narrow-to-prompt()
  geiser-repl--wrap-unfontify-region-function(1 419)
  font-lock-unfontify-region(1 419)
  font-lock-default-unfontify-buffer()
  font-lock-unfontify-buffer()
  font-lock-mode-internal(nil)
  font-lock-default-function(nil)
  font-lock-mode(-1)
  font-lock-change-mode()
  kill-all-local-variables()
  comint-mode()
  geiser-repl-mode()
  guix-start-repl(#<buffer *Guix Internal REPL*> "/tmp/emacs-guix-WyITVu/repl-socket")
  guix-start-repl-maybe(internal)
  guix-start-process-maybe()
  guix-get-repl-buffer(internal)
  guix-eval-read("(system-sexps 'from-file '(\"/home/wednesday/.guix-packages/wed/system/pc.scm\") '(file number-of-packages number-of-services kernel bootloader firmware initrd-modules))")
  guix-system-get-entries(from-file ("/home/wednesday/.guix-packages/wed/system/pc.scm") (file number-of-packages number-of-services kernel bootloader firmware initrd-modules))
  guix-system-info-get-entries(from-file "/home/wednesday/.guix-packages/wed/system/pc.scm")
  apply(guix-system-info-get-entries (from-file "/home/wednesday/.guix-packages/wed/system/pc.scm"))
  bui-get-entries(guix-system info (from-file "/home/wednesday/.guix-packages/wed/system/pc.scm"))
  bui-get-display-entries(guix-system info (from-file "/home/wednesday/.guix-packages/wed/system/pc.scm"))
  guix-system-get-display(from-file "/home/wednesday/.guix-packages/wed/system/pc.scm")
  guix-system-from-file("/home/wednesday/.guix-packages/wed/system/pc.scm")
  funcall-interactively(guix-system-from-file "/home/wednesday/.guix-packages/wed/system/pc.scm")
  call-interactively(guix-system-from-file)
  magit-invoke-popup-action(121)
  funcall-interactively(magit-invoke-popup-action 121)
  call-interactively(magit-invoke-popup-action nil nil)
  command-execute(magit-invoke-popup-action)

By looking at it, this could end in a problem with guiser but since it stems from guix I brought the issue here.

@alezost
Copy link
Owner

alezost commented Apr 24, 2019

Hello and sorry for the long delay 😊

What happens, if you simply run Geiser (M-x run-guile) or if you run some other Emacs-Guix command (for example, M-x guix-installed-packages)? I mean do you have any errors?

@FrozenPigs
Copy link
Author

I can use geiser fine, same with most all of the emacs.el commands, the only ones that I remember having problems are the 3 that use the system config.

@alezost
Copy link
Owner

alezost commented Apr 27, 2019

Hm, did you install emacs-guix with Guix? If so, maybe you didn't update it for some time, so it may not be in sync with the current Guix.

Recently another strange problem was reported on mailing list, and Ludovic rightly guessed that it happened because of the Guix ABI change:
https://lists.gnu.org/archive/html/help-guix/2019-04/msg00075.html

So, could you please reinstall Emacs-Guix (with guix package -u emacs-guix) and check if the error stays.

Oh, also please make sure that guix system build builds your config successfully.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants