fukamachi / caveman

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

The name "ENVY" does not designate any package. #100

Closed ghost closed 6 years ago

ghost commented 6 years ago

Hi,

I am having trouble configuring Envy with Caveman2:


(ql:quickload :caveman2)

(caveman2:make-project #P"/Users/Mike/Desktop/myapp/"
                       :author "Mike")

writing /Users/Mike/Desktop/myapp/myapp.asd
writing /Users/Mike/Desktop/myapp/myapp-test.asd
writing /Users/Mike/Desktop/myapp/app.lisp
writing /Users/Mike/Desktop/myapp/README.markdown
writing /Users/Mike/Desktop/myapp/.gitignore
writing /Users/Mike/Desktop/myapp/db/schema.sql
writing /Users/Mike/Desktop/myapp/src/config.lisp
writing /Users/Mike/Desktop/myapp/src/db.lisp
writing /Users/Mike/Desktop/myapp/src/main.lisp
writing /Users/Mike/Desktop/myapp/src/view.lisp
writing /Users/Mike/Desktop/myapp/src/web.lisp
writing /Users/Mike/Desktop/myapp/static/css/main.css
writing /Users/Mike/Desktop/myapp/templates/index.html
writing /Users/Mike/Desktop/myapp/templates/_errors/404.html
writing /Users/Mike/Desktop/myapp/templates/layouts/default.html
writing /Users/Mike/Desktop/myapp/tests/myapp.lisp

(defpackage :myapp.config
  (:use :cl
        :envy))
(in-package :myapp.config)

The name "ENVY" does not designate any package.
aarvid commented 6 years ago

Did you (ql:quickload :myapp) ?

caveman2 does not depend on envy, but myapp does.

ghost commented 6 years ago

The real problem is when I restart sbcl

$ sbcl
(ql:quickload :caveman2)
(:CAVEMAN2)
(ql:quickload :myapp)
System "myapp" not found

This means I can't use Clack

aarvid commented 6 years ago

your project needs to be in the path(s) that asdf and/or quickload searches for. there are many ways to do this. the easiest to place the project directory in the ~/quicklisp/local-projects or in ~/common-lisp i.e. ~/quicklisp/local-projects/myapp or ~/common-lisp/myapp

ghost commented 6 years ago

Confirmed. Thank you for your time and consideration.

azzamsa commented 6 years ago

@aarvid Thank you so much for being helpful here, thank you.

I still don't have enough knowledge to answer people issue.