This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-04-02
Channels
- # asami (24)
- # babashka (85)
- # beginners (137)
- # calva (46)
- # cider (16)
- # clj-kondo (19)
- # cljs-dev (7)
- # clojure (13)
- # clojure-australia (1)
- # clojure-europe (10)
- # clojure-nl (4)
- # clojure-spec (6)
- # clojure-uk (3)
- # clojurescript (5)
- # conjure (21)
- # cursive (15)
- # datascript (46)
- # datomic (13)
- # depstar (32)
- # figwheel-main (1)
- # fulcro (6)
- # honeysql (20)
- # lsp (53)
- # malli (7)
- # meander (9)
- # off-topic (35)
- # other-languages (1)
- # polylith (41)
- # re-frame (5)
- # reagent (4)
- # releases (3)
- # rewrite-clj (2)
- # shadow-cljs (22)
- # spacemacs (15)
- # tools-deps (3)
- # xtdb (17)
I should be coding and experimenting with fulcro-template by now, but I’ve run into a problem with stub generation in IntelliJ. I have: • Cloned template code as described in template README. • Opened deps.edn as a project in IntelliJ. • Enabled “dev” under “Clojure Deps” and refreshed. • Confirmed stub generation when asked.
-----------
13:19 Stub generation required
Your project requires namespaces which need stubs to be generated.
Generate now
13:19 Error generating stubs for module fulcro-app: java.io.FileNotFoundException: Could not locate taoensso/carmine__init.class, taoensso/carmine.clj or taoensso/carmine.cljc on classpath.
at clojure.lang.RT.load(RT.java:462)
at clojure.lang.RT.load(RT.java:424)
at clojure.core$load$fn__6839.invoke(core.clj:6126)
at clojure.core$load.invokeStatic(core.clj:6125)
at clojure.core$load.doInvoke(core.clj:6109)
-----------
I can’t see any reference to Carmine in the template and clj -X:deps tree | grep carmine
returns nothing
Things I’ve tried:
• Cloning once more to a new project, but still same issue.
• Replaced contents of ~/.clojure/deps.edn with {}
• Deleted ~/.m2
Facts:
Cursive 1.10.1-2020.3
IntelliJ IDEA 2020.3.3 (CE) Build #IC-203.7717.56, built on March 15, 2021
Runtime version: 11.0.10+8-b1145.96 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 10.16
GC: ParNew, ConcurrentMarkSweep
Memory: 990M
Cores: 4
Non-Bundled Plugins: com.cursiveclojure.cursive
BTW:
I have had no issues in my re-frame based projects or in projects actually using Carmine.
Any help appreciated.I’ll give it a go on my work computer as well and see if I run into the same issue there.
Update: I get no such issue on that other Mac. Not sure how to get this one into a working state though, so any pointers in regards to what to delete or reinstall would be appreciated.
for intellij issues, there's always the "turn it off and on again": File -> Invalidate Caches / Restart...
Thanks, @danvingo, I ended up reinstalling IntelliJ, deleting all preference and cache directories as well. It had been upgraded and upgraded for years so it was about time. I haven’t seen the reported issue afterwards, but there has been no “stubs generation” dialog either, so I’m not quite sure if it’s solved. Now I struggle with IntelliJ forgetting stuff between restarts, but #cursive is probably more suitable for that issue.