5029 Leiningen Build 87 Jan Thomä 4 36956 derkork 2013-05-14 0.3.4


Compatible with all products
36 956
This plugin integrates the Leiningen build system into IntelliJ IDEA.

Download plugin

Recent change notes

Version 0.3.4

  • Added ability to 'Import a Project' and point to a project.clj file.

Version 0.3.3

  • Version range corrected, to make plugin work with IDEA 12.1

Version 0.3.2

  • Fixed issue #18 (hopefully).

Version 0.3.1

  • No longer create directories (ie. src, resources, dev-resources, etc) if they do not exist on the filesystem (Issue #20)
  • Monitor the :java-source-paths and add it to the IDEA module's source path if present in the project.clj (Issue #19)

Version 0.3.0

  • Intellij 12.0 support (thanks go to Chris Shellenbarger)

Version 0.2.4

  • Added support for Leiningen 2.0 as the primary dependency resolution (similar to the Maven plugin) (thanks go to Chris Shellenbarger)
  • Added support for multiple source, tests, or resource paths (thanks go to Chris Shellenbarger)
  • Added support for different dependency scope issues (thanks go to Chris Shellenbarger)
  • Added background processing for leiningen project refreshes

Version 0.2.3

  • Made plugin compatible with IntellIJ 11.1
  • Leiningen Jar and plugins are now in the classpath for reading project.clj (thanks go to John Chapin)
  • Some minor bugfixes

Version 0.2.2

  • Bugfixes (thanks go to Vladimir Matveev)

Version 0.2.1

  • Made plugin compatible with IntelliJ IDEA 11

Version 0.2

  • Fixed project.clj file parsing
  • Correct compile/sources/resources/test directories recognition from project.clj
  • Added notifications on project file parsing errors

Version 0.1.2

  • Made plugin compatible with IntelliJ 10.5

Version 0.1.1

  • Made plugin compatible with IntelliJ 10.0.2

Version 0.1.0

  • Made plugin compatible with IntelliJ 10.

Version 0.0.3

  • Added the missing "test" target.

Version 0.0.2

  • You can now open Leiningen projects directly (like you can open an IPR file)
  • Importing a project will now setup source, test and output path (currently limited to the defaults)
  • Project's name and version is extracted from the Leiningen project file
  • Added a quickbutton to open settings dialog.
  • Added icon for Leiningen projects.
  • Run configurations should now run properly.

Version 0.0.1

  • Initial release
  • Leiningen needs to be installed. You can configure it's location within the plugin.
  • You can run leiningen goals in your project.

General usage instructions

Install the plguin via the plugin manager. Then go to Settings > Leiningen and set up the location of Leiningen. Now you can run Leiningen targets in the Leiningen tool window on the right side of the IntelliJ main window by doubleclicking on the target name.

When you open a project that is having a project.clj file in it's root, it is automatically added to the list of Leiningen projects in the Leiningen tool window. If you have multiple project.clj in your project tree (e.g. a project with subprojects) you can add these manually by pressing the plus icon in the Leiningen tool window.
Error during dispatching of java.awt.event.MouseEvent[MOUSE_RELEASED,(66,91),absolute(1343,347),button=1,modifiers=Button1,clickCount=1] on frame0: de/janthomae/leiningenplugin/leiningen/LeiningenAPI java.lang.NoClassDefFoundError: de/janthomae/leiningenplugin/leiningen/LeiningenAPI at de.janthomae.leiningenplugin.module.model.ModuleInformationUtils.fromProjectFile(ModuleInformationUtils.java:33) at de.janthomae.leiningenplugin.project.wizard.LeiningenProjectImportWizardStep.updateStep(LeiningenProjectImportWizardStep.java:60) at com.intellij.ide.util.newProjectWizard.AddModuleWizard.updateStep(AddModuleWizard.java:172) at com.intellij.ide.wizard.AbstractWizard.init(AbstractWizard.java:317) at com.intellij.ide.util.newProjectWizard.AddModuleWizard.initModuleWizard(AddModuleWizard.java:151) at com.intellij.ide.util.newProjectWizard.AddModuleWizard.(AddModuleWizard.java:97) at com.intellij.ide.actions.ImportModuleAction.createImportWizard(ImportModuleAction.java:178) at com.intellij.ide.actions.ImportModuleAction.selectFileAndCreateWizard(ImportModuleAction.java:122) at com.intellij.ide.actions.ImportModuleAction.doImport(ImportModuleAction.java:61) at com.intellij.ide.actions.ImportProjectAction.actionPerformed(ImportProjectAction.java:29) at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:162) at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter$1.run(ActionMenuItem.java:259) at com.intellij.openapi.wm.impl.FocusManagerImpl.runOnOwnContext(FocusManagerImpl.java:892) at com.intellij.openapi.wm.impl.IdeFocusManagerImpl.runOnOwnContext(IdeFocusManagerImpl.java:114) at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter.actionPerformed(ActionMenuItem.java:230) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018) at com.intellij.openapi.actionSystem.impl.ActionMenuItem.fireActionPerformed(ActionMenuItem.java:104) at com.intellij.ui.plaf.beg.BegMenuItemUI.doClick(BegMenuItemUI.java:512) at com.intellij.ui.plaf.beg.BegMenuItemUI.access$300(BegMenuItemUI.java:44) at com.intellij.ui.plaf.beg.BegMenuItemUI$MyMouseInputHandler.mouseReleased(BegMenuItemUI.java:532) at java.awt.Component.processMouseEvent(Component.java:6505) at javax.swing.JComponent.processMouseEvent(JComponent.java:3321) at java.awt.Component.processEvent(Component.java:6270) at java.awt.Container.processEvent(Container.java:2229) at java.awt.Component.dispatchEventImpl(Component.java:4861) at java.awt.Container.dispatchEventImpl(Container.java:2287) at java.awt.Component.dispatchEvent(Component.java:4687) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422) at java.awt.Container.dispatchEventImpl(Container.java:2273) at java.awt.Window.dispatchEventImpl(Window.java:2719) at java.awt.Component.dispatchEvent(Component.java:4687) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735) at java.awt.EventQueue.access$200(EventQueue.java:103) at java.awt.EventQueue$3.run(EventQueue.java:694) at java.awt.EventQueue$3.run(EventQueue.java:692) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87) at java.awt.EventQueue$4.run(EventQueue.java:708) at java.awt.EventQueue$4.run(EventQueue.java:706) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76) at java.awt.EventQueue.dispatchEvent(EventQueue.java:705) at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:700) at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:521) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:348) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138) at java.awt.EventDispatchThread.run(EventDispatchThread.java:91) Caused by: java.lang.ClassNotFoundException: de.janthomae.leiningenplugin.leiningen.LeiningenAPI PluginClassLoader[Leiningen, 0.3.4] at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:77) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 54 more
It's not a good idea. Not working - I'm just try to "Import project" and show him my project.clj file :[ IDEA 12.1.4
Thank you very much :)
@sennhausered I'm currently working on IDEA 12 compatibility, some APIs seem to have changed to it won't work right out of the box. You may watch this thread https://github.com/derkork/intellij-leiningen-plugin/issues/13 to get notified when the IDEA 12 version is available.
Hello, there is no version of this plugin for Intellij 12 ? I have been looking for it ... but this one is not compatible yet. Thanks :-)
Just released version 0.2.3 which is compatible with IDEA 11.1. Have fun with it :)
Are you likely to release a version compatible with 11.1 ?

Hello Semperos,

thank you for the warm words. The lein run task was probably left out because it didn't exist when the plugin was started. I have added an issue to the tracker at github, that support for this task should be added (https://github.com/derkork/intellij-leiningen-plugin/issues/6). If you have further suggestions, feel free to add other issues there. You can also comment on the issue I just created, maybe you have some more ideas about use cases of "lein run" that should be supported. After all it's a more complex task than just "compile".

Kind regards,
Great work!

Question: Is there a reason 'lein run' is not supported?
Open IntelliJ, go to settings (wrench icon), then plugins, switch to "Available" tab, type in "Leiningen" and you should see version 0.0.3. Then press the download icon in the upper left corner. This will download and install the latest version. You need to restart IntelliJ after this. For some odd reason the download link on this page only appears a few hours after the latest version was released. I guess Jetbrains is doing some kind of review.
Where can I get version 3? I don't see a download URL?
Thanks for the fix!!

Yeah - you're right about swank, not entirely useful in intellij. I was just listing a diff between 'lein help' and what i see in the plugin? is there source for this plugin?
I just pushed 0.0.3 which adds the missing test target. Guess i should test more ;). About the swank target, i am not sure how this would be of use in IntelliJ as swank is targeted to emacs users. Also currently there is no way of entering parameters (like port etc.) so that would probably something for a 0.1.x or something. Any insights on the swank target are greatly appreciated :)
Hi -

I've installed the plugin but I only see some of the lein targets. Notably missing are 'test' and 'swank'

Any ideas?

This seems to be an issue occuring every now and then on plugin updates and is not particularly caused by the plugin itself. See http://bit.ly/bp4E9F and http://bit.ly/9cPIsT. You can also try to to remove .IntelliJIdea90/system/plugins/action.script if it exists and then try again to update the plugin.
Please  sign in  to leave a comment.