-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Strange "PACKAGE-INFERRED-SYSTEM" error when some dir in ql:*local-project-directories* indexes asdf.asd itself #162
Comments
UPDATE: It does happen in linux. The reason it didn't earlier is that I had a copy of the actual ASDF project under |
OK, I have found the culprit. The
This line appeared as a consequence of me downloading the Also, as I mentioned in the previous comment, the error is also averted if there is another mention to another Not really sure if this is a bug in ASDF or quicklisp's local project searcher, which maybe should skip any |
Or maybe it can refrain from even trying to load ASDF. This change to local-projects.lisp fixes the problem: diff -u --label /home/capitaomorte/quicklisp/quicklisp/local-projects.lisp --label \#\<buffer\ local-projects.lisp\> /home/capitaomorte/quicklisp/quicklisp/local-projects.lisp /tmp/buffer-content-TJSMAW
--- /home/capitaomorte/quicklisp/quicklisp/local-projects.lisp
+++ #<buffer local-projects.lisp>
@@ -95,13 +95,15 @@
to use the local project directory and cache to find systems."
;; as a special case, don't attempt to load ASDF itself, since that
;; probably spells trouble
- (dolist (directory *local-project-directories*)
- (when (probe-directory directory)
- (let ((system-index (ensure-system-index directory)))
- (when system-index
- (let ((system (find-system-in-index system-name system-index)))
- (when system
- (return system))))))))
+ (unless (string= (string-upcase system-name)
+ "ASDF")
+ (dolist (directory *local-project-directories*)
+ (when (probe-directory directory)
+ (let ((system-index (ensure-system-index directory)))
+ (when system-index
+ (let ((system (find-system-in-index system-name system-index)))
+ (when system
+ (return system)))))))))
(defun list-local-projects ()
"Return a list of pathnames to local project system files."
Diff finished. Wed Apr 11 22:37:38 2018 |
ping? I'm still getting bit by this from time to time. To reproduce it, just download any project that has a problematic |
Hi,
This is a minimal test case with SBCL 1.2.11 running on Mac OS 10.9. If I load this minimal file I get a strange error described at the bottom.
If I remove the line adding my projects dir to
ql:*local-project-directories*
, everything works dandy. But after it is evaluated, "raw" asdf loading of systems is broken.It doesn't happen on Linux I also suspect it doesn't happen with old Macosx SBCL versions bundling older ASDF's. Pretty sure it also happens with a much more recent sbcl compiled from source but I can't easily get compilation working again to double check.Here's the file:
And here is the error
l
The text was updated successfully, but these errors were encountered: