fukamachi / caveman

Lightweight web application framework for Common Lisp.
http://8arrow.org/caveman/
782 stars 63 forks source link

No symbol named *TEMPLATE-PACKAGE* in DJULA #146

Closed 3inven closed 1 month ago

3inven commented 1 month ago

When loading my new caveman2 project generated using caveman2:make-project, the following error occurs regarding symbol *template-package*. Djula documentation mentions binding *template-package* to cause template evaluation in a desired package but the djula codebase apparently has no such symbol. What am I doing wrong?

To load "mycaveman":
  Load 1 ASDF system:
    mycaveman
; Loading "mycaveman"
..................................................
[package mycaveman.view]
debugger invoked on a SB-KERNEL:SIMPLE-PACKAGE-ERROR in thread
#<THREAD tid=164365 "main thread" RUNNING {1000B98133}>:
  no symbol named "*TEMPLATE-PACKAGE*" in "DJULA"

Type HELP for debugger help, or (SB-EXT:EXIT) to exit from SBCL.

restarts (invokable by number or by possibly-abbreviated name):
  0: [CONTINUE                     ] INTERN it.
  1: [RETRY                        ] Retry
                                     compiling #<CL-SOURCE-FILE "mycaveman" "src" "view">.
  2: [ACCEPT                       ] Continue, treating
                                     compiling #<CL-SOURCE-FILE "mycaveman" "src" "view">
                                     as having been successful.
  3:                                 Retry ASDF operation.
  4: [CLEAR-CONFIGURATION-AND-RETRY] Retry ASDF operation after resetting the
                                     configuration.
  5:                                 Retry ASDF operation.
  6:                                 Retry ASDF operation after resetting the
                                     configuration.
  7: [ABORT                        ] Give up on "mycaveman"
  8: [REGISTER-LOCAL-PROJECTS      ] Register local projects and try again.
  9:                                 Exit debugger, returning to top level.

(SB-IMPL::FIND-OR-MAKE-SYMBOL "*TEMPLATE-PACKAGE*" #<PACKAGE "DJULA">)
0] 
3inven commented 1 month ago

I was stuck with the older quicklisp version of djula. Updated djula to newer version from ultralisp and djula:*template-package* appeared.