-
Notifications
You must be signed in to change notification settings - Fork 81
IntelliJ IDEA
JMerrill edited this page May 15, 2014
·
2 revisions
This is a one-time setup that does not require the git command line, Maven, or leiningen.
- Install IntelliJ IDEA. (The free Community Edition works fine.)
- Install the La Clojure plugin...
- Go to File > Preferences
- Open the Plugins preference and select the Available tab
- Select La Clojure, right-click it, and choose "Download and Install"
- Restart IDEA.
- Clone the labrepl project from GitHub:
- Go to Version Control > Checkout From Version Control > Git.
- Fill in the dialog with:
- Git Repository URL: git://github.com/relevance/labrepl.git
- Origin Name: (leave blank)
- Parent Directory: (choose an arbitrary directory)
- Directory name: labrepl
- Hit the "Clone" button
- Choose "Yes" when prompted to create an IDEA project, and then select:
- Import Project from external model
- Choose Maven if given choice of models
- Accept all the defaults. If this is your first time running IntelliJ you will need to choose a JDK. When prompted locate the JDK you wish to use by clicking the plus icon and clicking through the dialog.
- Wait for Maven to download all the dependent libraries.
To run the labrepl:
- Choose Tools > Clojure REPL > Add New Clojure REPL
- In the REPL Console
(require 'labrepl)
(labrepl/-main)
- Browse to http://localhost:8080
- Enjoy the labs!