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: parser 'subscript' not found #6

Merged
merged 1 commit into from
Dec 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Main.lean
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Lake.CLI.Main
open Lake Lean

def main (args : List String) : IO UInt32 := do
unsafe def main (args : List String) : IO UInt32 := do
unless args.length == 1 do
println! "This command takes exactly one argument: the path to a file containing a list of declarations to check."
return 1
Expand All @@ -15,6 +15,8 @@ def main (args : List String) : IO UInt32 := do
log.replay (logger := .stderr)
let some ws := ws? | return 1
let imports := ws.root.leanLibs.flatMap (·.config.roots.map fun module => { module })
-- see comments in https://github.com/leanprover/lean4/pull/6325
enableInitializersExecution
let env ← Lean.importModules imports {}
let mut ok := true
for line in ← IO.FS.lines filename do
Expand Down