[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-artanis] ENTRY not loading modules
From: |
Julio Claudio Matus Ramirez |
Subject: |
[Bug-artanis] ENTRY not loading modules |
Date: |
Tue, 03 Jul 2018 21:52:49 +0900 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) |
Hello.
I see the ENTRY file in the default project dir has a block like this:
================================================================================
(use-modules (artanis artanis)
;; Put modules you want to be imported here
(artanis utils)
)
================================================================================
Giving you the impression that adding modules here would import them,
and make them available through the project.
However, that's apparently not the case.
I tried to use the "scandir" function in my controller. For that
purpose, I added the line "(ice-9 ftw)" after the "Put modules you want
to be imported here" line.
After starting artanis (doing "art work") I got messages like:
;;; XXX warning: possibly unbound variable `scandir'
And when trying to load the page:
Threw in procedure handle-request :
[REASON] Internal ERROR unbound-variable (module-lookup Unbound variable: ~S
(scandir) #f)!
[SERVER ERROR] Internal error from server-side, rendering a 500 page for client
...
However, when I load the modules in the controller, it works.
These is what I'm adding to my controller file, before the "show" defintion:
(use-modules (ice-9 ftw)
(ice-9 regex)
(srfi srfi-1))
Am I using or understanding this ENTRY file wrong? If not, then this is
a bug.
--
GPG key: http://pgp.mit.edu/pks/lookup?op=get&search=0x280640B9A94C170D
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug-artanis] ENTRY not loading modules,
Julio Claudio Matus Ramirez <=