Skip to content

Loading domain and problem files #61

Answered by rpgoldman
ko56 asked this question in Q&A
Discussion options

You must be logged in to vote

@ko56 You have run afoul of the Common Lisp package (namespace) feature.

Your script is (implicitly) in the common-lisp-user package. Looking at the head of the file "p01.lisp" in examples/rovers/strips/ we see:

(IN-PACKAGE :SHOP2-ROVERS)

That is why you cannot see the problem: it is in the shop2-rovers package.

Here's a revised script. Try this using:

SHOP_DIR = <YOUR SHOP DIRECTORY> sbcl --script <SCRIPTNAME>

(this assumes that you have checked out SHOP from Git, rather than using Quicklisp)

#!/usr/local/bin/sbcl --script
(require "asdf")

(asdf:initialize-source-registry
 `(:source-registry (:tree ,(concatenate 'string (uiop:getenv "SHOP_DIR") "/shop3"))
                     (:tree ,…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@ko56
Comment options

ko56 Apr 24, 2021
Collaborator Author

Answer selected by ko56
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants