From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Adam McCartney Newsgroups: gmane.lisp.guile.user Subject: Re: Help with imports Date: Sat, 18 May 2024 18:11:04 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39864"; mail-complaints-to="usenet@ciao.gmane.io" To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Sat May 18 18:11:30 2024 Return-path: Envelope-to: guile-user@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1s8Meg-000ACq-0E for guile-user@m.gmane-mx.org; Sat, 18 May 2024 18:11:30 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s8MeO-0001bJ-2f; Sat, 18 May 2024 12:11:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s8MeM-0001Yv-8w for guile-user@gnu.org; Sat, 18 May 2024 12:11:10 -0400 Original-Received: from efeu.mur.at ([2a02:3e0::42]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s8MeK-0004UO-Jg for guile-user@gnu.org; Sat, 18 May 2024 12:11:10 -0400 Original-Received: from localhost (unknown [92.60.7.227]) by efeu.mur.at (Postfix) with ESMTPSA id 0B8EB45B47 for ; Sat, 18 May 2024 18:11:05 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mur.at; s=dkim1; t=1716048665; bh=aWkTrqUCaQLAxhbdclMPzm2ykVOefFHLPXkCm7mG5HA=; h=Date:From:To:Subject:References:In-Reply-To:From; b=Hl3sn2vdyNcBrD8SyUJvJFDHSc1zFYngSQbz4i8xLzcSCUUCJ3VhbOyTApzOXQgX/ xs+N+QFa2mQcUkHEjW5rJk0Yv285LWQt7I91qKhmeRwyIGTikuxPwXA4ViYjKx8/03 sQLJM6UtLkzszV1S59X1Qz6obhhLweQk9ACRsDA0EdtfVQOF8JAXF+ZrEFKkzqWud4 aCmrDIC+a9gzGod26PFe70RX4n+KIAsCvTKcy9SBFlMiVnFZvsedzq/cDMJqJHobOR t5O6nHLoa1sbQbR4iBf3V89rGfaUEicMUwtOsRNlCl18FkqNlywRemaFYOXmlas06K FJ0M3oX5yg9jg== Content-Disposition: inline In-Reply-To: Received-SPF: pass client-ip=2a02:3e0::42; envelope-from=adam@mur.at; helo=efeu.mur.at X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_SBL_CSS=3.335, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.user:19660 Archived-At: On 2024-05-18, Adam McCartney wrote: >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! > Whoops, sorry - just saw my own typo! ``` scheme@(guile-user)> ,import(admccartney home-services shell) ``` works fine. Apologies for the noise!scheme@(guile-user)> ,import(admccartney home-services shell) ``` works fine. Apologies for the noise!scheme@(guile-user)> ,import(admccartney home-services shell) ``` works fine. Apologies for the noise!scheme@(guile-user)> ,import(admccartney home-services shell) ``` works fine. Apologies for the noise!scheme@(guile-user)> ,import(admccartney home-services shell) ``` works fine. Apologies for the noise!scheme@(guile-user)> ,import(admccartney home-services shell) ``` works fine. Apologies for the noise!scheme@(guile-user)> ,import(admccartney home-services shell) ``` works fine. Apologies for the noise!scheme@(guile-user)> ,import(admccartney home-services shell) ``` works fine. Apologies for the noise! >-- > Adam McCartney - https://admccartney.mur.at / -- Adam McCartney - https://admccartney.mur.at /