This repo contains the build files and official releases for Lean4Code, a VSCodium based Lean-native code editor. We wanted to minimize the bar of entry for getting started with Lean and using LeanDojo tools. This is our solution, a code editor with a truly intuitive Lean experience.
Note: This is the beta version of Lean4Code. This is our first iteration of the app, and is not meant to be a final product. Please report any errors you encounter using Lean4Code using the issues tab, or send an email to [email protected].
Lean4Code is supported across all three major operating systems.
You can find the most recently compiled, prebuilt release of Lean4Code under the releases tab to the right of this page.
Lean4Code comes with…
- VSCode Lean4 extension downloaded and built in
- Built in scripts to for automatic download and integration of LeanCopilot into any repo
- A one-click LeanDojo tracing experience
And we’re still working on new features!
- Clone the repo
git clone https://github.com/wadkisson/lean4code cd lean4code
- Install npm in vscode dir
- From the main vscode directory:npm install
- Compile extensions
-In bothvscode/extensions/lean4dojo-panel
, andvscode/extensions/leancopilot-panel
, run:npm install npm run compile
- Build the Lean4 extension (
cd vscode/extensions/lean4
)
Then run:npm install npm run build
Once the extensions are properly build and compiled, run the appropriate build command from the vscode root dir (lean4code/vscode
) to build the app!
NODE_OPTIONS="--max-old-space-size=8192" npx gulp vscode-darwin-arm64
NODE_OPTIONS="--max-old-space-size=8192" npx gulp vscode-darwin-x64
NODE_OPTIONS="--max-old-space-size=8192" npx gulp vscode-linux-x64
$env:NODE_OPTIONS="--max-old-space-size=8192"
npx gulp vscode-win32-x64
You can bump memory up to --max-old-space-size=16384
or more if needed.
And that’s it! We’ve designed the app to be as intuitive as possible. The Welcome Screen will guide you through how to use the built in LeanDojo tools.