-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
loading: delete LOAD_CACHE_PATH #26165
Conversation
pkg.uuid === nothing ? "$(pkg.name).ji" : | ||
joinpath(pkg.name, "$(package_slug(pkg.uuid)).ji") | ||
cache_file_entry(pkg::PkgId) = joinpath( | ||
"compiled", |
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.
Why “compiled”?
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.
Because this is where things that are compiled live. The option that controls whether julia creates or uses these files is called --compiled-modules
. (There was also a bikeshed issue where I asked for comment on this, which was posted in multiple forums.)
When comparing the performance of two different julia builds (of the same $MAJOR.$MINOR), I found it exceedingly helpful to have two different if VERSION > v"0.7-"
Base.LOAD_CACHE_PATH[1] = joinpath(homedir(), "packages", "lib-" * split(Sys.BINDIR, '/')[end-2])
end That is — I'd use the path to the Edit to add: is there a way we can support this use-case? |
Seems we should have some lock files to prevent this? |
I had talked with @vtjnash about arranging for |
https://github.com/vtjnash/Pidfile.jl, perhaps? 🙂 But needs someone to hook it up. And as Stefan said, we should additionally defer deleting them until an explicit "gc" step. |
I'm working towards updating We throw an error message in msg2 = """
You also have to delete $(joinpath(Base.LOAD_CACHE_PATH[1], "Compose.ji"))
and restart your REPL session afterwards.
""" How to we find this path without EDIT: I see that it was renamed to |
Is this change anywhere in the change logs? I can't find it here: https://docs.julialang.org/en/v0.7.0/NEWS/ I am trying to update the Apparently it was replaced by |
We don't generally put changes to non-exported internals in NEWS. It has been deleted for over a year now—where would we put the NEWS at this point? |
Thank you for the very quick response! I appreciate it. I know very little about Julia or its documentation, so I should have apologized for that in advance. You're right, NEWS doesn't make sense. Wherever the changelog is for the version where this change was made would be more appropriate. I don't know why anyone needed to call |
The only changelog is the log of git commits between 0.6 and 1.0—which is enormous (over 6000 commits: there were a lot of changes in the lead up to 1.0). This change is in there: in the commit for this pull request. I'm not sure what to do here: |
No description provided.