Zulip Chat Archive
Stream: new members
Topic: How to set max memory in Lean?
Alex Gu (Jul 04 2025 at 20:21):
I checked lake env lean --help, which said there is a flag --memory in Lean. However, I'm getting an error actually invoking it. Is the documentation outdated?
>>> lake env lean --memory=10000 test.lean
<input>:1:0: error: invalid -D parameter, unknown configuration option 'max_memory'
If the option is defined in this library, use '-Dweak.max_memory' to set it conditionally
If so, what is the correct command for this?
Tsuru (Jul 07 2025 at 17:32):
I also have this error in VS Code (Infoview) for every *.lean file, as long as I use Lean >= v4.19.
Tsuru (Jul 07 2025 at 17:43):
Ah I could remove "--memory=..." argument from the VS Code extension configuration... (but of course this is not a solution for OP's problem)
Last updated: Dec 20 2025 at 21:32 UTC