fukamachi / caveman

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

project name could not be "web" while making a new one. #25

Closed firebat closed 10 years ago

firebat commented 10 years ago

I don't know whether it should be a problem.

* (caveman2:make-project #P"./test" :author "firebat")

writing ./test/.gitignore
writing ./test/README.markdown
writing ./test/app.lisp
writing ./test/db/schema.sql
writing ./test/shlyfile.lisp
writing ./test/test-test.asd
writing ./test/test.asd
writing ./test/src/config.lisp
writing ./test/src/test.lisp
writing ./test/src/view.lisp
writing ./test/src/web.lisp
writing ./test/static/css/main.css
writing ./test/t/test.lisp
writing ./test/templates/_errors/404.html
writing ./test/templates/index.tmpl
writing ./test/templates/layouts/default.tmpl
T
* (caveman2:make-project #P"./web" :author "firebat")   

writing ./web/.gitignore
writing ./web/README.markdown
writing ./web/app.lisp
writing ./web/db/schema.sql
writing ./web/shlyfile.lisp
writing ./web/web-test.asd
writing ./web/web.asd
writing ./web/src/config.lisp
writing ./web/src/web.lisp
writing ./web/src/view.lisp
writing ./web/src/web.lisp
writing ./web/static/css/main.css
writing ./web/t/web.lisp
writing ./web/templates/_errors/404.html
writing ./web/templates/index.tmpl
writing ./web/templates/layouts/default.tmpl

debugger invoked on a SIMPLE-TYPE-ERROR in thread
#<THREAD "main thread" RUNNING {1002ACB423}>:
  NIL does not designate a condition class.

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

restarts (invokable by number or by possibly-abbreviated name):
  0: [RETRY   ] Retry EVAL of current toplevel form.
  1: [CONTINUE] Ignore error and continue loading file "/Users/apple/Desktop/lweb/./web/web.asd".
  2: [ABORT   ] Abort loading file "/Users/apple/Desktop/lweb/./web/web.asd".
  3:            Exit debugger, returning to top level.

(SB-KERNEL:ALLOCATE-CONDITION ASDF/COMPONENT::DUPLICATE-NAMES :NAME "web")
0] 
fukamachi commented 10 years ago

Thank you for reporting it. It is because we can't use the same name for different components in ASDF.

Caveman2 skeleton project uses "web" as a default component. https://github.com/fukamachi/caveman/blob/master/v2/skeleton/skeleton.asd

So, we also can't use "view" and "config" as a project name. I may have to change its file name as a fixed name -- "core" or "main".