Quantcast
Channel: JetBrains Developer Community : Thread List - IntelliJ IDEA Users
Viewing all articles
Browse latest Browse all 5661

Polyglot support: Configure Java to find compiled Clojure classes. Is it possible?

$
0
0
Hello. I have a polyglot project that contains both Java and Clojure. My Clojure files contain gen class directives that correctly compile inside of Maven, and my java classes can find the clojure classes successfully while running junit tests inside of the Maven build. However, when editting a java source file and declaring/calling to a compiled clojure class from a java source file within Intellij, the references to the clojure classes are not recognized. This seems to make sense, as I wouldn't really expect the java builder to look inside of a .clj file to be able to determine the class references. But as mentioned, I am able to compile and run unit test cases successfully through a Maven build whereby compiled java and clojure classes co-exist and java calls to clojure successfully. The missing piece seems to be polyglot support between .java and .clj files within the Intellij editor.Anybody have experience with this type of set up (java calling and finding clojure gen classes within the editor)? Does polyglot support for java calling/recognizing clojure within Intellij exist, or is it just not there yet? (I have the La Clojure plugin installed with Intellij 12.1.6).Thanks very much in advance for any insights.

Viewing all articles
Browse latest Browse all 5661

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>