This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-02-21
Channels
- # arachne (1)
- # aws-lambda (50)
- # beginners (10)
- # boot (59)
- # capetown (4)
- # cider (9)
- # cljsjs (27)
- # clojure (249)
- # clojure-berlin (8)
- # clojure-finland (7)
- # clojure-germany (1)
- # clojure-italy (6)
- # clojure-nl (7)
- # clojure-russia (91)
- # clojure-spec (100)
- # clojure-uk (61)
- # clojureremote (2)
- # clojurescript (171)
- # core-async (11)
- # cursive (31)
- # data-science (1)
- # datascript (2)
- # datomic (11)
- # dirac (2)
- # emacs (16)
- # events (1)
- # hoplon (142)
- # juxt (4)
- # lein-figwheel (9)
- # leiningen (10)
- # luminus (7)
- # lumo (44)
- # mount (3)
- # off-topic (150)
- # om (18)
- # onyx (5)
- # perun (12)
- # planck (12)
- # protorepl (13)
- # re-frame (28)
- # reagent (8)
- # ring (1)
- # ring-swagger (10)
- # spacemacs (2)
- # specter (11)
- # sql (14)
- # untangled (99)
- # vim (18)
- # yada (2)
"No modules containing clojure.main" <- I used to be able to create a local REPL easily but now get this. Is there a solution?
If I go to the project structure I can see that there's a module there. But I can't select it when trying to create a local REPL configuration.
I registered the lein project, which I thought might help. However the suggested stub generation crashes.
I invalidated caches and restarted, but still get the stub generation crashing. The exact message is "Error generating stubs for module demo".
does anyone here use Cursive with CLJS+Figwheel+Reagent? if yes, howz your experience been? maybe @timothypratley ?
@cjmurphy So, two problems - the modules containing clojure.main issue is usually when you’re trying to use a module that doesn’t have Clojure itself as a dependency.
The stub problem would hopefully be fixed in the dev build, see: https://clojurians-log.clojureverse.org/cursive/2017-02-16.html
@cfleming: The first issue ("No modules containing clojure.main") fixed itself when I registered the lein project, as was suggested when I looked at the project.clj
file. I'm going off an Untangled project, so the dependencies from project.clj should all be fine. Untangled developers all use IDEA/Cursive, so it should be pretty quick to get any project going. Perhaps the generating stubs problem is from more recent Cursives, and they are all on an older version.
@cfleming: 'Figwheel configuration error' that 'The required key :cljsbuild is missing'. But :cljsbuild
is there in the project.clj <-- that's why the stubs are not generated - I can see from the log. So perhaps not a Cursive problem really.
Actually it all seems to be fine just using lein from the command line, so perhaps it is a Cursive problem after all.
@moizsj it works great 🙂 Having arity checking etc in Cursive is very helpful, and navigation etc work well.
@cjmurphy Actually @wilkerlucio had the same problem. I believe it’s fixed now in the dev build, but Slack has eaten the discussion I had with him around it. Let me know if that doesn’t fix the problem.
@cfleming: My particular problem was known by Untangled folks. This was the bad line: (def figwheel-config (fig/fetch-config))
. Doing too much in a def, and building the stubs causes the defs to be run.
I'm working with an IDEA project that has many project.clj within it. I know how to get the IDE to ask me to register a particular project.clj. After it has done that everything seems to be concentrated on that project.clj. Is there an easy way to unregister a project.clj? That way I will be able to switch between working with different project.clj.
I've realised you can register many. And that this IDEA project has many project.cljs with the same name! Them having the same name seems to stuff Cursive about so I can fix that...
I’m not sure how well Cursive would handle that - by name I guess you mean the lein artifact name?
I'm just going off an existing IDEA project i.e. not one I created. But am fixing it now.
You can definitely create a project with multiple lein projects, see: https://cursive-ide.com/userguide/leiningen.html under “Working with multi-module projects"