Skip to content

lean-dojo/lean4code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lean4Code Logo

Lean4Code

The Official Build Repo

What is this / why does this exist?

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].

Supported versions:

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.

Built in features:

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!

Build instructions

  1. Clone the repo
    git clone https://github.com/wadkisson/lean4code
    cd lean4code
  2. Install npm in vscode dir
    - From the main vscode directory:
    npm install
  3. Compile extensions
    -In both vscode/extensions/lean4dojo-panel, and vscode/extensions/leancopilot-panel, run:
    npm install
    npm run compile
  4. Build the Lean4 extension (cd vscode/extensions/lean4)
    Then run:
    npm install
    npm run build

Build commands for different systems

Once the extensions are properly build and compiled, run the appropriate build command from the vscode root dir (lean4code/vscode) to build the app!

macOS (Apple Silicon)

NODE_OPTIONS="--max-old-space-size=8192" npx gulp vscode-darwin-arm64

macOS (Intel)

NODE_OPTIONS="--max-old-space-size=8192" npx gulp vscode-darwin-x64

Linux (64-bit)

NODE_OPTIONS="--max-old-space-size=8192" npx gulp vscode-linux-x64

Windows (64-bit)

$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.