Zulip Chat Archive
Stream: Analysis I
Topic: View build logs without sorry?
Li Xuanji (Jul 16 2025 at 23:17):
Running lake build prints lots of logs like this
warning: /Users/xuanji/gits/analysis/analysis/Analysis/Section_4_3.lean:52:8: declaration uses 'sorry'
Is there an argument I can pass to suppress them and only see errors (not warnings)?
Ruben Van de Velde (Jul 16 2025 at 23:20):
Not quite, but you can add
[leanOptions]
warn.sorry = false
to lakefile.toml just for these warnings
Li Xuanji (Jul 16 2025 at 23:32):
Any idea how to set that in lakefile.lean (which this project uses)?
Ruben Van de Velde (Jul 17 2025 at 07:12):
Uh, maybe
lean_lib foo where
leanOptions := #[⟨`warn.sorry, false⟩]
(untested)
Last updated: Dec 20 2025 at 21:32 UTC