-
Notifications
You must be signed in to change notification settings - Fork 987
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
library-exports raises an exception for compiled library that is not yet imported #315
Conversation
b403fad
to
165684a
Compare
@akeep, does this look like a reasonable way to address the issue outlined above? The build failure on ta6osx is puzzling. We could not reproduce this on a MacBook Pro running OS X Sierra 10.12.6. The travis build exceeded the maximum time limit for jobs because it seems to have become overly fond of running unix.ms, examples.ms, ieee.ms, date.ms, exceptions.ms, and oop.ms. |
The master branch ran into a similar timeout on ti3osx, so I restarted the ta6osx tests. |
@owaddell this seems like a nice interface improvement, in that it allows a certain amount if inspection without actually needing to execute any of the code in the library. I have mixed feelings about pulling the interface binding code: ($sc-put-cte uid (libdesc-interface-binding desc) '*system*) out of the The other interesting piece of this is that you and I have made different decisions about where to put this information. I made the visit ids part of the Sorry for the somewhat disconnected observations, I'm just wondering if moving to a more data structural representation for all of this and treating the import consistently would have some benefits for us. |
@owaddell, what's the status of this work? |
165684a
to
9e1e550
Compare
Here's a different approach. I think this is more self-contained. What do you think @akeep ? |
release_notes/release_notes.stex
Outdated
@@ -2700,6 +2700,12 @@ in fasl files does not generally make sense. | |||
%----------------------------------------------------------------------------- | |||
\section{Bug Fixes}\label{section:bugfixes} | |||
|
|||
\subsection{\scheme{library-exports} for libary that is not yet imported (9.9.9)} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
libary
=> library
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh dear. Thanks for finding this. Somehow my spell checker didn't flag it.
9e1e550
to
76f8472
Compare
@owaddell, I like this as a minimal approach to enabling this functionality. It is too bad we don't actually need to do anything with the extra argument in the generated |
76f8472
to
352f7f5
Compare
Thanks for the review, Andy. I agree about the |
Calling
library-exports
on a compiled library raises an exception if the library has not yet been imported.If we compile testfile-li3.ss and start a new session, we get:
With the change on this branch, if we recompile testfile-li3.ss and start a new session, we get:
Is this approach misguided? If not, maybe we can tidy up and cherry-pick the next time we have a compelling reason to rebuild the boot files. (Right now it's mingled with the changes for #310.)
The original
chi-top-library
had installed theinterface-binding
with different values fortoken
in the call to$sc-put-cte
(#f
) vs. the call tobuild-cte-install
(*system*
). I moved the work of the residual call intoimport-library
and preserved the*system*
, but perhaps that should have been#f
originally, based on the comment inchi-top-library
.