Hello Guix, Is it a bug or am I missing something?
I want to make a (geiser-mode-switch-to-repl-and-enter) in
(gnu services networking) module.
(gnu services networking) uses (gnu services base) module
(define-module (gnu services networking)
;; …
#:use-module (gnu services base)
;; …
)
(gnu services base) uses (gnu services networking) module
(define-module (gnu services base)
;; …
#:use-module (gnu services networking)
;; …
))
So, to avoid following error I need to manually call
(use-modules (gnu services base)) before switching to
(gnu services networking) module in the REPL.
gnu/services/base.scm:1889:8: gnu/services/base.scm:1889:8: Unbound
variable: static-networking-service-type
$ guix environment --pure --ad-hoc guix guile -- guile --no-auto-compile -e
"(resolve-module '(gnu services networking))"
substitute: updating list of substitutes from 'https://berlin.guixsd.org'...
100.0%
substitute: updating list of substitutes from 'https://mirror.hydra.gnu.org'...
100.0%
substitute: updating list of substitutes from 'https://hydra.gnu.org'... 100.0%
The following derivations will be built:
/gnu/store/wqfqwnfza6k0pq952vkrl8b7hhn2ywzc-profile.drv
/gnu/store/vjcwkfd2gjb7hy4nhs2ia4irdjggnk4c-info-dir.drv
/gnu/store/f28n67bjd10xjwis1r7hx6fdp54fra24-fonts-dir.drv
/gnu/store/ahqvrv8fik5h2372mp034nm0nh6lispb-ca-certificate-bundle.drv
/gnu/store/254zl1qkwarynzx3ahdjrmpc4rm0hsw5-manual-database.drv
Creating manual page database for 13 packages... done in 0.229 s
Backtrace:
In ice-9/boot-9.scm:
2718:10 19 (_ (gnu services networking) _ _ #:ensure _)
2986:16 18 (try-module-autoload _ _)
2316:4 17 (save-module-excursion _)
3006:22 16 (_)
In unknown file:
15 (primitive-load-path "gnu/services/networking" #<proced?>)
In gnu/services/networking.scm:
24:0 14 (_)
In ice-9/boot-9.scm:
2866:4 13 (define-module* _ #:filename _ #:pure _ #:version _ # _ ?)
2075:24 12 (call-with-deferred-observers _)
2879:24 11 (_)
230:29 10 (map1 (((gnu services)) ((gnu services shepherd)) (#) ?))
230:29 9 (map1 (((gnu services shepherd)) ((gnu services #)) # ?))
230:29 8 (map1 (((gnu services dbus)) ((gnu services base)) (#) ?))
230:17 7 (map1 (((gnu services base)) ((gnu system shadow)) (#) ?))
2792:17 6 (resolve-interface (gnu services base) #:select _ #:hide ?)
2718:10 5 (_ (gnu services base) _ _ #:ensure _)
2986:16 4 (try-module-autoload _ _)
2316:4 3 (save-module-excursion #<procedure 3261c60 at ice-9/boo?>)
3006:22 2 (_)
In unknown file:
1 (primitive-load-path "gnu/services/base" #<procedure 31?>)
In gnu/services/base.scm:
1889:8 0 (_)
gnu/services/base.scm:1889:8: gnu/services/base.scm:1889:8: Unbound variable:
static-networking-service-type
And also a question. What is right syntax to make a use-modules call
using 'guile -e'?
$ guix environment --pure --ad-hoc guix guile -- guile --no-auto-compile -e
"(use-modules (gnu services base))
--8<---------------cut here---------------start------------->8---
Backtrace:
3 (apply-smob/1 #<catch-closure 12f75a0>)
In ice-9/boot-9.scm:
713:2 2 (call-with-prompt _ _ #<procedure default-prompt-handle?>)
In ice-9/eval.scm:
619:8 1 (_ #(#(#<directory (guile-user) 13b8140>)))
In unknown file:
0 (_ ("guile"))
ERROR: ERROR: Wrong type to apply: #<unspecified>
--8<---------------cut here---------------end--------------->8---