Categories
|
![]() opensource software
La ClojureVendor: JetBrains Inc. Email: N/A Website: N/A SourceCode: link Description:Provides Clojure language support: syntax and error highlighting, completion, navigation and
refactorings
Recent change notes:Compatibility with IDEA 10.5.2General usage instructions:Plugin for Clojure language support in IntelliJ IDEAGitHub: https://github.com/JetBrains/la-clojure Main features: 1. Customizable code highlighting 2. Code folding 3. Brace matching 4. Code formatting with customizable indentation 5. Structure view for definitions 6. Go-to definition feature (as go to symbol) 7. Code completion for definitions, special forms, Java instance methods and classes 8. Run configuration for Clojure scripts (both in REPL or as standalone script) 9. Debugger (also working in REPL) 10. Clojure classes compilation 11. Cross-language resolve and completion for Clojure namespaces, definitions and Java packages, classes and members 12. Find usages and rename refactoring for local definitions and symbols 13. Integration with REPL Some hints about installation and usage: 1. Plugin demands for IntelliJ IDEA build #9100 or later. IDEA 8.1 is perfect. Last EAPs may be downloaded from http://jetbrains.net/confluence/display/IDEADEV/Diana+EAP 2. To download plugin use IDEA Plugin Manager (see Settings -> Plugins -> Available) or unzip downloaded archive to $IDEA_SETTINGS/config/plugins/ folder 3. Creating new project or module, choose Clojure among used technologies. All necessary jars will be downloaded automatically. To create new Clojure file, just press Alt-Insret in Project View and choose "Clojure Script" 4. File template for Clojure scripts may be changed in Settings -> File Templates -> Java EE tab -> Clojure 5. To run your Clojure script you may create run configuration manually or press Ctrl-Shift-F10 (in Linux or Windows layout) on appropriate script file opened in editor. In latter case run configuration will be created automatically and script will be run immediately. 6. Structure view window may be invoked on file by pressing Ctrl-F12 (in Linux or Windows layout) or by View -> File Structure Popup action. 7. To navigate to definitions (def, defn, defmacro etc.) use Go-to symbol action. 8. clojure.jar must be attached to a project as a part of some Module, Project or Global library. Full documentation URL:
https://github.com/JetBrains/la-clojure
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||



Comments:
10:53:29 PM NullPointerException: Error during dispatching of java.awt.event.MouseEvent[MOUSE_RELEASED,(453,220),absolute(1165,220),button=1,modifiers=Button1,clickCount=1] on frame0
10:54:08 PM NullPointerException: Error during dispatching of java.awt.event.MouseEvent[MOUSE_RELEASED,(431,213),absolute(1143,213),button=1,modifiers=Button1,clickCount=1] on frame0
- Supports Clojure 1.3
- Rainbow parens work
- Uses JDK 1.7.0_01 fine
- Syntax highlighting on REPL is maintained now, after entering
All in all, great work! Only remaining issue is I'm not sure yet how to get clojure.contrib libraries in there, but I'm not sure that's an IntelliJ issue or a Leiningen issue, so checking that out now.
Thanks again for the quick response/fix!
https://github.com/JetBrains/la-clojure/issues/6
I'm contemplating getting the full version of IntelliJ but only with full support of Clojure. At the moment, the plugin isn't upgradeable, files don't load properly in the REPL (even with in-ns, and the REPL only supports Clojure 1.2.
I\'m currently running IDEA 10.5.2 Ultimate, build #IU-107.587 on 64-bit Mac OS X. I believe this is the latest one.
Please help me to get the latest plugin version installed.
In project.clj, add in :dependencies
[org.clojars.arohner/clojure-contrib "1.2.0-equiv-SNAPSHOT"]
lein search contrib gives the exact list. Further info at the Leiningen tutorial.
(Intellij community 10.5.2 & LaClojure 0.3.92)
Any help is greatly appreciated.
After installing the La Clojure Plugin. I restarted IntelliJ, created a new project, added Clojure as a desired technology, then created a new clj source, but the plugin does not recognize the .clj as a clojure source file and syntax highlighting does not work.
:0.0 but (System/getenv "DISPLAY") on the idea returns nil. other environment values returned nil as same.
I don't understand whether this problem is mine or a bug of la clojure/IntelliJ.
I used version of intelliJ IDEA 10.5 and last version of this plugin. And when i use similar construction: (comment _some_cyrillic_text_) or // _some_cyrillic_text_ IDEA didn't work how expected. They see syntax error. How to fix it?
https://img.skitch.com/20110228-mmic5h5bjx6pdctph96atxddhu.png
--
Lambder
I updated idea to 10.0.2 and updated the clojure plugin but now it does not do syntax highlighting, it only highlights symbols. anyone know how to fix it?
Thanks,
Alan
I think currently there is no way to specify an additional classpath startup parameter for the REPL.
This is quite impeding when trying to use AOT compiled classes (:gen-class).
Currently it adds /src and /test. It would be great if /lib would be added as well.
Thoughts?
P.S. I checked the sources probably two lines of code.
diff --git a/src/org/jetbrains/plugins/clojure/debugger/ClojurePositionManager.java b/src/org/jetbrains/plugins/clojure/debugger/ClojurePositionManager.java
index 25945be..7a6bcb9 100644
--- a/src/org/jetbrains/plugins/clojure/debugger/ClojurePositionManager.java
+++ b/src/org/jetbrains/plugins/clojure/debugger/ClojurePositionManager.java
@@ -158,7 +158,7 @@ public class ClojurePositionManager implements PositionManager {
@Nullable
private PsiFile getPsiFileByLocation(final Project project, final Location location) {
try {
- final String path = location.sourcePath();
+ final String path = location.sourcePath().replace('\\', '/'); // dirty fix for windows...
if (path == null) return null;
final ProjectRootManager manager = ProjectRootManager.getInstance(project);
final VirtualFile[] allFiles = manager.getFilesFromAllModules(OrderRootType.SOURCES);
diff --git a/src/org/jetbrains/plugins/clojure/repl/ClojureReplProcessHandler.java b/src/org/jetbrains/plugins/clojure/repl/ClojureReplProcessHandler.java
index a83ba84..40b490e 100644
--- a/src/org/jetbrains/plugins/clojure/repl/ClojureReplProcessHandler.java
+++ b/src/org/jetbrains/plugins/clojure/repl/ClojureReplProcessHandler.java
@@ -142,6 +142,9 @@ public class ClojureReplProcessHandler extends ProcessHandler {
final String executablePath = ((JavaSdkType) type).getVMExecutablePath(sdk);
final ArrayList env = new ArrayList();
+ for (java.util.Map.Entry entry: System.getenv().entrySet()) {
+ env.add(entry.getKey() + "=" + entry.getValue());
+ }
final ArrayList cmd = new ArrayList();
cmd.add(executablePath);
cmd.addAll(line.getParametersList().getList());
Stacktrace links also doesn\'t work if there are identically named files in different packages.
Couldn\'t seem to get debug to step through code either.
*Clojure 1.2
*Command buffer for REPL
*REPL History
- command history for the REPL
- better support for require and use
- code completion for function names in the REPL
- Command buffer in the REPL ?
Thanks !!
Would love to see:
- 1.2 support (including protocols)
- JLine support for the REPL
- Go To Declaration for :required :as vars
I just wondered whether there is an update in the works to include Clojure 1.2 (and IDEA 9.0.3)?
Thanks.
I can\'t seem to \"go to symbol\" for a fn defined in another namespace from another module. The other content is loaded in the IDE. In general if we rename on import, does \"go to symbol\" find functions?
Also, no REPL history? Come on guys, this is great and very close to being awesome. Just a few more features.
(.openStream (java.net.URL. "http://www.google.com")) works when using REPL from the windows console, but from the plugin's REPL I get
"java.net.SocketException: Unrecognized Windows Sockets error: 10106: create (NO_SOURCE_FILE:0)"
After running and printing lots of text in the REPL (several thousand lines), manual input is messed up.
As you type, the cursor lags and does not move until you type the next character, by which time it is out of place etc - Meaning you have to manually move the cursor right after each character you type.
After loading a swing app into repl (alt+l), when the swing window is closed the repl finishes with exit code 0.
Then the next time I press alt+l, the entire IDE freezes.
So, please fix it to make sure REPL has not "Process finished with exit code 0" when alt+l is pressed.
Also, it would be nice to change REPL history commands (alt+arrows) ato ctrl+arrows as it is more comfortable to type.
Great work!
home/marcel/.IntelliJIdea90/system/plugins/org.intellij.clojure_8192.zip does not exist for action unzip[/home/marcel/.IntelliJIdea90/system/plugins/org.intellij.clojure_8192.zip, /home/marcel/.IntelliJIdea90/config/plugins]
Any suggestions?
1. The classpath for the REPL launched with a project should include its classpath, so that when you load a file it can find the clojure files in your use/require header.
2. The classpath for the REPL should also be configurable to allow for adding interactive dev dependencies such as jline.
If you guys were to remedy these two features, I think I'd stop using emacs+swank and only use intellij for java/scala/clojure dev.
I tried adding args to the intellij/clojure preferences but didn't see to have any effect.
Thanks,
Thanks and keep up the great work.
I'm using the IDEA Community Edition version #IC-93.13 with the latest La Clojure plugin.
I'm using the IDEA Community Edition version #IC-93.13 with the latest La Clojure plugin.
Try to attach clojure.jar to your project.
Cheers!
Ilya
java.lang.NoClassDefFoundError: clojure/main
Caused by: java.lang.ClassNotFoundException: clojure.main ....Could not find the main class: clojure.main
>The last plugin builds are supposed to be used with IDEA 9 EAP, which may be taken from
>http://www.jetbrains.net/confluence/display/IDEADEV/Maia+EAP
Installed IDE (9.0 BETA UI-92.65), downloaded the latest plug-in (0.2.173) using the Manager, IDE says it's not compatible. FAIL!
Downloaded the plug-in via the manager (0.2.172)
Does not let me to create a new Clojure file (OK button does not react), REPL not working, and none of the features work.
Manually then downloaded the plug-in (0.2.173), same effect.
Downloaded the latest IntellIJ CE (90.193)
Downloaded the plug-in via the manager (0.2.172), red in the list, not compatible!
Manually installed the plug-in (0.2.173). Cant load it, its red in the list, not compatible?
Can you please test before releasing?
However, Idea just says the plugin is not compatible. Why does Idea let me download the plugin then? This is completely useless!
So, guess I'll stick with netbeans. Too bad, IntelliJ, you won't find me buying your products.
Give it a try. :)
java.lang.Throwable: Extension was already added: com.intellij.javaee.web.facet.WebFacetFrameworkSupportProvider@8be3b3
at com.intellij.openapi.extensions.Extensions$SimpleLogProvider.error(Extensions.java:201)
Never could get the REPL to work. Once I kicked a Clojure script off it would run in the console. The REPL tab just showed a blank panel.
The plugin barely works at all and breaks IDEA (even used a fresh IDEA install to be sure).
We've just uploaded a build for 90.162 (beta).
Sorry for the inconvenience.
Cheers!
Ilya
I have a problem, I cant get La Clojure plugin work in my IntelliJ IDEA!! I trued versions 0.2.160 and 0.2.158. Both gave "Plugin is incompatible with current IntelliJ IDEA installation". I have the following installation:
- WinXP(32 bit) SP3
- JDK 1.6.0_12
- IntelliJ IDEA (Community edition) IC-90.162
Any suggestion?
Regards,
Happily, I was encouraged by Ilya's comments to try a slightly earlier version, 0.2.158, and this works.
Maybe this comment will save frustration for other Clojure users.
No rating yet - I'm just starting!
BTW, for questions like this you may use our forum:
http://www.jetbrains.net/devnet/community/idea/clojure
With best regards,
Ilya Sergey