Skip to content

geiser-edit-symbol-at-point Does not work as expected

I have the follow code, using Guix operating-system

(define %system-os
  (operating-system
    (host-name "vm")
    (timezone "Etc/UTC")
    (locale "en_US.UTF-8")
    (bootloader (bootloader-configuration
		  (bootloader
		    (bootloader
		      (inherit grub-bootloader)
		      (installer #~(const #true))))))
    (file-systems (cons* (file-system
			   (mount-point "/")
			   (device "/dev/xvda1")
			   (type "xfs"))
			 %base-file-systems))

    (initrd-modules (cons "virtio_scsi"
			  %base-initrd-modules))

    ;; more config...)

When I try to use geiser-edit-symbol-at-point I just get Couldn’t find location for ’operating-system’ it's a record in scheme, I have export GUILE_LOAD_PATH="$(pwd):$GUILE_LOAD_PATH" with values as /my-path/servers:/run/current-system/profile/share/guile/site/3.0.

In the REPL %load-path returns:

$7 = ("/my-home/.emacs.d/elpa/geiser-guile-20240920.35/src" "/my-path/servers" "/run/current-system/profile/share/guile/site/3.0" "/gnu/store/37m0a0ydy74wl2qrf2w1jdgqhxwbaxac-guile-3.0.9/share/guile/3.0" "/gnu/store/37m0a0ydy74wl2qrf2w1jdgqhxwbaxac-guile-3.0.9/share/guile/site/3.0" "/gnu/store/37m0a0ydy74wl2qrf2w1jdgqhxwbaxac-guile-3.0.9/share/guile/site" "/gnu/store/37m0a0ydy74wl2qrf2w1jdgqhxwbaxac-guile-3.0.9/share/guile")

those paths have the source code available of Guix (/run/current-system/profile/share/guile/site/3.0/guix/), if in the REPL I do ,use (gnu) now geiser-edit-symbol-at-point works partially, it jump to the file where operating-system is defined, but not to the exact line.

Also, If I go to locale and type M-. again I get Couldn’t find location for ’locale’ but that is part of the same file

Edited by Camilo Q.S