unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Adam McCartney <adam@mur.at>
To: guile-user@gnu.org
Subject: Help with imports
Date: Sat, 18 May 2024 18:07:51 +0200	[thread overview]
Message-ID: <n3psxxyyjyami76nr4p4qpxx7iuurd7ybzh23qy7zrxszud5xu@pxoc76fl4nce> (raw)

Hi there,

I was wondering if someone could offer some advice on where I'm going wrong with 
the following?

I'm defining a module:

```
amccartn@mc ~/dotfiles  (debug/home-services *)
> rg "define-module" admccartney/home-services/shell.scm
3:(define-module (admccartney home-services shell)
```

And then failing to import it elsewhere, despite having added the directory 
to the guile load path.

```
amccartn@mc ~/dotfiles  (debug/home-services *)
> tree -a ~/dotfiles/admccartney/home-services/
/home/amccartn/dotfiles/admccartney/home-services/
├── desktop.scm
└── shell.scm

1 directory, 2 files
amccartn@mc ~/dotfiles  (debug/home-services *)
> GUILE_LOAD_PATH=$GUILE_LOAD_PATH:$HOME/dotfiles/ guile
GNU Guile 3.0.9
Copyright (C) 1995-2023 Free Software Foundation, Inc.

Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
This program is free software, and you are welcome to redistribute it
under certain conditions; type `,show c' for details.

Enter `,help' for help.
scheme@(guile-user)> ,import(admccartn home-services shell)
While executing meta-command:
no code for module (admccartn home-services shell)
```

Any help much appreciated!

regards,
Adam

-- 
  Adam McCartney - https://admccartney.mur.at 
/



             reply	other threads:[~2024-05-18 16:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-18 16:07 Adam McCartney [this message]
2024-05-18 16:11 ` Help with imports Adam McCartney

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=n3psxxyyjyami76nr4p4qpxx7iuurd7ybzh23qy7zrxszud5xu@pxoc76fl4nce \
    --to=adam@mur.at \
    --cc=guile-user@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).