I have a Lein project, within a larger project (think of it as a separate module). I notice that when adding this subproject project.clj
to the Leiningen Projects, it only partially works. The namespace warning goes away, and I can click required namespace prefixes to navigate, etc. But I can’t click prefix/fn-name
(i.e. an actual function within the namespace that prefix
is for). It’s strange. And even local symbols can’t be navigated to (i.e. the name in a let
binding for instance). Basically, everything is “Cannot find declaration to go to”, even stuff in clojure.core
. Have tried reloading Lein projects, closing and reopening the IntelliJ project, etc. to no avail. Has anyone else seen this behavior before?
actually, perhaps I need to start over with this: https://cursive-ide.com/userguide/leiningen.html#working-with-multi-module-projects
ah yes, indeed, wiping out the existing project and recreating in this way solved the problem! Too bad I forgot to back up my REPL history though. 😢