Fork me on GitHub

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: Could not locate taoensso/carmine__init.class, taoensso/carmine.clj or taoensso/carmine.cljc on classpath.
			at clojure.lang.RT.load(
			at clojure.lang.RT.load(
			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.


I ran into nightmare scenarios last year with intellij on certain combinations of hardware + OS - where crashes occurred and I ultimately went through 3 laptops until I found one that worked..