Clojure plugin for IntelliJ IDEA.
Provides Clojure language support: syntax and error highlighting, completion, navigation and refactorings.
You have decided to develop in Clojure with your favorite IDE. Great! This README will assume that you have already downloaded and installed the "la-clojure" plugin via "Settings -> Plugins".
If you are familiar with Clojure, your first intuition will be to try to open a REPL in the IDE. However, before you do that, you must first create a Clojure project.
This README assumes that you already have a JDK installed.
- Click "File -> New Project -> Create Project from Scratch".
- Enter a name for your project, and select "Java Module" as the type. Click "Next".
- Create a new source directory (or not) and click "Next".
- In the "Desired technologies" list check the "Clojure" checkbox. You can choose to "Download" the Clojure jar (version 1.2) or select "Set up library later" to specify your own version of
- Click "Finish" and the project will be created.
If you selected "Set up library later", configure the library as below:
- Download the latest version of the Clojure jar from clojure.org
- Right click on the project to "Open Module Settings"
- Click on "Modules -> Dependencies".
- Click "Add -> Single Entry Module Library", and select the path where you downloaded
- Click "Apply" and "OK".
Now you can start a Clojure Console via "Tools -> Clojure Console" or "Ctrl+Shift+F10".
Develop (Clojure) with Pleasure!
master branch is only compatible with IDEA 13. We are planning to update builds to plugins site for every IDEA 13 EAP, which breaks compatibility and at the begining of every month.
We don't use GitHub's issue tracker, so all issues from here will be moved to our main issue tracker.
We also started nightly builds.
If you have any questions related to this project, use our Developer Forum.
Setting up "La Clojure" project from sources
Follow these steps:
- Clone this repository.
IDEA13SDKdirectory (or symlink) in folder
- Download archive of the latest IDEA 13 EAP Ultimate or Community edition. Note, that for Windows and Community edition you need to download installer.
- Unpack it into
IDEA13SDKdirectory (or symlink),
bindirectory should be in the root.
- Open 'La Clojure' project now
- Setup JDK. Additionally add
tools.jar, from JDK
libdirectory. It contains JDI classes.
- Now you can compile and run IDEA run configuration.
- To build plugin, run 'Production' artifact from IDEA (Build -> Build Artifacts)
- To attach IDEA sources you need to create sources.zip file (and put it in the
IDEA13SDKdirectory) with the following structure:
community/platformand so on (from plugins sources you need only copyright plugin).
- To run tests use 'AllTests' run configuration. To run single test, configure defaults for JUnit configuration like it's done in 'AllTests' run configuration. Additionally you have to extend VM options of default JUnit configuration with property