This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-10-27
Channels
- # announcements (11)
- # aws (1)
- # babashka (15)
- # beginners (345)
- # calva (5)
- # chlorine-clover (14)
- # clj-kondo (40)
- # cljfx (30)
- # clojure (174)
- # clojure-australia (6)
- # clojure-europe (64)
- # clojure-france (1)
- # clojure-nl (12)
- # clojure-uk (20)
- # clojurescript (29)
- # conjure (1)
- # core-async (53)
- # cryogen (3)
- # cursive (8)
- # datomic (12)
- # emacs (5)
- # events (4)
- # fulcro (27)
- # graalvm (1)
- # graphql (9)
- # helix (8)
- # keechma (11)
- # london-clojurians (1)
- # malli (12)
- # off-topic (12)
- # pathom (8)
- # portal (1)
- # re-frame (19)
- # reagent (13)
- # reitit (16)
- # ring-swagger (2)
- # sci (38)
- # shadow-cljs (31)
- # spacemacs (3)
- # specter (14)
- # sql (14)
- # tools-deps (31)
- # vim (4)
- # xtdb (9)
The REPL isn't loading java classes from my maven project (multi-module). It gives an error when loading the java class as part of the import statement. The class is found in a dependency (as listed in the pom) I am using nREPL with the radio button "use intellij class path"... Is there something more I need to do? I tried using a deps.edn, but couldn't figure out how to refer to the maven subproject.
Yes, IntelliJ classpath is what you want to use. A few things - is the module which you’re using for your run config one which has access to the class dependency?
If so, it’s worth checking that the dependency has actually been added correctly to the module you think it has - check that at File | Project Structure | Modules | <your module> | Dependencies
interestingly the only dependencies listed there were clojure ones (eg. instaparse), i presume those are coming from the pom. I added the other module and that succeeded in the clj import highlighting properly, not grayed out now. However, even after restart of repl/intellij still doesn't understand import when trying to load file to repl. (?) Thanks for help so far, this is pretty important to using clojure/cursive at work.
Hey @cfleming, small QOL fix that would be great:
When generating a test for CLJS instead of :refer
ing all can you just alias test or :refer
a known set of useful vars? :refer :all
isn’t valid in CLJS land.