GNU bug report logs -
#35315
[guile 2.9.1] Loading a module from subfolder fails
Previous Next
To reply to this bug, email your comments to 35315 AT debbugs.gnu.org.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-guile <at> gnu.org
:
bug#35315
; Package
guile
.
(Thu, 18 Apr 2019 23:16:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Jan <tona_kosmicznego_smiecia <at> interia.pl>
:
New bug report received and forwarded. Copy sent to
bug-guile <at> gnu.org
.
(Thu, 18 Apr 2019 23:16:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
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
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-guile <at> gnu.org
:
bug#35315
; Package
guile
.
(Mon, 22 Apr 2019 21:46:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 35315 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
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
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-guile <at> gnu.org
:
bug#35315
; Package
guile
.
(Mon, 22 Apr 2019 22:44:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 35315 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
> On 22 Apr 2019, at 23:45, Jan <tona_kosmicznego_smiecia <at> 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.
[Message part 2 (text/html, inline)]
This bug report was last modified 6 years and 52 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.