Plaster
New
List
Login
common-lisp
default
anonymous
2023.06.01 08:17:26
This is the error I'm getting: ```lisp debugger invoked on a ASDF/ACTION:CIRCULAR-DEPENDENCY in thread #<THREAD "main thread" RUNNING {1001100073}>: Circular dependency: ((#<ASDF/LISP-ACTION:LOAD-OP > . #<ASDF/LISP-ACTION:CL-SOURCE-FILE "myproject" "src" "models" "posts">) (#<ASDF/LISP-ACTION:LOAD-OP > . #<ASDF/SYSTEM:SYSTEM "myproject">) (#<ASDF/LISP-ACTION:LOAD-OP > . #<ASDF/COMPONENT:MODULE "myproject" "src">) (#<ASDF/LISP-ACTION:LOAD-OP > . #<ASDF/COMPONENT:MODULE "myproject" "src" "models">)) ``` However, in my system definition it's not defined circularly: ```lisp :components ((:module "src" :components ((:file "main" :depends-on ("config" "view" "db")) (:file "web" :depends-on ("view" "db" "config")) (:file "model" :depends-on ("config" "db" "utils")) (:file "view" :depends-on ("config")) (:file "db" :depends-on ("config")) (:file "config") (:module "models" :components ((:file "posts"))) (:module "controllers" :depends-on ("web" "utils") :components ((:file "posts"))) (:module "utils" :components ((:file "general-utils") (:file "controller-utils" :depends-on ("general-utils")) (:file "model-utils")))))) ``` And in the file itself there's no usage of the main project in the package definition (is the system definition checking the package definition?) ```lisp (in-package :cl-user) (defpackage myproject.models.posts (:use :cl :datafly :sxql) (:import-from :myproject.config :config) (:import-from :myproject.db :db :with-connection) (:import-from :mito) (:import-from :cl-json) (:import-from :sanity-clause) (:import-from :myproject.general-utils) (:import-from :myproject.model) (:import-from :myproject.model-utils)) (in-package :myproject.models.posts) ```
Raw
Annotate
Repaste
Edit