leanprover / leanprover/comparator

Better errors when the lean4export version is incorrect

Open
#33 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Lean
Stars
203
Forks
36
Avg merge
1h 40m
Merged PRs (30d)
7

Description

Lean4export includes a header with the version and this version (must? usually needs to?) exactly match the precise version of Lean being used. I got stuck for awhile because I had lean4export for 4.29.0-rc7 on my PATH, unbeknownst to me and with higher priority than the 4.30.0-rc2 lean4export I'd added to the PATH as well, so comparator 4.30.0-rc2 was failing unhelpfully.

Building Challenge
⚠ [2/3] Built Challenge
warning: Challenge.lean:1:8: declaration uses `sorry`
Build completed successfully (3 jobs).
Exporting #[amazing, propext, Quot.sound, Classical.choice, Nat.add, Nat.sub, Nat.mul, Nat.pow, Nat.gcd, Nat.div, Nat.mod, Nat.beq, Nat.ble, Nat.land, Nat.lor, Nat.xor, Nat.shiftLeft, Nat.shiftRight, String.ofList] from Challenge
uncaught exception: process 'landrun' exited with code 1
stderr:
uncaught exception: process 'lean' exited with code 255
stderr:
could not execute external process 'lean'

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file or test is named in the issue. Start by tracing the comparator path that invokes lean4export and reproduce the mismatch between the 4.29.0-rc7 and 4.30.0-rc2 binaries; done means the version mismatch is reported clearly instead of producing the shown process failure.

Written by the indexing model from the issue text.

Assessment

Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.