Fork me on GitHub

I tried to start a repl on Clojure project but I got this error

Exception in thread "main" Could not locate cljsbuild/compiler__init.class or cljsbuild/compiler.clj on classpath., compiling:(/Users/tap/Library/Caches/IdeaIC14/tmp/form-init7188868106629976839.clj:1:107)
	at clojure.lang.Compiler.load(
	at clojure.lang.Compiler.loadFile(
	at clojure.main$load_script.invoke(main.clj:275)
	at clojure.main$init_opt.invoke(main.clj:280)
	at clojure.main$initialize.invoke(main.clj:308)
	at clojure.main$null_opt.invoke(main.clj:343)
	at clojure.main$main.doInvoke(main.clj:421)
	at clojure.lang.RestFn.invoke(
	at clojure.lang.Var.invoke(
	at clojure.lang.AFn.applyToHelper(
	at clojure.lang.Var.applyTo(
	at clojure.main.main(
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(
	at java.lang.reflect.Method.invoke(
	at com.intellij.rt.execution.application.AppMain.main(
Caused by: Could not locate cljsbuild/compiler__init.class or cljsbuild/compiler.clj on classpath.
	at clojure.lang.RT.load(
	at clojure.lang.RT.load(
	at clojure.core$load$fn__5448.invoke(core.clj:5866)
	at clojure.core$load.doInvoke(core.clj:5865)
	at clojure.lang.RestFn.invoke(
	at clojure.core$load_one.invoke(core.clj:5671)
	at clojure.core$load_lib$fn__5397.invoke(core.clj:5711)
	at clojure.core$load_lib.doInvoke(core.clj:5710)
	at clojure.lang.RestFn.applyTo(
	at clojure.core$apply.invoke(core.clj:632)
	at clojure.core$load_libs.doInvoke(core.clj:5749)
	at clojure.lang.RestFn.applyTo(
	at clojure.core$apply.invoke(core.clj:632)
	at clojure.core$require.doInvoke(core.clj:5832)
	at clojure.lang.RestFn.invoke(
	at user$eval7.invoke(form-init7188868106629976839.clj:1)
	at clojure.lang.Compiler.eval(
	at clojure.lang.Compiler.eval(
	at clojure.lang.Compiler.load(
	... 16 more

Process finished with exit code 1
Exception starting REPL: java.lang.InterruptedException
This project doesn’t related to ClojureScript at all, but the previous project I was working on is a ClojureScript project. Any idea what have I done wrongly? Note: $ lein repl in command line starts the repl fine


I found the fix. Invalidate cache and restart intellij. Thanks

Joe R. Smith21:08:48

is there a way to manually invoke the indentation options intellij helper menu?

Joe R. Smith21:08:14

I want to tell cursive to indent a “defsomething” a certain way, but clicking on the defsomething doesn’t show me the light bulb.


@solussd: Not right now, sorry, I need to make the indentation options editable in the settings pane.

Joe R. Smith21:08:41

any file I can edit? simple_smile


The lightbulb is usually reliable though, does your defsomething resolve? Can you navigate to it?


And you have the caret inside a usage of defsomething?


Not the definition?

Joe R. Smith22:08:00

I also have it suggesting (in a blue popup) to import something

Joe R. Smith22:08:09

maybe that is preventing the lightbulb?


It’s suggesting to import the defsomething, or something else?

Joe R. Smith22:08:31

something else


Hmm, that might prevent it, yeah


I’m not sure.

Joe R. Smith22:08:06

is there a way to tell it to stop suggesting the import?

Joe R. Smith22:08:40

the things it is suggesting to import are declared with my defsomething, so cursive doesn’t see them as defs


In terms of editing files - is your code style set to be project specific?


Sadly, there’s not a good solution for that right now either, sorry


You can exclude the package of the thing it’s trying to import, but that may not be what you want.


i.e. is your code style scheme “Project”?

Joe R. Smith22:08:11

it’s not “Project"


Ok, then that requires a little spelunking to find the file - one sec

Joe R. Smith22:08:46

running eap 15, if that matters


Ok, you probably want to quit IntelliJ since it caches a lot of the settings


Then look in ~/Library/Preferences/IntelliJIdea15/codestyles/


Find the file corresponding to the code style you’re currently using


You’ll see a block that looks like this:

  :compojure.core/defroutes :only-indent 1
  :hiccup.core/html :only-indent
  :xodus-test.core/with-transaction 1


Modify as required simple_smile