cursive-ide / cursive

Cursive: The IDE for beautiful Clojure code
581 stars 7 forks source link

Error generating stubs for module hypercrud: Error: Could not find or load main class clojure.main #1725

Open dustingetz opened 7 years ago

dustingetz commented 7 years ago

I am using boot-lein-generate in a substantial project, a year worth of clojure and cljs. I started by rm -rf .idea, and did a fresh leiningen import. Then I started opening clj and cljs files and clicking "add source root" when prompted, then click "generate stubs" when prompted, which yields error in event log, and yellow bar keeps coming back.

Could it be because my layered directories is confusing cursive? The project is structured as several submodules. The source code is in runtime/src and service/src but cursive seems to be looking for a project.clj at the root?

image

dustingetz commented 7 years ago

I can fix the stubs error and make the yellow bar go away by manually building up a new project structure, but it's not the default structure that gets generated by following defaults at each prompt. I also don't have all my non-clojure modules showing up yet.

image

dustingetz commented 7 years ago

I don't like this answer very much because intellij won't show me my top-level stuff that isn't sorted into a module. I like having my stuff all in one module because i can see everything. However maybe I am doing something wrong. Colin can you offer some suggestions on the idiomatic way to organize a multi-language project that works best with cursive?

dustingetz commented 7 years ago

This error came back even with the manually created project structure that doesn't have a top level content root, i dont know what i did to make it come back if anything