Skip to content
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

Fix parse_cache_header signature change #767

Merged

Conversation

serenity4
Copy link
Contributor

@serenity4 serenity4 commented Oct 23, 2023

Base.parse_cache_headers removed its keyword srcfiles_only in JuliaLang/julia#49866, which makes Revise non-functional in nightly.

There are a bunch of other test failures, and I'm not sure I understand the internals enough to address them, but I could identify least two sources (there are probably more):

  • LoadError seems to now (sometimes?) hold a Meta.ParseError value for its .error field, breaking a few tests which expect a String instead. A bunch of related error messages seem to have changed too.
  • Source files can't be located for Pkg (the associated (::PkgData).info.files is empty, probably that's because of that), breaking related tests.

Anyway, we can probably merge this fix and worry about other failures on nightly later, such that Revise works again on nightly. Or if anyone wants to address nightly failures in a wider swath, that works for me too.

@Keno
Copy link
Collaborator

Keno commented Oct 25, 2023

@timholy can you take a look at this to unbreak revise?

@fatteneder
Copy link

This is my bad, I apologize!
I really thought I had opened a PR here but apparently I did not ...

@Keno
Copy link
Collaborator

Keno commented Oct 25, 2023

Not your fault. There's a structural issue in our process that this wasn't noticed - we'll need to fix that.

@KristofferC KristofferC merged commit 26db046 into timholy:master Oct 25, 2023
7 of 12 checks passed
fredrikekre added a commit that referenced this pull request Nov 14, 2023
This patch restores the filtering of non-src files that was lost
in #767. After JuliaLang/julia#49866,
`Base.parse_cache_header` returns both the non-filtered and filtered
list instead of doing filtering internally based on the
`srcfiles_only::Bool` keyword argument.

There is a test for this failure mode that fails on Revise master branch
and passes with this patch (see
https://github.com/timholy/Revise.jl/blob/1059181bed06387e9fbcea137dce28a80c5c45d9/test/runtests.jl#L3070-L3080).
KristofferC pushed a commit that referenced this pull request Nov 14, 2023
* Restore filtering of non-src files

This patch restores the filtering of non-src files that was lost
in #767. After JuliaLang/julia#49866,
`Base.parse_cache_header` returns both the non-filtered and filtered
list instead of doing filtering internally based on the
`srcfiles_only::Bool` keyword argument.

There is a test for this failure mode that fails on Revise master branch
and passes with this patch (see
https://github.com/timholy/Revise.jl/blob/1059181bed06387e9fbcea137dce28a80c5c45d9/test/runtests.jl#L3070-L3080).

* Set version to 3.5.9.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants