From unknown Fri Jun 13 11:53:41 2025 X-Loop: help-debbugs@gnu.org Subject: bug#35315: [guile 2.9.1] Loading a module from subfolder fails Resent-From: Jan Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Thu, 18 Apr 2019 23:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 35315 X-GNU-PR-Package: guile X-GNU-PR-Keywords: To: 35315@debbugs.gnu.org X-Debbugs-Original-To: bug-guile@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.155562931021341 (code B ref -1); Thu, 18 Apr 2019 23:16:02 +0000 Received: (at submit) by debbugs.gnu.org; 18 Apr 2019 23:15:10 +0000 Received: from localhost ([127.0.0.1]:42740 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hHGFJ-0005Y8-HV for submit@debbugs.gnu.org; Thu, 18 Apr 2019 19:15:09 -0400 Received: from eggs.gnu.org ([209.51.188.92]:34745) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hHFxg-00054n-Mo for submit@debbugs.gnu.org; Thu, 18 Apr 2019 18:56:57 -0400 Received: from lists.gnu.org ([209.51.188.17]:38339) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hHFxb-0000c7-GP for submit@debbugs.gnu.org; Thu, 18 Apr 2019 18:56:51 -0400 Received: from eggs.gnu.org ([209.51.188.92]:49123) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hHFxa-00042y-DI for bug-guile@gnu.org; Thu, 18 Apr 2019 18:56:51 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, HTML_MESSAGE,URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hHFxZ-0000at-Bh for bug-guile@gnu.org; Thu, 18 Apr 2019 18:56:50 -0400 Received: from smtpo.poczta.interia.pl ([217.74.65.159]:38064) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hHFxY-0000YV-QR for bug-guile@gnu.org; Thu, 18 Apr 2019 18:56:49 -0400 Date: Fri, 19 Apr 2019 00:56:43 +0200 From: Jan X-Mailer: interia.pl/pf09 X-Originating-IP: 89.64.52.91 Message-Id: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=-Uh0haV3TsS11Ocl87kU6" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=interia.pl; s=biztos; t=1555628204; bh=7zfuTFH2V9KXCeKo5Yav+0HNKsTFKBHzbFVQZ1NmTyw=; h=Date:From:Subject:To:X-Mailer:X-Originating-IP:Message-Id: MIME-Version:Content-Type; b=fc5L1Ypi5gqGGiGCENq95SHhFA31j9HBCfXhDevBkA0VbUZjCroT9JUZvbXJEksCe udWR5may1uAC3ody+MbQJm5ld0zRgXJq619ZguFVT3i88y/VvZdzn4g+oD+dOYO0EV NNvJBbdSp2Vc1kVSd3z4ilVFdet0cLoQr0PKzXZ4= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] X-Received-From: 217.74.65.159 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: -1.4 (-) X-Mailman-Approved-At: Thu, 18 Apr 2019 19:15:09 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) --=-Uh0haV3TsS11Ocl87kU6 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Hi. When I try to load a tiny module "displays" I made, like this (use-modules (my-modules displays)), from the folder /usr/local/share/guile/site/3.0/my-modules, guile returns "no code for module (my-modules displays)", it works when I put displays.scm file into /usr/local/share/guile/site/3.0/ folder and use (use-modules (displays)) in my program. It worked with the version 2.2.4, so I guess this is a bug, I'm a new guile user, correct me if I'm wrong.Have a nice day!--Jan --=-Uh0haV3TsS11Ocl87kU6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Hi. When I try to load a tiny module "displays" I made, like= this (use-modules (my-modules displays)), from the folder /usr/local/share= /guile/site/3.0/my-modules, guile returns "no code for module (my-modules d= isplays)", it works when I put displays.scm file into /usr/local/share/guile/site/3.0/ folder an= d use (use-modules (displays)) in my program. It worked with the version 2.= 2.4, so I guess this is a bug, I'm a new guile user, correct me if I'm wron= g.

Have a nice day!

--
Jan

= --=-Uh0haV3TsS11Ocl87kU6-- From unknown Fri Jun 13 11:53:41 2025 X-Loop: help-debbugs@gnu.org Subject: bug#35315: It's not a bug, sorry References: In-Reply-To: Resent-From: Jan Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Mon, 22 Apr 2019 21:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35315 X-GNU-PR-Package: guile X-GNU-PR-Keywords: To: 35315@debbugs.gnu.org Received: via spool by 35315-submit@debbugs.gnu.org id=B35315.155596954128487 (code B ref 35315); Mon, 22 Apr 2019 21:46:01 +0000 Received: (at 35315) by debbugs.gnu.org; 22 Apr 2019 21:45:41 +0000 Received: from localhost ([127.0.0.1]:51788 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hIgkv-0007PN-2h for submit@debbugs.gnu.org; Mon, 22 Apr 2019 17:45:41 -0400 Received: from smtpo.poczta.interia.pl ([217.74.65.239]:47664) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hIgkr-0007P6-16 for 35315@debbugs.gnu.org; Mon, 22 Apr 2019 17:45:38 -0400 Date: Mon, 22 Apr 2019 23:45:29 +0200 From: Jan X-Mailer: interia.pl/pf09 X-Originating-IP: 89.64.52.91 Message-Id: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=-PromrQOVSpJtAFrkN+rm" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=interia.pl; s=biztos; t=1555969530; bh=/nkZSIkriCceuMRyDgOdnLYCONCQhVIfzzXUqBLojsY=; h=Date:From:Subject:To:X-Mailer:X-Originating-IP:Message-Id: MIME-Version:Content-Type; b=gV8fyP4RnCmJdSGjeWlRzoJbIixhpWzXqUocIzvU43nP6i8O7MflJEV5jNOyb1aYv uwZBrxbiEXLGqqUATBaZgCk5Bf+BH8Q2i5KPDmLZXrca9bX/jqg91lp7VdGD/RlG0Z gwVJQmN+gVJmKFs/h/FoDhB9+uvRVFL47hz+cP/s= X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-PromrQOVSpJtAFrkN+rm Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit I've found out it's not a bug, I just didn't  add (define-module (my-modules displays)) - the name of the folder to my module. Sorry for that.Have a nice day!--Jan --=-PromrQOVSpJtAFrkN+rm Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

I've found out it's not a bug, I just didn't=C2=A0 add (defi= ne-module (my-modules displays)) - the name of the folder to my module. Sor= ry for that.

Have a nice day!

--
Jan

= --=-PromrQOVSpJtAFrkN+rm-- From unknown Fri Jun 13 11:53:41 2025 X-Loop: help-debbugs@gnu.org Subject: bug#35315: It's not a bug, sorry Resent-From: lloda Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Mon, 22 Apr 2019 22:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35315 X-GNU-PR-Package: guile X-GNU-PR-Keywords: To: Jan Cc: 35315@debbugs.gnu.org Received: via spool by 35315-submit@debbugs.gnu.org id=B35315.15559729859320 (code B ref 35315); Mon, 22 Apr 2019 22:44:02 +0000 Received: (at 35315) by debbugs.gnu.org; 22 Apr 2019 22:43:05 +0000 Received: from localhost ([127.0.0.1]:51835 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hIheT-0002QG-0T for submit@debbugs.gnu.org; Mon, 22 Apr 2019 18:43:05 -0400 Received: from new-02-2.privateemail.com ([198.54.122.46]:49721) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hIhUz-0002Cp-Db for 35315@debbugs.gnu.org; Mon, 22 Apr 2019 18:33:18 -0400 Received: from MTA-06-1.privateemail.com (unknown [10.20.147.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by NEW-02.privateemail.com (Postfix) with ESMTPS id 5C80A60575; Mon, 22 Apr 2019 22:33:11 +0000 (UTC) Received: from MTA-06.privateemail.com (localhost [127.0.0.1]) by MTA-06.privateemail.com (Postfix) with ESMTP id 48D7E60058; Mon, 22 Apr 2019 18:33:11 -0400 (EDT) Received: from 4box.home (unknown [10.20.151.246]) by MTA-06.privateemail.com (Postfix) with ESMTPA id B6A956004D; Mon, 22 Apr 2019 22:33:10 +0000 (UTC) From: lloda Message-Id: Content-Type: multipart/alternative; boundary="Apple-Mail=_C923A900-B58E-4FCD-9951-DB508C824E80" Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.8\)) Date: Tue, 23 Apr 2019 00:33:08 +0200 In-Reply-To: References: X-Mailer: Apple Mail (2.3445.104.8) X-Virus-Scanned: ClamAV using ClamSMTP X-Spam-Score: 0.0 (/) X-Mailman-Approved-At: Mon, 22 Apr 2019 18:43:03 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --Apple-Mail=_C923A900-B58E-4FCD-9951-DB508C824E80 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > On 22 Apr 2019, at 23:45, Jan = wrote: >=20 > I've found out it's not a bug, I just didn't add (define-module = (my-modules displays)) - the name of the folder to my module. Sorry for = that. >=20 > Have a nice day! >=20 >=20 > -- > Jan >=20 Tbh I've always find this requirement a bit annoying. Clearly in an = inline definition the full name must be given, but if the module is = found through the path, which is the most common case, all you get from = the module declaration is a chance to make a mistake. I guess I'd like for it to be a nameless variant (define-module) that = would work only in module-files, or even no declaration at all, just = calling (use-modules (a b c)), then if a/b/c.scm is found, would make = the contents of c.scm into a module (a b c). I dunno. --Apple-Mail=_C923A900-B58E-4FCD-9951-DB508C824E80 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii

On = 22 Apr 2019, at 23:45, Jan <tona_kosmicznego_smiecia@interia.pl> wrote:

I've found out it's not a bug, I just didn't  add = (define-module (my-modules displays)) - the name of the folder to my = module. Sorry for that.

Have a nice day!


--
Jan



Tbh I've always find = this requirement a bit annoying. Clearly in an inline definition the = full name must be given, but if the module is found through the path, = which is the most common case, all you get from the module declaration = is a chance to make a mistake.

I guess I'd like for it to be a nameless variant = (define-module) that would work only in module-files, or even no = declaration at all, just calling (use-modules (a b c)), then if = a/b/c.scm is found, would make the contents of c.scm into a module (a b = c). I dunno.

= --Apple-Mail=_C923A900-B58E-4FCD-9951-DB508C824E80--