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: don't fetch unused cache, FF fixes #153

Merged
merged 1 commit into from
Sep 21, 2023
Merged

Conversation

digama0
Copy link
Contributor

@digama0 digama0 commented Sep 21, 2023

Even though the result of fetchCachedDeclarationData was ignored due to #133, we were still performing the request, which takes some time on FF to deserialize (or something), depending on what happened to be on the user's cache (because the cache is never written to, only read). This moves the disabling earlier, so that the cache is not read at all (since this means deserializing an old version of the mathlib JSON data, then ignoring it and fetching another version of the mathlib JSON data).

Also fixes an issue where the undefined pattern is passed to decodeURIComponent (resulting in "undefined" which is mishandled by subsequent code).

@hargoniX hargoniX merged commit 8000418 into leanprover:main Sep 21, 2023
1 check passed
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.

2 participants