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

Error when using mathlib4 as a dependency: "Contains non-UTF-8 data" #20194

Open
dialectics67 opened this issue Dec 23, 2024 · 1 comment
Open

Comments

@dialectics67
Copy link

I created a project using mathlib following the instructions in this document (https://github.com/leanprover-community/mathlib4/wiki/Using-mathlib4-as-a-dependency).
lake +leanprover-community/mathlib4:lean-toolchain new tryMath math
lake exe cache get
lake build
but when I executed lake build, I received the following error:

✖ [534/5699] Running proofwidgets/widgetJsAll Error: Failed to read the file '...lake/packages\proofwidgets\widget\src\Ak7F0F53Sq.js', which contains non-UTF-8 data. Some required builds have failed: proofwidgets/widgetJsAll Error: Build failed

I checked the directory '...lake/packages\proofwidgets\widget\src' and did not find the file 'Ak7F0F53Sq.js'.

My operating system is Microsoft Windows 10 Enterprise LTSC.

@vihdzp
Copy link
Collaborator

vihdzp commented Jan 19, 2025

This seems relevant: https://leanprover.zulipchat.com/#narrow/channel/113489-new-members/topic/Error.20while.20importing.20Mathlib

Basically, you should update Mathlib to v.4.15.0 instead of updating it into v.4.16.0, at least for the near future.

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

No branches or pull requests

2 participants