如何删除使用 Quicklisp QuickProject 创建的系统?
我在目录“~/projects/{name}/”中使用quickproject:make-project创建了一个项目。
我对结果并不满意,想重新开始,所以我将目录重命名为“~/projects/{name}-old/”,并在初始中使用 Quickproject:make-project 创建了一个新项目目录“~/projects/{name}/”。
如果我尝试使用 ql:quickload 加载我的项目,quicklisp 会尝试加载旧项目。
如何删除旧系统,同时将旧项目文件保留在原处?
我应该做什么,而不是在步骤 2 中重命名目录?
I made a project with quickproject:make-project in directory "~/projects/{name}/".
I wasn't happy how it turned out and wanted to start over, so I renamed the directory to "~/projects/{name}-old/" and made a new project with quickproject:make-project in the initial directory "~/projects/{name}/".
If I try to load my project with ql:quickload, quicklisp tries to load the old project.
How do I remove the old system, while keeping the old project files where they are?
What should I have done, instead of renaming the directory in step 2.?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
ASDF 中有一个错误导致了这样的问题。您或许可以使用
(asdf:clear-system "")
进行恢复。如果这不起作用,重新启动后一切应该会正常工作。There was a bug in ASDF that caused a problem like this. You might be able to recover by using
(asdf:clear-system "<name>")
. If that doesn't work, things should work fine if you restart.安格斯是对的,在我的文件 ~/.config/common-lisp/source-registry.conf.d/projects.conf 中有这个条目,
并且首先选择了错误的项目。为了防止 asdf 加载错误的项目,我必须重命名 asd 文件。就像我最初尝试的那样,仅更改项目中的包或系统定义并没有帮助。
Angus is right, in my file ~/.config/common-lisp/source-registry.conf.d/projects.conf there is this entry,
and the wrong project gets picked first. To prevent asdf from loading the wrong project I had to rename the asd file. Just changing the package or system definition in the project, like I tried at first, didn't help.