- Requires OpenGL 4.1 for the GUI version
- Install Rust and cargo (required for wasmtime)
- Install Nim version 2.2.0
- Clone the repository
The AST language framework does not compile on the current main branch, I will continue work on this at some later point.
If you get a compile error, try building with --passC:-Wno-incompatible-pointer-types, e.g:
nimble buildDesktop --passC:-Wno-incompatible-pointer-types -d:appBuildWasmtime --forceBuild --app:gui -D:forceLogToFile -D:enableGui=true
- Run
atlas installafter cloning or pulling updates. - Delete
nimble.pathsin case it exists (gets generated bynimble setup) - Use
nimble buildDesktopornimble buildto compile the desktop version of the editor. - The release builds are built with:
- For the gui version:
nimble buildDesktop --app:gui -D:forceLogToFile -D:enableGui=true -D:enableTerminal=false - For the terminal version:
nimble buildDesktop --app:console -D:forceLogToFile -D:enableGui=false -D:enableTerminal=true
- For the gui version:
- Go into the tree-sitter repositories root directory
- Make sure the cli is built
cargo build
- Compile the desired language to wasm. The specified directory is the one containing the
srcfolder which in turn contains thegrammar.jstarget/release/tree-sitter build-wasm ../dev/nimtreesitter/treesitter_nim/treesitter_nim/nim
Use this command to build a plugin (inside the plugins directory):
nim c -d:release --skipParentCfg --passL:\"-o plugin_name.m.wasm\" plugin_name.nim