Skip to content
This repository was archived by the owner on Aug 24, 2024. It is now read-only.
This repository was archived by the owner on Aug 24, 2024. It is now read-only.

Error when analyzing a simple file with LeankInk: failed to read file ..., invalid header #59

@mariovagomarzal

Description

@mariovagomarzal

Description

I'm attempting to analyze a simple file with a sample theorem with leanInk a sample.lean and I get the following error:

Starting Analysis for: "sample.lean"
ERROR(1): sample.lean:1:0: error: failed to read file '/Users/user/.elan/toolchains/4.6.0/lib/lean/Init.olean', invalid header

uncaught exception: Errors during import; aborting

Expected behaviour

Expected to work without the error.

Reproducing the issue

I have built the program from source and added the bin directory to the path. I have created a sample.lean file with the following content:

theorem sample (p : Prop) (hp : p) : p :=
  p

Then, leanInk a sample.lean.

Environment information

  • Operating System: macOS Sonoma 14.4.1 (M1 chip)
  • Lean version: 4.6.0
  • LeanInk version: 1.0.0
  • Alectryon version: None

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions