unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* bug#35315: [guile 2.9.1] Loading a module from subfolder fails
@ 2019-04-18 22:56 Jan
  2019-04-22 21:45 ` bug#35315: It's not a bug, sorry Jan
  0 siblings, 1 reply; 3+ messages in thread
From: Jan @ 2019-04-18 22:56 UTC (permalink / raw)
  To: 35315

[-- Attachment #1: Type: text/plain, Size: 479 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 1180 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#35315: It's not a bug, sorry
  2019-04-18 22:56 bug#35315: [guile 2.9.1] Loading a module from subfolder fails Jan
@ 2019-04-22 21:45 ` Jan
  2019-04-22 22:33   ` lloda
  0 siblings, 1 reply; 3+ messages in thread
From: Jan @ 2019-04-22 21:45 UTC (permalink / raw)
  To: 35315

[-- Attachment #1: Type: text/plain, Size: 168 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 505 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#35315: It's not a bug, sorry
  2019-04-22 21:45 ` bug#35315: It's not a bug, sorry Jan
@ 2019-04-22 22:33   ` lloda
  0 siblings, 0 replies; 3+ messages in thread
From: lloda @ 2019-04-22 22:33 UTC (permalink / raw)
  To: Jan; +Cc: 35315

[-- Attachment #1: Type: text/plain, Size: 814 bytes --]


> 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.


[-- Attachment #2: Type: text/html, Size: 1861 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-04-22 22:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-18 22:56 bug#35315: [guile 2.9.1] Loading a module from subfolder fails Jan
2019-04-22 21:45 ` bug#35315: It's not a bug, sorry Jan
2019-04-22 22:33   ` lloda

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).