This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # announcements (3)
- # aws (5)
- # beginners (71)
- # boot (7)
- # calva (74)
- # cider (6)
- # clj-kondo (2)
- # cljs-dev (5)
- # clojars (6)
- # clojure (84)
- # clojure-dev (7)
- # clojure-europe (1)
- # clojure-italy (23)
- # clojure-nl (43)
- # clojure-sanfrancisco (1)
- # clojure-spec (4)
- # clojure-uk (173)
- # clojurebridge (1)
- # clojurescript (14)
- # cursive (44)
- # datomic (9)
- # duct (2)
- # emacs (2)
- # fulcro (4)
- # graalvm (4)
- # graphql (27)
- # hoplon (6)
- # keechma (50)
- # off-topic (3)
- # other-languages (8)
- # pathom (2)
- # pedestal (14)
- # planck (5)
- # re-frame (3)
- # reitit (6)
- # ring (2)
- # robots (2)
- # spacemacs (9)
- # tools-deps (15)
- # vim (44)
@simon.orlovsky Can you send a screenshot of the REPL configuration?
@simon.orlovsky So the problem is the error message at the bottom, saying that Cursive can’t find clojure.main, which generally means that Clojure isn’t attached to your project.
How did you set this project up? Looks like you’re using Leiningen, right? What does your leiningen toolwindow look like?
Ok, so what you want to do is find your project.clj in the Project View, right click on it and select “Add as leiningen project”
@simon.orlovsky how are you creating these projects?
So if you do
lein new testapp, then File | Open…, then select the
project.clj in the new project, it doesn’t get created correctly?
Could you try that on a new project, then let me know so we can try to figure out what’s going on?
yes it doesn’t set up correctly — I get
Run Configuration Error: No modules containing clojure.main found
Well, that’s when creating the run config, right? But before that, after File | Open Cursive does create a project? What does the Leiningen toolwindow look like for that new project?
Well, it won’t use Maven, just Leiningen. Can you send me your log? Help | Show log in Finder
I found this old/closed issue about excluding cljs-out, https://github.com/cursive-ide/cursive/issues/2080
I was wondering if there is any general way to always exclude folders matching a certain pattern? I’m finding that certain directories are continually re-added to the index, probably after I’ve made changes to my deps.edn, so I end up repeatedly hunting for the same directories to exclude. in my case they all have names like
Preferences -> Editor -> Code Style -> Clojure -- General tab -- “Align let-binding values”
@manutter51 @devn Actually there are two separate settings there, “Align let-binding values” and “Align map values” - obviously you want the map one for that case.
@cfleming yes, saw that, thank you. also, please register my vote for leaving those off as a default. they create messy merges and diffs.
@devn Ok, noted, thanks - I think the binding forms are off by default but the maps are on.
Oops, I copy-pasted from the very similar question yesterday or the day before, should have paid closer attention.
@mhuebert There isn’t right now, but I’ll look at that. What used to happen using Leiningen is that the lein integration would add excluded directories but never remove them, so if they had been configured manually they would remain excluded.
To my eternal regret I used an IntelliJ framework for deps rather than just replicating what I did for lein, and now I have less control over things like that. I think that that may be why this no longer works under deps.
for what it's worth, deps is working on great for me
@U3BALC2HH Thanks for letting me know! It mostly works ok and does save a lot of work at first, but internally it’s not too flexible.